aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-10-19 16:56:14 +0000
committerPaolo Bonzini <[email protected]>2022-11-09 12:31:32 -0500
commit61f94478547bb4fdcd4c4f37a0aa723d610a7422 (patch)
treea2851ba7b9abaf770925cd79b4bccaf79040aa2a /tools/perf/scripts/python/flamegraph.py
parentb5b0977f4aa28ef2166894b05f37d8f8028a76ce (diff)
KVM: x86/mmu: Set disallowed_nx_huge_page in TDP MMU before setting SPTE
Set nx_huge_page_disallowed in TDP MMU shadow pages before making the SP visible to other readers, i.e. before setting its SPTE. This will allow KVM to query the flag when determining if a shadow page can be replaced by a NX huge page without violating the rules of the mitigation. Note, the shadow/legacy MMU holds mmu_lock for write, so it's impossible for another CPU to see a shadow page without an up-to-date nx_huge_page_disallowed, i.e. only the TDP MMU needs the complicated dance. Signed-off-by: Sean Christopherson <[email protected]> Reviewed-by: David Matlack <[email protected]> Reviewed-by: Yan Zhao <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions