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

[Xen-changelog] [xen-unstable] [IA64] Fill more registers for vcpu_getcontext



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1190050251 21600
# Node ID 082faaa306e090e9e1a61b687dab11869ecab27f
# Parent  b91d16ab68be801382c4b7ef99fa6b6929856bae
[IA64] Fill more registers for vcpu_getcontext

Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>
---
 xen/arch/ia64/xen/domain.c |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff -r b91d16ab68be -r 082faaa306e0 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Mon Sep 17 11:26:21 2007 -0600
+++ b/xen/arch/ia64/xen/domain.c        Mon Sep 17 11:30:51 2007 -0600
@@ -733,8 +733,27 @@ void arch_get_info_guest(struct vcpu *v,
        if (!v->domain->arch.is_vti && v->arch.privregs == NULL)
                return;
 
-       vcpu_get_dcr (v, &c.nat->regs.cr.dcr);
-       vcpu_get_iva (v, &c.nat->regs.cr.iva);
+       vcpu_get_dcr(v, &c.nat->regs.cr.dcr);
+
+       c.nat->regs.cr.itm = v->domain->arch.is_vti ?
+               vmx_vcpu_get_itm(v) : PSCBX(v, domain_itm);
+       vcpu_get_iva(v, &c.nat->regs.cr.iva);
+       vcpu_get_pta(v, &c.nat->regs.cr.pta);
+
+       vcpu_get_ipsr(v, &c.nat->regs.cr.ipsr);
+       vcpu_get_isr(v, &c.nat->regs.cr.isr);
+       vcpu_get_iip(v, &c.nat->regs.cr.iip);
+       vcpu_get_ifa(v, &c.nat->regs.cr.ifa);
+       vcpu_get_ivr(v, &c.nat->regs.cr.ivr);
+
+       vcpu_get_tpr(v, &c.nat->regs.cr.tpr);
+       vcpu_get_irr0(v, &c.nat->regs.cr.irr[0]);
+       vcpu_get_irr1(v, &c.nat->regs.cr.irr[1]);
+       vcpu_get_irr2(v, &c.nat->regs.cr.irr[2]);
+       vcpu_get_irr3(v, &c.nat->regs.cr.irr[3]);
+       vcpu_get_itv(v, &c.nat->regs.cr.itv);
+       vcpu_get_pmv(v, &c.nat->regs.cr.pmv);
+       vcpu_get_cmcv(v, &c.nat->regs.cr.cmcv);
 }
 
 int arch_set_info_guest(struct vcpu *v, vcpu_guest_context_u c)

_______________________________________________
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®.