diff mbox series

答复: [PATCH] i386: Set MCG_STATUS_RIPV bit for mce SRAR error

Message ID ba36a73514754da4ade170a1b39064d8@unicloud.com (mailing list archive)
State New, archived
Headers show
Series 答复: [PATCH] i386: Set MCG_STATUS_RIPV bit for mce SRAR error | expand

Commit Message

luofei Feb. 26, 2022, 9:52 a.m. UTC
ping

https://patchew.org/QEMU/20220120084634.131450-1-luofei@unicloud.com/
diff mbox series

Patch

diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 2c8feb4a6f..14655577f0 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -537,7 +537,7 @@  static void kvm_mce_inject(X86CPU *cpu, hwaddr paddr, int code)

     if (code == BUS_MCEERR_AR) {
         status |= MCI_STATUS_AR | 0x134;
-        mcg_status |= MCG_STATUS_EIPV;
+        mcg_status |= MCG_STATUS_RIPV | MCG_STATUS_EIPV;
     } else {
         status |= 0xc0;
         mcg_status |= MCG_STATUS_RIPV;