]> 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)
commitc12ea5373611475ca610dfbf8bdb74cec02d3806
tree6aa8526f2ec381f6358b8d419c41863d5d42cd36
parente77fd43cf94ca2a2445a97927628badd468790c6
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: f6639a9af5bb ("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