KVM: x86/mmu: Make Host-writable and MMU-writable bit locations dynamic
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:43 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:49 +0000 (04:43 -0400)
commit5fc3424f8b854584f8f6fb6ea03f1419487fdc96
treeba8f20489b9d509ec107069e70e63d3664336605
parente7b7bdea77f3277fe49f714c983d0f38f7cb0d86
KVM: x86/mmu: Make Host-writable and MMU-writable bit locations dynamic

Make the location of the HOST_WRITABLE and MMU_WRITABLE configurable for
a given KVM instance.  This will allow EPT to use high available bits,
which in turn will free up bit 11 for a constant MMU_PRESENT bit.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210225204749.1512652-19-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/locking.rst
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h
arch/x86/kvm/mmu/tdp_mmu.c