[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/6] kvm: fix events.flags (KVM_VCPUEVENT_VALID_SMM)
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 6/6] kvm: fix events.flags (KVM_VCPUEVENT_VALID_SMM) overwritten by 0 |
Date: |
Thu, 22 Sep 2016 18:52:18 +0200 |
From: "Herongguang (Stephen)" <address@hidden>
Fix events.flags (KVM_VCPUEVENT_VALID_SMM) overwritten by 0.
Signed-off-by: He Rongguang <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
target-i386/kvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index f236daf..a0e42b2 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -2452,6 +2452,7 @@ static int kvm_put_vcpu_events(X86CPU *cpu, int level)
events.nmi.pad = 0;
events.sipi_vector = env->sipi_vector;
+ events.flags = 0;
if (has_msr_smbase) {
events.smi.smm = !!(env->hflags & HF_SMM_MASK);
@@ -2471,7 +2472,6 @@ static int kvm_put_vcpu_events(X86CPU *cpu, int level)
events.flags |= KVM_VCPUEVENT_VALID_SMM;
}
- events.flags = 0;
if (level >= KVM_PUT_RESET_STATE) {
events.flags |=
KVM_VCPUEVENT_VALID_NMI_PENDING | KVM_VCPUEVENT_VALID_SIPI_VECTOR;
--
2.7.4
- [Qemu-devel] [PULL 0/6] Misc patches for 2016-09-22, Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 1/6] target-i386: introduce kvm_put_one_msr, Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 2/6] kvm: apic: set APIC base as part of kvm_apic_put, Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 3/6] iscsi: Fix divide-by-zero regression on raw SG devices, Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 4/6] msmouse: Fix segfault caused by free the chr before chardev cleanup., Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 5/6] scripts: Add a script to check for bug URLs in the git log, Paolo Bonzini, 2016/09/22
- [Qemu-devel] [PULL 6/6] kvm: fix events.flags (KVM_VCPUEVENT_VALID_SMM) overwritten by 0,
Paolo Bonzini <=
- Re: [Qemu-devel] [PULL 0/6] Misc patches for 2016-09-22, Eric Blake, 2016/09/22