mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/hvm: don't give vector callback higher priority than NMI/MCE
Those two should always be delivered first imo. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
8b0eac7642
commit
7d6a4f3bee
1 file changed
+4
-4
@@ -395,16 +395,16 @@ struct hvm_intack hvm_vcpu_has_pending_irq(struct vcpu *v)
|
||||
struct hvm_domain *plat = &v->domain->arch.hvm_domain;
|
||||
int vector;
|
||||
|
||||
if ( (plat->irq.callback_via_type == HVMIRQ_callback_vector)
|
||||
&& vcpu_info(v, evtchn_upcall_pending) )
|
||||
return hvm_intack_vector(plat->irq.callback_via.vector);
|
||||
|
||||
if ( unlikely(v->nmi_pending) )
|
||||
return hvm_intack_nmi;
|
||||
|
||||
if ( unlikely(v->mce_pending) )
|
||||
return hvm_intack_mce;
|
||||
|
||||
if ( (plat->irq.callback_via_type == HVMIRQ_callback_vector)
|
||||
&& vcpu_info(v, evtchn_upcall_pending) )
|
||||
return hvm_intack_vector(plat->irq.callback_via.vector);
|
||||
|
||||
if ( vlapic_accept_pic_intr(v) && plat->vpic[0].int_output )
|
||||
return hvm_intack_pic(0);
|
||||
|
||||
|
||||