aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/i387.c
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-24 10:46:24 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-06-24 10:46:24 +0000
commited30037e48073a7d855fce58c1dfc563e446ff6c (patch)
tree1a9a3439c4acbd1d420c222f26acfd8aea873c66 /xen/arch/x86/i387.c
parenta3adbd6c3cabd7e5fa757827c0f058c7b19b889b (diff)
downloadxen-ed30037e48073a7d855fce58c1dfc563e446ff6c.tar.gz
xen-ed30037e48073a7d855fce58c1dfc563e446ff6c.tar.bz2
xen-ed30037e48073a7d855fce58c1dfc563e446ff6c.zip
bitkeeper revision 1.1751 (42bbe480z9Fp_L5Tc500W8c8CL3g9A)
Rationalise x86 CRn guest state into a ctrlreg array in the per-vcpu context structure. Most noticeably this means the pt_base field has gone away -- replaced by ctrlreg[3] (CR3). VCPU_guest_stts is also gone -- it was never arch-independent anyway. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/i387.c')
-rw-r--r--xen/arch/x86/i387.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c
index eb5ff9479b..9740be454d 100644
--- a/xen/arch/x86/i387.c
+++ b/xen/arch/x86/i387.c
@@ -29,7 +29,7 @@ void save_init_fpu(struct vcpu *tsk)
* This causes us to set the real flag, so we'll need
* to temporarily clear it while saving f-p state.
*/
- if ( test_bit(_VCPUF_guest_stts, &tsk->vcpu_flags) )
+ if ( VMX_DOMAIN(tsk) || (tsk->arch.guest_context.ctrlreg[0] & X86_CR0_TS) )
clts();
if ( cpu_has_fxsr )