If certain devices (like the local or the io apic) are disabled some modes
of operation of the HVM event channel callback cannot be used. Make sure Xen
doesn't try to setup them.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
(via_type > HVMIRQ_callback_vector) )
via_type = HVMIRQ_callback_none;
+ if ( via_type != HVMIRQ_callback_vector &&
+ (!has_vlapic(d) || !has_vioapic(d) || !has_vpic(d)) )
+ return;
+
spin_lock(&d->arch.hvm_domain.irq_lock);
/* Tear down old callback via. */