summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-08-31 03:15:24 +0300
committerSean Christopherson <seanjc@google.com>2024-09-10 06:16:24 +0300
commitdfaae8447c53819749cf3ba10ce24d3c609752e3 (patch)
tree4e4651559d8d728cef69ad7e86671ece1773c68a /scripts/gdb/linux/utils.py
parent01dd4d319207c4cfd51a1c9a1812909e944d8c86 (diff)
downloadlinux-dfaae8447c53819749cf3ba10ce24d3c609752e3.tar.xz
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/20240831001538.336683-10-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions