aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-06-09 16:42:23 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-06-17 13:09:51 -0400
commit272b0a998d084e7667284bdd2d0c675c6a2d11de (patch)
tree7c791d80185f4e4c01b3ba778b3b7b3b7f75af55 /arch/x86/kvm/svm/nested.c
parentKVM: nVMX: Ensure 64-bit shift when checking VMFUNC bitmap (diff)
downloadlinux-dev-272b0a998d084e7667284bdd2d0c675c6a2d11de.tar.xz
linux-dev-272b0a998d084e7667284bdd2d0c675c6a2d11de.zip
KVM: nVMX: Don't clobber nested MMU's A/D status on EPTP switch
Drop bogus logic that incorrectly clobbers the accessed/dirty enabling status of the nested MMU on an EPTP switch. When nested EPT is enabled, walk_mmu points at L2's _legacy_ page tables, not L1's EPT for L2. This is likely a benign bug, as mmu->ept_ad is never consumed (since the MMU is not a nested EPT MMU), and stuffing mmu_role.base.ad_disabled will never propagate into future shadow pages since the nested MMU isn't used to map anything, just to walk L2's page tables. Note, KVM also does a full MMU reload, i.e. the guest_mmu will be recreated using the new EPTP, and thus any change in A/D enabling will be properly recognized in the relevant MMU. Fixes: 41ab93727467 ("KVM: nVMX: Emulate EPTP switching for the L1 hypervisor") Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210609234235.1244004-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
0 files changed, 0 insertions, 0 deletions