• L
    KVM: X86: Use vcpu->arch.walk_mmu for kvm_mmu_invlpg() · 05b29633
    Lai Jiangshan 提交于
    INVLPG operates on guest virtual address, which are represented by
    vcpu->arch.walk_mmu.  In nested virtualization scenarios,
    kvm_mmu_invlpg() was using the wrong MMU structure; if L2's invlpg were
    emulated by L0 (in practice, it hardly happen) when nested two-dimensional
    paging is enabled, the call to ->tlb_flush_gva() would be skipped and
    the hardware TLB entry would not be invalidated.
    Signed-off-by: NLai Jiangshan <laijs@linux.alibaba.com>
    Message-Id: <20211124122055.64424-5-jiangshanlai@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    05b29633
mmu.c 167.3 KB