KVM: x86/mmu: Don't do TLB flush when zappings SPTEs in invalid roots
authorSean Christopherson <seanjc@google.com>
Thu, 11 Jan 2024 02:00:42 +0000 (18:00 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 23 Feb 2024 00:28:45 +0000 (16:28 -0800)
commitfcdffe97f80e6fb488f6b5c6bd38f6cd899944ab
treee790176af39ebabe2cb443f1992d26643bc74ef8
parent8ca983631f3c4ba16ac70d3310a31316e06f9e36
KVM: x86/mmu: Don't do TLB flush when zappings SPTEs in invalid roots

Don't force a TLB flush when zapping SPTEs in invalid roots as vCPUs
can't be actively using invalid roots (zapping SPTEs in invalid roots is
necessary only to ensure KVM doesn't mark a page accessed/dirty after it
is freed by the primary MMU).

Link: https://lore.kernel.org/r/20240111020048.844847-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/tdp_mmu.c