aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-02-25 12:47:27 -0800
committerPaolo Bonzini <[email protected]>2021-03-15 04:43:34 -0400
commit64bb2769d700f56dbb2f95705bb0732acddd00bf (patch)
tree134902ac1d8d523172398fbbba43dc88f35e40b9 /tools
parent203219571330a591bc60b84ab052dbe0ccc52827 (diff)
KVM: x86/mmu: Check for shadow-present SPTE before querying A/D status
When updating accessed and dirty bits, check that the new SPTE is present before attempting to query its A/D bits. Failure to confirm the SPTE is present can theoretically cause a false negative, e.g. if a MMIO SPTE replaces a "real" SPTE and somehow the PFNs magically match. Realistically, this is all but guaranteed to be a benign bug. Fix it up primarily so that a future patch can tweak the MMU_WARN_ON checking A/D status to fire if the SPTE is not-present. Fixes: f8e144971c68 ("kvm: x86/mmu: Add access tracking for tdp_mmu") Cc: Ben Gardon <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions