aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/perf_test_util.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-01-15 00:40:51 +0000
committerPaolo Bonzini <[email protected]>2021-02-04 10:27:17 +0000
commitc5e2184d1544f9e56140791eff1a351bea2e63b9 (patch)
tree66e25896fddf9f472fa38e243ac554b1b4c955a1 /tools/testing/selftests/kvm/lib/perf_test_util.c
parentKVM: selftests: Test IPI to halted vCPU in xAPIC while backing page moves (diff)
downloadkernel-c5e2184d1544f9e56140791eff1a351bea2e63b9.tar.gz
kernel-c5e2184d1544f9e56140791eff1a351bea2e63b9.zip
KVM: x86/mmu: Remove the defunct update_pte() paging hook
Remove the update_pte() shadow paging logic, which was obsoleted by commit 4731d4c7a077 ("KVM: MMU: out of sync shadow core"), but never removed. As pointed out by Yu, KVM never write protects leaf page tables for the purposes of shadow paging, and instead marks their associated shadow page as unsync so that the guest can write PTEs at will. The update_pte() path, which predates the unsync logic, optimizes COW scenarios by refreshing leaf SPTEs when they are written, as opposed to zapping the SPTE, restarting the guest, and installing the new SPTE on the subsequent fault. Since KVM no longer write-protects leaf page tables, update_pte() is unreachable and can be dropped. Reported-by: Yu Zhang <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
0 files changed, 0 insertions, 0 deletions