aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2017-12-13 14:16:30 +0100
committerRadim Krčmář <[email protected]>2018-01-16 16:52:52 +0100
commitc992384bde84fb2f0318bdb4f6c710605dd7a217 (patch)
tree60f91e72baf56050435eccd642b4e04067e8bbb9 /net/switchdev/switchdev.c
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 <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions