Commit 02efd81
committed
KVM: VMX: Intercept reads to invalid and write-only x2APIC registers
Intercept reads to invalid (non-existent) and write-only x2APIC registers
when configuring VMX's MSR bitmaps for x2APIC+APICv. 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 and write-only MSRs.
Fixes: 8d14695 ("x86, apicv: add virtual x2apic support")
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20230107011025.565472-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent c39857c commit 02efd81
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4031 | 4031 | | |
4032 | 4032 | | |
4033 | 4033 | | |
4034 | | - | |
| 4034 | + | |
4035 | 4035 | | |
4036 | 4036 | | |
4037 | 4037 | | |
| |||
4053 | 4053 | | |
4054 | 4054 | | |
4055 | 4055 | | |
4056 | | - | |
4057 | | - | |
| 4056 | + | |
| 4057 | + | |
4058 | 4058 | | |
4059 | 4059 | | |
4060 | | - | |
| 4060 | + | |
4061 | 4061 | | |
4062 | 4062 | | |
4063 | 4063 | | |
| |||
0 commit comments