summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2016-11-30 05:14:09 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2016-12-08 17:31:08 +0300
commit8322ebbb24088c22049ef53cd066c6c220640edb (patch)
treed91152a0df6fc1700e5f6c296f0f553b6572e439 /tools/perf/scripts/python/stackcollapse.py
parent3899152ccbf42d7e3d3c7830b1fae75a575a1ed6 (diff)
downloadlinux-8322ebbb24088c22049ef53cd066c6c220640edb.tar.xz
KVM: nVMX: generate MSR_IA32_CR{0,4}_FIXED1 from guest CPUID
MSR_IA32_CR{0,4}_FIXED1 define which bits in CR0 and CR4 are allowed to be 1 during VMX operation. Since the set of allowed-1 bits is the same in and out of VMX operation, we can generate these MSRs entirely from the guest's CPUID. This lets userspace avoiding having to save/restore these MSRs. This patch also initializes MSR_IA32_CR{0,4}_FIXED1 from the CPU's MSRs by default. This is a saner than the current default of -1ull, which includes bits that the host CPU does not support. Signed-off-by: David Matlack <dmatlack@google.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions