Re: [PATCH] KVM: x86: Use active memslots for the per-vCPU MMIO cache
From: Sean Christopherson
Date: Fri Oct 02 2026 - 17:08:58 EST
On Fri, 07 Aug 2026 20:28:18 +0900, Jinu Kim wrote:
> KVM tags the per-vCPU MMIO cache with a memslot generation so that a
> memslot update invalidates cached MMIO information. Both the fill and
> validation paths use kvm_memslots(), which unconditionally selects address
> space 0, even when the vCPU is running in SMM and using address space 1.
>
> Commit 56f17dd3fbc4 ("kvm: x86: fix stale mmio cache bug") added the
> memslot generation to the cache key so that a memslot update could not
> leave a stale entry valid. When commit 699023e23965 ("KVM: x86: add SMM
> to the MMU role, support SMRAM address space") added the SMM address space,
> these helpers were not converted to use the active memslots.
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/1] KVM: x86: Use active memslots for the per-vCPU MMIO cache
https://github.com/kvm-x86/linux/commit/b3e6212dea2e
--
https://github.com/kvm-x86/linux/tree/next