KVM: x86/mmu: Skip MMIO SPTE invalidation if enable_mmio_caching=0

If MMIO caching is disabled, there are no MMIO SPTEs to invalidate, so
the costly zapping of all pages is unnecessary even in the unlikely case
when the MMIO generation number has wrapped.

Signed-off-by: Dmytro Maluka <dmaluka@chromium.org>
Link: https://lore.kernel.org/r/20250926135139.1597781-1-dmaluka@chromium.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Dmytro Maluka 2025-09-26 15:51:39 +02:00 • committed by Sean Christopherson
commit b850841a53