diff options
author | Sean Christopherson <[email protected]> | 2022-02-26 00:15:20 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-03-08 09:31:17 -0500 |
commit | 3354ef5a592d219364cf442c2f784ce7ad7629fd (patch) | |
tree | b01dcfa6f7ab94d3eccabc9661d800bcc886b364 /scripts/gdb/linux | |
parent | 37b2a6510a48ca361ced679f92682b7b7d7d0330 (diff) |
KVM: x86/mmu: Check for present SPTE when clearing dirty bit in TDP MMU
Explicitly check for present SPTEs when clearing dirty bits in the TDP
MMU. This isn't strictly required for correctness, as setting the dirty
bit in a defunct SPTE will not change the SPTE from !PRESENT to PRESENT.
However, the guarded MMU_WARN_ON() in spte_ad_need_write_protect() would
complain if anyone actually turned on KVM's MMU debugging.
Fixes: a6a0b05da9f3 ("kvm: x86/mmu: Support dirty logging for the TDP MMU")
Cc: Ben Gardon <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Message-Id: <[email protected]>
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions