Re: [build bug] lguest build failure: drivers/lguest/x86/switcher_32.S:(.text+0x3815f8): undefined reference to `LGUEST_PAGES_regs_trapnum'

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Gleixner <tglx@...>
Cc: Rusty Russell <rusty@...>, Ingo Molnar <mingo@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>
Date: Sunday, February 17, 2008 - 10:07 am

Thomas Gleixner wrote:

It doesn't fix the problem totally. If we select 
Virtualization->Linux hypervisor example code (CONFIG_LGUEST) 
as a module, we will get the same build errors, since the related
offsets won't be generated in include/asm-x86/asm-offset.h
From arch/x86/kernel/asm_offsets_32.c
[...]
#ifdef CONFIG_LGUEST
        BLANK();
        OFFSET(LGUEST_PAGES_host_gdt_desc, lguest_pages, state.host_gdt_desc);
        OFFSET(LGUEST_PAGES_host_idt_desc, lguest_pages, state.host_idt_desc);
        OFFSET(LGUEST_PAGES_host_cr3, lguest_pages, state.host_cr3);
        OFFSET(LGUEST_PAGES_host_sp, lguest_pages, state.host_sp);
        OFFSET(LGUEST_PAGES_guest_gdt_desc, lguest_pages,state.guest_gdt_desc);
        OFFSET(LGUEST_PAGES_guest_idt_desc, lguest_pages,state.guest_idt_desc);
        OFFSET(LGUEST_PAGES_guest_gdt, lguest_pages, state.guest_gdt);
        OFFSET(LGUEST_PAGES_regs_trapnum, lguest_pages, regs.trapnum);
        OFFSET(LGUEST_PAGES_regs_errcode, lguest_pages, regs.errcode);
        OFFSET(LGUEST_PAGES_regs, lguest_pages, regs);
#endif
[...]

-sergio
	
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix building lguest as module., Tony Breeds, (Mon Feb 18, 11:44 pm)
Re: [PATCH] Fix building lguest as module., Ingo Molnar, (Tue Feb 19, 3:32 am)
Re: [PATCH] Fix building lguest as module., Ingo Molnar, (Tue Feb 19, 9:54 am)
Re: [PATCH] Fix building lguest as module., Tony Breeds, (Tue Feb 19, 7:35 pm)
Re: [PATCH] Fix building lguest as module., Ingo Molnar, (Wed Feb 20, 6:01 am)
Re: [PATCH] Fix building lguest as module., Tony Breeds, (Fri Feb 22, 1:58 am)
Re: [PATCH] Fix building lguest as module., Ingo Molnar, (Wed Feb 20, 5:33 am)
Re: [build bug] lguest build failure: drivers/lguest/x86/swi..., Sergio Luis, (Sun Feb 17, 10:07 am)