WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] domheap: Don't refer struct domain

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] domheap: Don't refer struct domain from GET_VA_VCPU_VHPT_MADDR()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2008 01:11:10 -0800
Delivery-date: Wed, 23 Jan 2008 01:15:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1200596743 25200
# Node ID d0216f9e87c1d9b99563c5a5381915d8c2cda47f
# Parent  4f1f9ee5013302ddc224625661a93a86b8c30223
[IA64] domheap: Don't refer struct domain from GET_VA_VCPU_VHPT_MADDR()

So far, current->domain->arch.flags.has_pervcpu_vhpt is used.
Instead use current->arch.vhpt_page.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/asm-offsets.c       |    5 ++---
 xen/arch/ia64/linux-xen/mca_asm.S |    8 ++------
 2 files changed, 4 insertions(+), 9 deletions(-)

diff -r 4f1f9ee50133 -r d0216f9e87c1 xen/arch/ia64/asm-offsets.c
--- a/xen/arch/ia64/asm-offsets.c       Thu Jan 17 12:05:43 2008 -0700
+++ b/xen/arch/ia64/asm-offsets.c       Thu Jan 17 12:05:43 2008 -0700
@@ -253,9 +253,8 @@ void foo(void)
        DEFINE(IA64_MCA_CPU_RBSTORE_OFFSET,
               offsetof(struct ia64_mca_cpu, rbstore));
 
-       DEFINE(IA64_DOMAIN_FLAGS_OFFSET,
-              offsetof(struct domain, arch.flags));
-
+       DEFINE(IA64_VCPU_VHPT_PAGE_OFFSET,
+              offsetof(struct vcpu, arch.vhpt_page));
        DEFINE(IA64_VCPU_VHPT_MADDR_OFFSET,
               offsetof(struct vcpu, arch.vhpt_maddr));
 
diff -r 4f1f9ee50133 -r d0216f9e87c1 xen/arch/ia64/linux-xen/mca_asm.S
--- a/xen/arch/ia64/linux-xen/mca_asm.S Thu Jan 17 12:05:43 2008 -0700
+++ b/xen/arch/ia64/linux-xen/mca_asm.S Thu Jan 17 12:05:43 2008 -0700
@@ -196,13 +196,9 @@ 3: add r4 = r6, r3;;                                       
\
        add reg=IA64_KR_CURRENT_OFFSET,reg;;                    \
        ld8 reg=[reg];;                                         \
        dep tmp=0,reg,60,4;;                    /* V to P */    \
-       add tmp=IA64_VCPU_DOMAIN_OFFSET,tmp;;                   \
+       add tmp=IA64_VCPU_VHPT_PAGE_OFFSET,tmp;;                \
        ld8 tmp=[tmp];;                                         \
-       dep tmp=0,tmp,60,4;;                    /* V to P */    \
-       add tmp=IA64_DOMAIN_FLAGS_OFFSET,tmp;;                  \
-       ld8 tmp=[tmp];;                                         \
-       and tmp=HAS_PERVCPU_VHPT_MASK,tmp;;                     \
-       cmp.eq p6,p0=tmp,r0;                                    \
+       cmp.eq p6,p0=tmp,r0;    /* v->arch.vhpt_page == NULL */ \
 (p6)   br.cond.sptk 1f;                                        \
        add reg=IA64_VCPU_VHPT_MADDR_OFFSET,reg;;               \
        dep reg=0,reg,60,4;;                    /* V to P */    \

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] domheap: Don't refer struct domain from GET_VA_VCPU_VHPT_MADDR(), Xen patchbot-unstable <=