aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Matlack <[email protected]>2022-06-22 15:27:05 -0400
committerPaolo Bonzini <[email protected]>2022-06-24 04:51:59 -0400
commit47855da0555a46eb4f98f5e5cae98525daf83ff9 (patch)
treeb3e79dc925606452e3087fdf82cdc433c7e4ff8a /tools/perf/scripts/python
parent6a97575d5cffb71aa9a95d33f0ca03c8a4bb3b2b (diff)
KVM: x86/mmu: Extend make_huge_page_split_spte() for the shadow MMU
Currently make_huge_page_split_spte() assumes execute permissions can be granted to any 4K SPTE when splitting huge pages. This is true for the TDP MMU but is not necessarily true for the shadow MMU, since KVM may be shadowing a non-executable huge page. To fix this, pass in the role of the child shadow page where the huge page will be split and derive the execution permission from that. This is correct because huge pages are always split with direct shadow page and thus the shadow page role contains the correct access permissions. No functional change intended. Signed-off-by: David Matlack <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions