KVM: x86/mmu: Bug the VM if write-tracking is used but not enabled
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 01:35:32 +0000 (18:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 18:08:17 +0000 (14:08 -0400)
commit427c76aed29ec12a57f11546a5036df3cc52855e
treed5fee7d8cd943b48427c3b8b510ba99b94a94cc3
parente18c5429e0c4bf7b550211245dcbfc61e71a7e6f
KVM: x86/mmu: Bug the VM if write-tracking is used but not enabled

Bug the VM if something attempts to write-track a gfn, but write-tracking
isn't enabled.  The VM is doomed (and KVM has an egregious bug) if KVM or
KVMGT wants to shadow guest page tables but can't because write-tracking
isn't enabled.

Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-27-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/page_track.c