]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nVMX: Hardcode dummy EPTP used for early nested consistency checks
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 00:59:48 +0000 (17:59 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Oct 2025 22:11:26 +0000 (15:11 -0700)
commita8749281e4c63e582574ae4409be7641763e58ad
treed86914f7d0234ee97e6bffa7b235bf615bcca3d0
parentf48888bb8ad109c772c9dcdfabbf749ab5ac5502
KVM: nVMX: Hardcode dummy EPTP used for early nested consistency checks

Hardcode the dummy EPTP used for "early" consistency checks as there's no
need to use 5-level EPT based on the guest.MAXPHYADDR (the EPTP just needs
to be valid, it's never truly consumed).

This will allow breaking construct_eptp()'s dependency on having access to
the vCPU, which in turn will (much further in the future) allow for eliding
per-root TLB flushes when a vCPU is migrated between pCPUs (a flush is
need if and only if that particular pCPU hasn't already flushed the vCPU's
roots).

Link: https://lore.kernel.org/r/20250919005955.1366256-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h