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-ia64-devel

[Xen-ia64-devel] [PATCH 9/16] domheap: don't refer struct domain from GE

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 9/16] domheap: don't refer struct domain from GET_VA_VCPU_VHPT_MADDR()
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 7 Jan 2008 16:52:34 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Sun, 06 Jan 2008 23:54:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1198583581 -32400
# Node ID 7c7f9fd34531fb7e66e1ea26733370f4eb52085f
# Parent  105c577732e610b2a20d44098aab17615e2e47d6
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.
PATCHNAME: mca_dont_refer_struct_domain

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 105c577732e6 -r 7c7f9fd34531 xen/arch/ia64/asm-offsets.c
--- a/xen/arch/ia64/asm-offsets.c       Mon Jan 07 16:14:49 2008 +0900
+++ b/xen/arch/ia64/asm-offsets.c       Tue Dec 25 20:53:01 2007 +0900
@@ -252,9 +252,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 105c577732e6 -r 7c7f9fd34531 xen/arch/ia64/linux-xen/mca_asm.S
--- a/xen/arch/ia64/linux-xen/mca_asm.S Mon Jan 07 16:14:49 2008 +0900
+++ b/xen/arch/ia64/linux-xen/mca_asm.S Tue Dec 25 20:53:01 2007 +0900
@@ -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 */    \

Attachment: 16703_7c7f9fd34531_mca_dont_refer_struct_domain.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 9/16] domheap: don't refer struct domain from GET_VA_VCPU_VHPT_MADDR(), Isaku Yamahata <=