projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce40cd3
)
KVM: x86: clear hidden CPU state at reset time
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 4 Jun 2015 08:44:44 +0000
(10:44 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 4 Jun 2015 08:44:44 +0000
(10:44 +0200)
This was noticed by Radim while reviewing the implementation of
system management mode.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/x86.c
b/arch/x86/kvm/x86.c
index 79dde1656db6553e77b423e7b58aa4e7024e8897..bd6bcd54cd446ab281d7978f7b32bbb2a14c8ff9 100644
(file)
--- a/
arch/x86/kvm/x86.c
+++ b/
arch/x86/kvm/x86.c
@@
-7254,6
+7254,8
@@
void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event)
{
+ vcpu->arch.hflags = 0;
+
atomic_set(&vcpu->arch.nmi_queued, 0);
vcpu->arch.nmi_pending = 0;
vcpu->arch.nmi_injected = false;