diff options
author | Sean Christopherson <[email protected]> | 2024-08-30 17:15:24 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-09-09 20:16:24 -0700 |
commit | dfaae8447c53819749cf3ba10ce24d3c609752e3 (patch) | |
tree | 4e4651559d8d728cef69ad7e86671ece1773c68a /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 01dd4d319207c4cfd51a1c9a1812909e944d8c86 (diff) |
KVM: x86/mmu: Try "unprotect for retry" iff there are indirect SPs
Try to unprotect shadow pages if and only if indirect_shadow_pages is non-
zero, i.e. iff there is at least one protected such shadow page. Pre-
checking indirect_shadow_pages avoids taking mmu_lock for write when the
gfn is write-protected by a third party, i.e. not for KVM shadow paging,
and in the *extremely* unlikely case that a different task has already
unprotected the last shadow page.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions