diff --git a/xen/arch/x86/include/asm/irq.h b/xen/arch/x86/include/asm/irq.h index 3c73073b71..8c81f66434 100644 --- a/xen/arch/x86/include/asm/irq.h +++ b/xen/arch/x86/include/asm/irq.h @@ -224,7 +224,7 @@ void cleanup_domain_irq_mapping(struct domain *d); bool cpu_has_pending_apic_eoi(void); -static inline void arch_move_irqs(struct vcpu *v) { } +#define arch_move_irqs(v) evtchn_move_pirqs(v) struct msi_info; int allocate_and_map_gsi_pirq(struct domain *d, int index, int *pirq_p); diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index c8c1bfa615..67700b050a 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -970,6 +970,7 @@ void send_guest_domain_virq(struct domain *d, uint32_t virq) read_unlock_irqrestore(&v->virq_lock, flags); } +#ifdef CONFIG_HAS_PIRQ void send_guest_pirq(struct domain *d, const struct pirq *pirq) { int port; @@ -994,6 +995,7 @@ void send_guest_pirq(struct domain *d, const struct pirq *pirq) evtchn_read_unlock(chn); } } +#endif /* CONFIG_HAS_PIRQ */ static DEFINE_SPINLOCK(global_virq_handlers_lock); @@ -1706,7 +1708,7 @@ void evtchn_destroy_final(struct domain *d) #endif } - +#ifdef CONFIG_HAS_PIRQ void evtchn_move_pirqs(struct vcpu *v) { struct domain *d = v->domain; @@ -1722,7 +1724,7 @@ void evtchn_move_pirqs(struct vcpu *v) } read_unlock(&d->event_lock); } - +#endif /* CONFIG_HAS_PIRQ */ static void domain_dump_evtchn_info(struct domain *d) { diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c index ea95dea65a..f5a1099ba9 100644 --- a/xen/common/sched/core.c +++ b/xen/common/sched/core.c @@ -642,7 +642,6 @@ int sched_init_vcpu(struct vcpu *v) static void vcpu_move_irqs(struct vcpu *v) { arch_move_irqs(v); - evtchn_move_pirqs(v); } static void sched_move_irqs(const struct sched_unit *unit)