]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix x2APIC MSR intercept handling on !APICV platforms
authorPeter Xu <peterx@redhat.com>
Mon, 5 Oct 2020 19:55:31 +0000 (12:55 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Oct 2020 16:22:52 +0000 (12:22 -0400)
commit628ade2d0816b2675ab61ba6aadfc9a94e3e1589
tree6aa8526f2ec381f6358b8d419c41863d5d42cd36
parent6a2e0923b2df5c00d1c691b0393daf1a87ffb924
KVM: VMX: Fix x2APIC MSR intercept handling on !APICV platforms

Fix an inverted flag for intercepting x2APIC MSRs and intercept writes
by default, even when APICV is enabled.

Fixes: 3eb900173c71 ("KVM: x86: VMX: Prevent MSR passthrough when MSR access is denied")
Co-developed-by: Peter Xu <peterx@redhat.com>
[sean: added changelog]
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20201005195532.8674-2-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c