x86/hvm: don't give vector callback higher priority than NMI/MCE
PATCH 1/1 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 <[email protected]>
xen/arch/x86/hvm/irq.c +4 -4
@@ -395,16 +395,16 @@ struct hvm_intack hvm_vcpu_has_pending_istruct 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 );
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 <[email protected]>
xen/arch/x86/hvm/irq.c +4 -4
@@ -395,16 +395,16 @@ struct hvm_intack hvm_vcpu_has_pending_istruct 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 );
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 3 lines · Jan Beulich
Those two should always be delivered first imo.
Signed-off-by Jan Beulich <[email protected]>
Acked-by Keir Fraser <[email protected]>
Quoted 30 lines
xen/arch/x86/hvm/irq.c +4
-4@@ -395,16 +395,16 @@ struct hvm_intack hvm_vcpu_has_pending_istruct 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 );_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 3 lines · Jan Beulich
Those two should always be delivered first imo.
Signed-off-by Jan Beulich <[email protected]>
Quoted 27 lines
xen/arch/x86/hvm/irq.c +4
-4@@ -395,16 +395,16 @@ struct hvm_intack hvm_vcpu_has_pending_istruct 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 );