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>
Showing
- arch/x86/include/asm/kvm_host.h 2 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/include/asm/vmx.h 1 addition, 0 deletionsarch/x86/include/asm/vmx.h
- arch/x86/kvm/kvm_cache_regs.h 6 additions, 0 deletionsarch/x86/kvm/kvm_cache_regs.h
- arch/x86/kvm/vmx.c 13 additions, 0 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 123 additions, 7 deletionsarch/x86/kvm/x86.c
- include/linux/kvm_host.h 1 addition, 1 deletioninclude/linux/kvm_host.h
Loading
Please register or sign in to comment