ia64/xen-unstable

changeset 16266:ba8c2bbaad79

x86: Remove dead code from arch_get_info_guest().
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Mon Oct 29 15:05:27 2007 +0000 (2007-10-29)
parents 955ee4fa1345
children 4034317507de
files xen/arch/x86/domctl.c
line diff
     1.1 --- a/xen/arch/x86/domctl.c	Mon Oct 29 14:43:19 2007 +0000
     1.2 +++ b/xen/arch/x86/domctl.c	Mon Oct 29 15:05:27 2007 +0000
     1.3 @@ -800,24 +800,11 @@ void arch_get_info_guest(struct vcpu *v,
     1.4  
     1.5      if ( is_hvm_vcpu(v) )
     1.6      {
     1.7 -        if ( !is_pv_32on64_domain(v->domain) )
     1.8 -        {
     1.9 -            memset(c.nat->ctrlreg, 0, sizeof(c.nat->ctrlreg));
    1.10 -            c.nat->ctrlreg[0] = v->arch.hvm_vcpu.guest_cr[0];
    1.11 -            c.nat->ctrlreg[2] = v->arch.hvm_vcpu.guest_cr[2];
    1.12 -            c.nat->ctrlreg[3] = v->arch.hvm_vcpu.guest_cr[3];
    1.13 -            c.nat->ctrlreg[4] = v->arch.hvm_vcpu.guest_cr[4];
    1.14 -        }
    1.15 -#ifdef CONFIG_COMPAT
    1.16 -        else
    1.17 -        {
    1.18 -            memset(c.cmp->ctrlreg, 0, sizeof(c.cmp->ctrlreg));
    1.19 -            c.cmp->ctrlreg[0] = v->arch.hvm_vcpu.guest_cr[0];
    1.20 -            c.cmp->ctrlreg[2] = v->arch.hvm_vcpu.guest_cr[2];
    1.21 -            c.cmp->ctrlreg[3] = v->arch.hvm_vcpu.guest_cr[3];
    1.22 -            c.cmp->ctrlreg[4] = v->arch.hvm_vcpu.guest_cr[4];
    1.23 -        }
    1.24 -#endif
    1.25 +        memset(c.nat->ctrlreg, 0, sizeof(c.nat->ctrlreg));
    1.26 +        c.nat->ctrlreg[0] = v->arch.hvm_vcpu.guest_cr[0];
    1.27 +        c.nat->ctrlreg[2] = v->arch.hvm_vcpu.guest_cr[2];
    1.28 +        c.nat->ctrlreg[3] = v->arch.hvm_vcpu.guest_cr[3];
    1.29 +        c.nat->ctrlreg[4] = v->arch.hvm_vcpu.guest_cr[4];
    1.30      }
    1.31      else
    1.32      {