aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-03-03 15:54:39 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 17:58:21 +0100
commitfb7d4377d513145303c1d0a192cb4b33d72be2d9 (patch)
tree343eb8702600f30a278dda6141402b453ec90890 /tools/perf/scripts/python
parentKVM: x86: Handle Intel PT CPUID adjustment in VMX code (diff)
downloadlinux-fb7d4377d513145303c1d0a192cb4b33d72be2d9.tar.gz
linux-fb7d4377d513145303c1d0a192cb4b33d72be2d9.zip
KVM: x86: handle GBPAGE CPUID adjustment for EPT with generic code
The clearing of the GBPAGE CPUID bit for VMX is wrong; support for 1GB pages in EPT has no relationship to whether 1GB pages should be marked as supported in CPUID. This has no ill effect because we're only clearing the bit, but we're not marking 1GB pages as available when EPT is disabled (even though they are actually supported thanks to shadowing). Instead, forcibly enable 1GB pages in the shadow paging case. This also eliminates an instance of the undesirable "unsigned f_* = *_supported ? F(*) : 0" pattern in the common CPUID handling code, and paves the way toward eliminating ->get_lpage_level(). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions