[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 5/5] X86: enable MPX feature to HVM guest
From 9d0248fddf86c96efcb16963f0842927cb5c23c0 Mon Sep 17 00:00:00 2001 From: Liu Jinsong <jinsong.liu@xxxxxxxxx> 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@xxxxxxxxx> Reviewed-by: Liu Jinsong <jinsong.liu@xxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |