public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm-29 and linux 2.6.22.1-cfs-v19
@ 2007-07-14 19:56 Chris Clayton
       [not found] ` <200707141956.41423.chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Clayton @ 2007-07-14 19:56 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

I'm building kvm-29 on a system that is running linux-2.6.22.1-cfs-v19. When 
the modules are built I get warnings about set_64bit:

  CC [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/vmx-debug.o
  CC [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm_main.o
  CC [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/mmu.o
/home/users/chris/rpm/BUILD/kvm-29/kernel/mmu.c: In function 'set_shadow_pte':
/home/users/chris/rpm/BUILD/kvm-29/kernel/mmu.c:202: warning: implicit 
declaration of function 'set_64bit'
  CC [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/x86_emulate.o
  CC [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/anon_inodes.o
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm.o
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-intel.o
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-amd.o
  Building modules, stage 2.
  MODPOST 3 modules
WARNING: "set_64bit" [/home/users/chris/rpm/BUILD/kvm-29/kernel/kvm.ko] 
undefined!
  CC      /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-amd.mod.o
  CC      /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-intel.mod.o
  CC      /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm.mod.o
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-amd.ko
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm-intel.ko
  LD [M]  /home/users/chris/rpm/BUILD/kvm-29/kernel/kvm.ko
m
Because set_64bit is undefined, kvm.ko (and kvm-intel.ko) can't be loaded.

I've found the set_64bit in the kernel sources - it's a macro in 
asm-i386/cmpxchg.h. The problem is that the macro(and some realted macros and 
definitions are guarded by "#ifdef  CONFIG_X86_CMPXCHG64". Since that isn't 
defined for my kernel, set_64bit is not defined either.

If I comment the guarding #ifdef (and its partner #endif) kvm builds fine and 
everything seems to work OK.- the modules load and Damn Small Linux and 
FreeBSD run fine.

Any advice would be much appreciated and more than happy to test patches.

I'm not subscribed, so please cc me.

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-15  6:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14 19:56 kvm-29 and linux 2.6.22.1-cfs-v19 Chris Clayton
     [not found] ` <200707141956.41423.chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2007-07-14 20:13   ` Anthony Liguori
     [not found]     ` <46992E5B.1030102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-14 20:58       ` Chris Clayton
     [not found]         ` <200707142058.27525.chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2007-07-14 23:09           ` Anthony Liguori
     [not found]             ` <469957A8.9030402-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-07-15  6:17               ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox