Skip to content

kvm: vmx: enable xsaves for kvm

Wanpeng Li kvm lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 3 repliesSuperseded

Changes in v4 from the cover letter

* return false from an svm_xsaves_supported function
* prevent setting MSR_IA32_XSS to any non-zero value

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm: vmx: Intel XSAVES vmx and msr handlearch/x86/include/asm/kvm_host.h arch/x86/include/asm/vmx.h arch/x86/include/uapi/asm/vmx.h +2 more+46 -20 replies
2/3kvm: vmx: add kvm_get/set logic to xsavesarch/x86/kvm/vmx.c+26 -00 replies
3/3kvm: x86: Enable Intel XSAVES for guestarch/x86/kvm/cpuid.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] kvm: vmx: enable xsaves for kvm

This patchset is to enable xsaves for kvm part and tested on skylake-client.

v3 -> v4:
* return false from an svm_xsaves_supported function
* prevent setting MSR_IA32_XSS to any non-zero value

v2 -> v3:
* add kvm_get/set for ia32_xss
* fix the type XSS_EXIT_BITMAP
* load host_xss just once in setup_vmcs_config
* add/clear atuo switch ia32_xss msr in kvm_get/clear
* add VMX_XSS_EXIT_BITMAP macro
* add WARN() in handle_xsaves/xrstors
* export xsaves if related vmcs field is set

v1 -> v2:
* auto switch ia32_xss msr just if this msr is present

Wanpeng Li (3):
kvm: vmx: Intel XSAVES vmx and msr handle
kvm: vmx: add kvm_get/set logic to xsaves
kvm: x86: Enable Intel XSAVES for guest

 arch/x86/include/asm/kvm_host.h |  2 ++
 arch/x86/include/asm/vmx.h      |  3 +++
 arch/x86/include/uapi/asm/vmx.h |  6 ++++-
 arch/x86/kvm/cpuid.c            |  3 ++-
 arch/x86/kvm/svm.c              |  6 +++++
 arch/x86/kvm/vmx.c              | 57 ++++++++++++++++++++++++++++++++++++++++-
 6 files changed, 74 insertions(+), 3 deletions(-)
Signature · 1 line
1.9.1