diff options
author | Dexuan Cui | 2010-06-10 05:27:12 +0200 |
---|---|---|
committer | Avi Kivity | 2010-08-01 09:46:31 +0200 |
commit | 2acf923e38fb6a4ce0c57115decbb38d334902ac (patch) | |
tree | 51a0fba243c857a3bc373ab152c6374c804df224 /include/linux | |
parent | KVM: VMX: Fix incorrect rcu deref in rmode_tss_base() (diff) | |
download | kernel-qcow2-linux-2acf923e38fb6a4ce0c57115decbb38d334902ac.tar.gz kernel-qcow2-linux-2acf923e38fb6a4ce0c57115decbb38d334902ac.tar.xz kernel-qcow2-linux-2acf923e38fb6a4ce0c57115decbb38d334902ac.zip |
KVM: VMX: Enable XSAVE/XRSTOR for guest
This patch enable guest to use XSAVE/XRSTOR instructions.
We assume that host_xcr0 would use all possible bits that OS supported.
And we loaded xcr0 in the same way we handled fpu - do it as late as we can.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 2c62319727ef..2d96555cd4ed 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -88,7 +88,7 @@ struct kvm_vcpu { int srcu_idx; int fpu_active; - int guest_fpu_loaded; + int guest_fpu_loaded, guest_xcr0_loaded; wait_queue_head_t wq; int sigset_active; sigset_t sigset; |