aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-12-13 14:16:30 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2018-01-16 16:52:52 +0100
commitc992384bde84fb2f0318bdb4f6c710605dd7a217 (patch)
tree60f91e72baf56050435eccd642b4e04067e8bbb9 /tools/perf/scripts/python/export-to-sqlite.py
parent1f6e5b25643e539e55a4c7553e4be6562c88fb76 (diff)
KVM: vmx: speed up MSR bitmap merge
The bulk of the MSR bitmap is either immutable, or can be copied from the L1 bitmap. By initializing it at VMXON time, and copying the mutable parts one long at a time on vmentry (rather than one bit), about 4000 clock cycles (30%) can be saved on a nested VMLAUNCH/VMRESUME. The resulting for loop only has four iterations, so it is cheap enough to reinitialize the MSR write bitmaps on every iteration, and it makes the code simpler. Suggested-by: Jim Mattson <jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions