Skip to contentSkip to conversation

Compile fixes for 32-bit targets (trivial), questions

PATCH Applied Simon Kagstrom 2 participants 2 messages Nov 8, 2006 – Nov 9, 2006 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compile fixes for 32-bit targets (trivial), questions

Hello!

I wanted to try out KVM and followed the HOWTO. It worked fine, except for two things:

* libuuid-dev is needed for qemu, which would be good if added to the prerequisites

* The build of kvm.ko failed since load_TR_desc() was not defined (I've been building for a 32-bit target). The patch below fixes that, if the development branch does not already fix this

Booting and old harddisk image I had worked fine with /usr/local/kvm/bin/qemu-system-x86_64, but it did so even without the kvm module (on a x86_64 this was not the case), so it seems that the 32-bit version doesn't really do very much yet.

// Simon

kvm_main.c renamed from kvm-module/kvm_main.c +1 -0
@@ -30,6 +30,7 @@
 #include <linux/debugfs.h>
 #include <linux/highmem.h>
 #include <linux/file.h>
+#include <asm/desc.h>
 
 #include "vmx.h"
 #include "x86_emulate.h"

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 87mz72hreg.wl%[email protected]

Applied
#2 lore raw
Quoted 8 lines · Simon Kagstrom

Hello!

I wanted to try out KVM and followed the HOWTO. It worked fine, except for two things:

* libuuid-dev is needed for qemu, which would be good if added to the prerequisites

Will do.

Quoted 4 lines

* The build of kvm.ko failed since load_TR_desc() was not defined (I've been building for a 32-bit target). The patch below fixes that, if the development branch does not already fix this

Applied, thanks.

Quoted 5 lines

Booting and old harddisk image I had worked fine with /usr/local/kvm/bin/qemu-system-x86_64, but it did so even without the kvm module (on a x86_64 this was not the case), so it seems that the 32-bit version doesn't really do very much yet.

I think it wants the regular qemu binary (named qemu) for 32-bit. The instructions are 64-bit specific. I'll check and update.

You can detect kvm operation using lsof -p pgrep qemu (which should show /dev/kvm opened) and using top (guest time shows as system time).

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642