All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/4] add xsaves/xrstors support
@ 2015-08-25 10:54 Shuai Ruan
  2015-08-25 10:54 ` [PATCH V4 1/4] x86/xsaves: add basic definitions/helpers to support xsaves Shuai Ruan
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: Shuai Ruan @ 2015-08-25 10:54 UTC (permalink / raw)
  To: xen-devel
  Cc: kevin.tian, wei.liu2, Ian.Campbell, stefano.stabellini,
	jun.nakajima, andrew.cooper3, ian.jackson, eddie.dong, jbeulich,
	keir

Changes in v4:
* Address comments from Andrew, mainly:
* No xsaves suporting for pv guest.
* Using xstate_sizes instead of domain_cpuid in hvm_cupid in patch 3.
* Add support for format translation when perform pv guest migration in patch 2. 
* Fix some code errors.

Changes in v3:
* Address comments from Jan/Konrad
* Change the bits of eax/ebx/ecx/edx passed to guest in patch 4.
* Add code to verify whether host supports xsaves or not in patch 1.

Changes in v2:
* Address comments from Andrew/chao/Jan, mainly:
* Add details information of xsaves/xrstors feature.
* Test migration between xsaves-support machine and none-xsaves-support machine 
* Remove XGETBV1/XSAVEC/XSAVEOPT out of 'else' in patch 3.
* Change macro name XGETBV to XGETBV1 in patch 4.

This patchset enable xsaves/xrstors feature which will be available on 
Intel Skylake and later platform. Like xsave/xrstor, xsaves/xrstors 
feature will save and load processor state from a region of memory called 
XSAVE area. While unlike xsave/xrstor, xsaves/xrstors:

a) use the compacted format only for the extended region 
   of the XSAVE area which saves memory for you;
b) can operate on supervisor state components so the feature
   is prerequisite to support new supervisor state components;
c) execute only if CPL=0. 

Detail hardware spec can be found in chapter 13 (section 13.11 13.12) of the 
Intel SDM [1].

patch1: add basic definition/function to support xsaves
patch2: add xsaves/xrstors support for xen
patch3-4: add xsaves/xrstors support for hvm guest


[1] Intel SDM (http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-manual-325462.pdf)

Shuai Ruan (4):
  x86/xsaves: add basic definitions/helpers to support xsaves
  x86/xsaves: enable xsaves/xrstors in xen
  x86/xsaves: enable xsaves/xrstors for hvm guest
  libxc: expose xsaves/xgetbv1/xsavec to hvm guest

 tools/libxc/xc_cpuid_x86.c         |  13 +-
 xen/arch/x86/domain.c              |   2 +
 xen/arch/x86/domctl.c              |  34 ++++-
 xen/arch/x86/hvm/hvm.c             |  62 ++++++++-
 xen/arch/x86/hvm/vmx/vmcs.c        |   6 +-
 xen/arch/x86/hvm/vmx/vmx.c         |  20 +++
 xen/arch/x86/i387.c                |   4 +
 xen/arch/x86/traps.c               |   7 +-
 xen/arch/x86/xstate.c              | 253 ++++++++++++++++++++++++++++++++-----
 xen/include/asm-x86/cpufeature.h   |   4 +
 xen/include/asm-x86/domain.h       |   1 +
 xen/include/asm-x86/hvm/vmx/vmcs.h |   7 +
 xen/include/asm-x86/hvm/vmx/vmx.h  |   2 +
 xen/include/asm-x86/msr-index.h    |   2 +
 xen/include/asm-x86/xstate.h       |  12 +-
 15 files changed, 374 insertions(+), 55 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2015-08-28 11:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 10:54 [PATCH V4 0/4] add xsaves/xrstors support Shuai Ruan
2015-08-25 10:54 ` [PATCH V4 1/4] x86/xsaves: add basic definitions/helpers to support xsaves Shuai Ruan
2015-08-26  9:47   ` Andrew Cooper
2015-08-26 11:41     ` Jan Beulich
2015-08-26 12:53       ` Jan Beulich
2015-08-28  5:34         ` Shuai Ruan
2015-08-28  2:49     ` Shuai Ruan
2015-08-26 12:55   ` Jan Beulich
2015-08-25 10:54 ` [PATCH V4 2/4] x86/xsaves: enable xsaves/xrstors in xen Shuai Ruan
2015-08-26 10:12   ` Andrew Cooper
2015-08-26 11:50     ` Jan Beulich
2015-08-26 12:05       ` Andrew Cooper
2015-08-26 12:35         ` Jan Beulich
2015-08-28  5:25           ` Shuai Ruan
2015-08-28  5:22     ` Shuai Ruan
2015-08-26 13:06   ` Jan Beulich
2015-08-28 10:54     ` Shuai Ruan
     [not found]     ` <20150828105408.GA18437@shuai.ruan@linux.intel.com>
2015-08-28 11:27       ` Jan Beulich
2015-08-25 10:54 ` [PATCH V4 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest Shuai Ruan
2015-08-26 10:36   ` Andrew Cooper
2015-08-28  2:52     ` Shuai Ruan
2015-08-26 13:14   ` Jan Beulich
2015-08-25 10:54 ` [PATCH V4 4/4] libxc: expose xsaves/xgetbv1/xsavec to " Shuai Ruan
2015-08-26 10:43   ` Andrew Cooper
2015-08-26 12:03     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.