[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Fix initial value of cr.pta



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1175786814 21600
# Node ID 81ba9d2267cbc3d654fbe9e6305f9f3f848ddfad
# Parent  3c8039aa5004c5b29b01b23b77c9c261ee005d9f
[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@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/vcpu.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 3c8039aa5004 -r 81ba9d2267cb xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Thu Apr 05 09:18:49 2007 -0600
+++ b/xen/arch/ia64/xen/vcpu.c  Thu Apr 05 09:26:54 2007 -0600
@@ -174,6 +174,9 @@ void vcpu_init_regs(struct vcpu *v)
                    INT_ENABLE_OFFSET(v);
                VCPU(v, itv) = (1 << 16);       /* timer vector masked */
        }
+
+       /* pta.size must not be 0.  The minimum is 15 (32k) */
+       VCPU(v, pta) = 15 << 2;
 
        v->arch.domain_itm_last = -1L;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.