]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Selective cr0 intercept
authorAvi Kivity <avi@redhat.com>
Wed, 6 Jan 2010 08:55:27 +0000 (10:55 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:51 +0000 (12:35 -0300)
commit28f72d88286726d2f5003ddf0ad7853646a411c0
treeedea55c1e777faa364c6c379fff136ded71b001f
parent55cb4e31136601d3e3a6c01d42fd3473012ed903
KVM: SVM: Selective cr0 intercept

If two conditions apply:
 - no bits outside TS and EM differ between the host and guest cr0
 - the fpu is active

then we can activate the selective cr0 write intercept and drop the
unconditional cr0 read and write intercept, and allow the guest to run
with the host fpu state.  This reduces cr0 exits due to guest fpu management
while the guest fpu is loaded.

Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c