Repository navigation
Commit 043248b
committed
KVM: VMX: Forbid userspace MSR filters for x2APIC
Allowing userspace to intercept reads to x2APIC MSRs when APICV is
fully enabled for the guest simply can't work. But more in general,
the LAPIC could be set to in-kernel after the MSR filter is setup
and allowing accesses by userspace would be very confusing.
We could in principle allow userspace to intercept reads and writes to TPR,
and writes to EOI and SELF_IPI, but while that could be made it work, it
would still be silly.
Cc: Alexander Graf <graf@amazon.com>
Cc: Aaron Lewis <aaronlewis@google.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 9389b9d commit 043248b
2 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4777 | 4777 | | |
4778 | 4778 | | |
4779 | 4779 | | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
4780 | 4784 | | |
4781 | 4785 | | |
4782 | 4786 | | |
4783 | 4787 | | |
4784 | 4788 | | |
4785 | 4789 | | |
4786 | | - | |
4787 | | - | |
4788 | | - | |
4789 | | - | |
4790 | | - | |
4791 | | - | |
4792 | | - | |
4793 | | - | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
4794 | 4796 | | |
4795 | 4797 | | |
4796 | 4798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5252 | 5252 | | |
5253 | 5253 | | |
5254 | 5254 | | |
| 5255 | + | |
5255 | 5256 | | |
5256 | 5257 | | |
5257 | 5258 | | |
5258 | 5259 | | |
5259 | 5260 | | |
5260 | | - | |
| 5261 | + | |
| 5262 | + | |
5261 | 5263 | | |
5262 | 5264 | | |
| 5265 | + | |
| 5266 | + | |
| 5267 | + | |
| 5268 | + | |
| 5269 | + | |
5263 | 5270 | | |
5264 | 5271 | | |
5265 | 5272 | | |
| |||
0 commit comments