xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/xsaves: bugs fix
@ 2016-02-22  5:35 Shuai Ruan
  2016-02-22  5:35 ` [PATCH 1/3] x86/xsaves: caculate the xstate_comp_offsets base on xcomp_bv Shuai Ruan
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Shuai Ruan @ 2016-02-22  5:35 UTC (permalink / raw)
  To: xen-devel
  Cc: wei.liu2, Ian.Campbell, stefano.stabellini, andrew.cooper3,
	ian.jackson, jbeulich, keir

This patch fix bugs caused by previous patch:
1. xstate_comp_offset should be caculated based on xcomp_bv
2. non-lazy/lazy xsave[sc] may overwiting xsave area
3. ebx may return wrong value using CPUID eax=0xdh,ecx =1

The fist and second bugs is found by Jan. Thanks to Jan.

Shuai Ruan (3):
  x86/xsaves: caculate the xstate_comp_offsets base on xcomp_bv
  x86/xsaves: fix overwriting between non-lazy/lazy xsave[sc]
  x86/xsaves: ebx may return wrong value using CPUID eax=0xdh,ecx =1

 tools/libxc/xc_cpuid_x86.c   | 10 ++++++++--
 xen/arch/x86/hvm/hvm.c       | 12 ++++++++++++
 xen/arch/x86/i387.c          |  2 +-
 xen/arch/x86/xstate.c        | 29 +++++++++++++++++++++--------
 xen/include/asm-x86/xstate.h |  1 +
 5 files changed, 43 insertions(+), 11 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2016-03-02 10:31 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22  5:35 [PATCH 0/3] x86/xsaves: bugs fix Shuai Ruan
2016-02-22  5:35 ` [PATCH 1/3] x86/xsaves: caculate the xstate_comp_offsets base on xcomp_bv Shuai Ruan
2016-02-22 14:48   ` Jan Beulich
2016-02-22  5:35 ` [PATCH 2/3] x86/xsaves: fix overwriting between non-lazy/lazy xsave[sc] Shuai Ruan
2016-02-22 17:08   ` Jan Beulich
2016-02-24  7:05     ` Shuai Ruan
     [not found]     ` <20160224070521.GB19785@shuai.ruan@linux.intel.com>
2016-02-24  9:16       ` Jan Beulich
2016-02-26  7:41         ` Shuai Ruan
     [not found]         ` <20160226074133.GA3825@shuai.ruan@linux.intel.com>
2016-02-26  8:42           ` Jan Beulich
2016-02-29  9:06             ` Shuai Ruan
     [not found]             ` <20160229090637.GB3825@shuai.ruan@linux.intel.com>
2016-02-29  9:33               ` Jan Beulich
2016-03-02 10:31                 ` Shuai Ruan
2016-02-22  5:35 ` [PATCH 3/3] x86/xsaves: ebx may return wrong value using CPUID eax=0xdh, ecx =1 Shuai Ruan
2016-02-22 17:18   ` Jan Beulich
2016-02-24  5:42     ` Shuai Ruan
2016-02-24  6:51     ` Shuai Ruan
     [not found]     ` <20160224054209.GA24976@shuai.ruan@linux.intel.com>
2016-02-24  9:18       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).