diff options
author | Maxim Levitsky | 2021-08-10 23:52:42 +0300 |
---|---|---|
committer | Paolo Bonzini | 2021-08-20 16:06:22 -0400 |
commit | 9cc13d60ba6b9976e01ec6f66fa1ec4a06992929 (patch) | |
tree | 90b29554e5dc654ebd760215d8d2939500b73395 /drivers/irqchip | |
parent | 8f32d5e563cbf0507756aa929134b1a110b47a62 (diff) |
KVM: x86/mmu: allow APICv memslot to be enabled but invisible
on AMD, APIC virtualization needs to dynamicaly inhibit the AVIC in a
response to some events, and this is problematic and not efficient to do by
enabling/disabling the memslot that covers APIC's mmio range.
Plus due to SRCU locking, it makes it more complex to
request AVIC inhibition.
Instead, the APIC memslot will be always enabled, but be invisible
to the guest, such as the MMU code will not install a SPTE for it,
when it is inhibited and instead jump straight to emulating the access.
When inhibiting the AVIC, this SPTE will be zapped.
This code is based on a suggestion from Sean Christopherson:
https://lkml.org/lkml/2021/7/19/2970
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210810205251.424103-8-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions