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

Re: [Xen-ia64-devel] ia64: Fix build problem when VHPT_ENABLED isn't def

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] ia64: Fix build problem when VHPT_ENABLED isn't defined
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 24 Apr 2008 18:47:39 +0900
Cc: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 24 Apr 2008 02:47:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080423024428.94D42140E06@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <20080423024428.94D42140E06@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Hi Simon-san.

VHPT_ENABLED is directly defined in xen/include/asm-ia64/vhpt.h
as "#define VHPT_ENABLED 1"
Thus your patch causes compilation error like the followings.
I guess you need this options for debugging kexec/kdump and 
that this option is efficient for vhpt related debugging.
So it's worth while to keep vhpt_enabled option, I suppose.

Could you define it ?CFLAGS += -DVHPT_ENABLED) in
xen/arch/ia64/Rules.mk like other options with default y and
remove the define in vhpt.h?



ia64-linux-gnu-ld -g -T xen.lds.s -N \
                -Map map.out linux-xen/head.o
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/common/built_in.o
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/drivers/built_in.o
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/xsm/built_in.o
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/built_in.o
\
                
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/common/symbols-dummy.o 
-o /home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/xen-syms
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/built_in.o:
In function `ia64_do_tlb_purge':
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/linux-xen/mca_asm.S:325:
undefined reference to `IA64_VCPU_VHPT_PAGE_OFFSET'
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/linux-xen/mca_asm.S:325:
undefined reference to `IA64_VCPU_VHPT_MADDR_OFFSET'
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/built_in.o:
In function `ia64_reload_tr':
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/linux-xen/mca_asm.S:484:
undefined reference to `IA64_VCPU_VHPT_PAGE_OFFSET'
/home/yamahata/xen/ia64/xenbits/my01/xen-unstable.hg/xen/arch/ia64/linux-xen/mca_asm.S:484:
undefined reference to `IA64_VCPU_VHPT_MADDR_OFFSET'



On Wed, Apr 23, 2008 at 12:40:19PM +1000, Simon Horman wrote:
> arch.vhpt_page and arch.vhpt_maddr don't exist unless VHPT_ENABLED is defined.
> 
> asm-offsets.c: In function `foo':
> asm-offsets.c:257: error: structure has no member named `vhpt_page'
> asm-offsets.c:259: error: structure has no member named `vhpt_maddr'
> 
> Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
> 
> Index: xen-unstable.hg/xen/arch/ia64/asm-offsets.c
> ===================================================================
> --- xen-unstable.hg.orig/xen/arch/ia64/asm-offsets.c  2008-04-22 
> 17:32:51.000000000 +1000
> +++ xen-unstable.hg/xen/arch/ia64/asm-offsets.c       2008-04-23 
> 12:38:33.000000000 +1000
> @@ -254,10 +254,12 @@ void foo(void)
>       DEFINE(IA64_MCA_CPU_RBSTORE_OFFSET,
>              offsetof(struct ia64_mca_cpu, rbstore));
>  
> +#ifdef VHPT_ENABLED
>       DEFINE(IA64_VCPU_VHPT_PAGE_OFFSET,
>              offsetof(struct vcpu, arch.vhpt_page));
>       DEFINE(IA64_VCPU_VHPT_MADDR_OFFSET,
>              offsetof(struct vcpu, arch.vhpt_maddr));
> +#endif
>  
>       BLANK();
>       DEFINE(IA64_MCA_TLB_INFO_SIZE, sizeof(struct ia64_mca_tlb_info));
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel
> 

-- 
yamahata

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

<Prev in Thread] Current Thread [Next in Thread>