Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1439378
| From | Paolo Bonzini <pbonzini@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] KVM: x86: zero MSR_IA32_FEATURE_CONTROL on reset |
| Date | 2016-07-08 14:10 +0200 |
| Message-ID | <rSCLx-4Br-91@gated-at.bofh.it> (permalink) |
| References | <rSCLw-4Br-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
arch/x86/kvm/x86.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 388d9ffd7551..c01b0b3a06aa 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7494,6 +7494,7 @@ void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event)
if (!init_event) {
kvm_pmu_reset(vcpu);
vcpu->arch.smbase = 0x30000;
+ vcpu->arch.msr_ia32_feature_control = 0;
}
memset(vcpu->arch.regs, 0, sizeof(vcpu->arch.regs));
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/2] KVM: x86: zero MSR_IA32_FEATURE_CONTROL on reset Paolo Bonzini <pbonzini@redhat.com> - 2016-07-08 14:10 +0200 Re: [PATCH 2/2] KVM: x86: zero MSR_IA32_FEATURE_CONTROL on reset Haozhong Zhang <haozhong.zhang@intel.com> - 2016-07-08 15:00 +0200
csiph-web