All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/5] X86: enable MPX feature to HVM guest
@ 2013-11-19 10:54 Liu, Jinsong
  2013-11-21 15:32 ` Andrew Cooper
  2013-11-22 13:29 ` Jan Beulich
  0 siblings, 2 replies; 4+ messages in thread
From: Liu, Jinsong @ 2013-11-19 10:54 UTC (permalink / raw)
  To: Jan Beulich, keir@xen.org, xen-devel@lists.xen.org
  Cc: andrew.cooper3@citrix.com, Ian Campbell, haoxudong.hao@gmail.com

>From 9d0248fddf86c96efcb16963f0842927cb5c23c0 Mon Sep 17 00:00:00 2001
From: Liu Jinsong <jinsong.liu@intel.com>
Date: Tue, 19 Nov 2013 18:48:20 +0800
Subject: [PATCH 5/5] X86: enable MPX feature to HVM guest

Signed-off-by: Xudong Hao <xudong.hao@intel.com>
Reviewed-by: Liu Jinsong <jinsong.liu@intel.com>
---
 xen/arch/x86/xstate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xen/arch/x86/xstate.c b/xen/arch/x86/xstate.c
index 1fd43c9..2bc9b60 100644
--- a/xen/arch/x86/xstate.c
+++ b/xen/arch/x86/xstate.c
@@ -373,6 +373,7 @@ int handle_xsetbv(u32 index, u64 new_bv)
     mask = new_bv & ~curr->arch.xcr0_accum;
     curr->arch.xcr0 = new_bv;
     curr->arch.xcr0_accum |= new_bv;
+    curr->arch.nonlazy_xstate_used = !!(curr->arch.xcr0 & XSTATE_NONLAZY);
 
     mask &= curr->fpu_dirtied ? ~XSTATE_FP_SSE : XSTATE_NONLAZY;
     if ( mask )
-- 
1.7.1

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

end of thread, other threads:[~2013-11-22 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 10:54 [PATCH 5/5] X86: enable MPX feature to HVM guest Liu, Jinsong
2013-11-21 15:32 ` Andrew Cooper
2013-11-22 13:29 ` Jan Beulich
2013-11-22 16:51   ` Liu, Jinsong

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.