Function set_global_virq_handler() is reponsible for XEN_DOMCTL_set_virq_handler domctl-op, and shall be wrapped.
Signed-off-by: Penny Zheng <penny.zh...@amd.com> --- xen/common/event_channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 67700b050a..e11b677cac 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -1006,6 +1006,7 @@ void send_global_virq(uint32_t virq) send_guest_domain_virq(get_global_virq_handler(virq), virq); } +#ifdef CONFIG_DOMCTL int set_global_virq_handler(struct domain *d, uint32_t virq) { struct domain *old, *hdl; @@ -1068,6 +1069,7 @@ int set_global_virq_handler(struct domain *d, uint32_t virq) return rc; } +#endif /* CONFIG_DOMCTL */ static void clear_global_virq_handlers(struct domain *d) { -- 2.34.1