diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-08-24 13:55:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-08-24 15:35:14 +0200 |
commit | 80154d77c922d0f9bb1e4d115ff760c066c12d8f (patch) | |
tree | 44a3b127ce9e25c58528bd44990ca9624260667c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 640bd6e5752274f7dbd2a0a6642fe2db85813bd9 (diff) |
KVM: VMX: cache secondary exec controls
Currently, secondary execution controls are divided in three groups:
- static, depending mostly on the module arguments or the processor
(vmx_secondary_exec_control)
- static, depending on CPUID (vmx_cpuid_update)
- dynamic, depending on nested VMX or local APIC state
Because walking CPUID is expensive, prepare_vmcs02 is using only
the first group. This however is unnecessarily complicated. Just
cache the static secondary execution controls, and then prepare_vmcs02
does not need to compute them every time. Computation of all static
secondary execution controls is now kept in a single function,
vmx_compute_secondary_exec_control.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions