ia64/xen-unstable

changeset 14711:81ba9d2267cb

[IA64] Fix initial value of cr.pta

The initial value of cr.pta in a vcpu is zero. So a Reserved
Register/Field fault is raised if a guest executes the following
sequence:

mov r2=cr.pta;;
...
mov cr.pta=r2

Actually, the windows installer with vcpus>=3 crashes due to this
issue.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Apr 05 09:26:54 2007 -0600 (2007-04-05)
parents 3c8039aa5004
children 5d9ab2d06709
files xen/arch/ia64/xen/vcpu.c
line diff
     1.1 --- a/xen/arch/ia64/xen/vcpu.c	Thu Apr 05 09:18:49 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/vcpu.c	Thu Apr 05 09:26:54 2007 -0600
     1.3 @@ -175,6 +175,9 @@ void vcpu_init_regs(struct vcpu *v)
     1.4  		VCPU(v, itv) = (1 << 16);	/* timer vector masked */
     1.5  	}
     1.6  
     1.7 +	/* pta.size must not be 0.  The minimum is 15 (32k) */
     1.8 +	VCPU(v, pta) = 15 << 2;
     1.9 +
    1.10  	v->arch.domain_itm_last = -1L;
    1.11  }
    1.12