]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Reduce unnecessary saving of host msrs
authorAvi Kivity <avi@qumranet.com>
Tue, 17 Apr 2007 12:30:24 +0000 (15:30 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:29 +0000 (10:52 +0300)
commitd9b9ab6cb968771eb0b678f30015e9e0e50a80f6
treee61e3a6714d4fd06dbddb3d381494e505fd91ff0
parent06a79f2117ba505f3ead11694162a3b399f7c53b
KVM: VMX: Reduce unnecessary saving of host msrs

THe automatically switched msrs are never changed on the host (with
the exception of MSR_KERNEL_GS_BASE) and thus there is no need to save
them on every vm entry.

This reduces vmexit latency by ~400 cycles on i386 and by ~900 cycles (10%)
on x86_64.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c