ia64/xen-unstable

changeset 15272:7a16a499152c

[HVM] Save/restore: trigger FPU state save based on v->fpu_initialised
and not on the i387_valid flag, which has no meaning in this context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Mon Jun 04 17:09:12 2007 +0100 (2007-06-04)
parents 6f13c3be08fa
children 23460646912e
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Mon Jun 04 16:47:48 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Mon Jun 04 17:09:12 2007 +0100
     1.3 @@ -269,7 +269,7 @@ static int hvm_save_cpu_ctxt(struct doma
     1.4  
     1.5          /* Other vcpu register state */
     1.6          vc = &v->arch.guest_context;
     1.7 -        if ( vc->flags & VGCF_i387_valid )
     1.8 +        if ( v->fpu_initialised )
     1.9              memcpy(ctxt.fpu_regs, &vc->fpu_ctxt, sizeof(ctxt.fpu_regs));
    1.10          else 
    1.11              memset(ctxt.fpu_regs, 0, sizeof(ctxt.fpu_regs));
    1.12 @@ -361,7 +361,7 @@ static int hvm_load_cpu_ctxt(struct doma
    1.13      vc->debugreg[6] = ctxt.dr6;
    1.14      vc->debugreg[7] = ctxt.dr7;
    1.15  
    1.16 -    vc->flags = VGCF_i387_valid | VGCF_online;
    1.17 +    vc->flags = VGCF_online;
    1.18      v->fpu_initialised = 1;
    1.19  
    1.20      /* Auxiliary processors should be woken immediately. */