diff options
author | Sean Christopherson <[email protected]> | 2023-01-07 01:10:24 +0000 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-01-24 10:04:36 -0800 |
commit | c39857ce8daaaa429ccae2a393301ffeed67e235 (patch) | |
tree | 42f90562d5c8e86616ffc322912b865bfcb0f8a2 /tools/perf/scripts/python/stackcollapse.py | |
parent | b5fcc59be72a76b5cf7bcc6d4aba6cdb14557d44 (diff) |
KVM: VMX: Always intercept accesses to unsupported "extended" x2APIC regs
Don't clear the "read" bits for x2APIC registers above SELF_IPI (APIC regs
0x400 - 0xff0, MSRs 0x840 - 0x8ff). KVM doesn't emulate registers in that
space (there are a smattering of AMD-only extensions) and so should
intercept reads in order to inject #GP. When APICv is fully enabled,
Intel hardware doesn't validate the registers on RDMSR and instead blindly
retrieves data from the vAPIC page, i.e. it's software's responsibility to
intercept reads to non-existent MSRs.
Fixes: 8d14695f9542 ("x86, apicv: add virtual x2apic support")
Reviewed-by: Maxim Levitsky <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions