|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.22] x86/hvm: don't let EFLAGS.IF block #MC in hvm_interrupt_blocked
commit 832692ca814b0ed1ed861ff8d5e264ed4dc315ca
Author: Chunjie Zhu <chunjie.zhu@xxxxxxxxxx>
AuthorDate: Wed Nov 25 14:34:07 2026 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Nov 25 14:34:07 2026 +0100
x86/hvm: don't let EFLAGS.IF block #MC in hvm_interrupt_blocked
EFLAGS.IF doesn't mask NMI or #MC, but hvm_interrupt_blocked() only
exempted NMI from the EFLAGS.IF check, so a pending #MC was held off
while the guest had interrupts disabled.
Exempt hvm_intsrc_mce as well.
Reported-by: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
Signed-off-by: Chunjie Zhu <chunjie.zhu@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
master commit: 58ecf85c5a68dbb37cfbfd56645b45db1e525ace
master date: 2026-11-17 10:00:57 +0100
---
xen/arch/x86/hvm/hvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index 9efc23c04e..fcd91ecbe5 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -3896,7 +3896,9 @@ enum hvm_intblk hvm_interrupt_blocked(struct vcpu *v,
struct hvm_intack intack)
return intr;
}
+ /* EFLAGS.IF doesn't mask NMI or #MC. */
if ( (intack.source != hvm_intsrc_nmi) &&
+ (intack.source != hvm_intsrc_mce) &&
!(guest_cpu_user_regs()->eflags & X86_EFLAGS_IF) )
return hvm_intblk_rflags_ie;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.22
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |