KQEMU API change
Hi,
I just committed a few changes in the KQEMU API. People wishing to use kqemu with the current QEMU version from the repository should download the new KQEMU release (version 1.4.0pre1).
Fabrice.
Quoted 7 lines · Fabrice Bellard
Hi,
I just committed a few changes in the KQEMU API. People wishing to use kqemu with the current QEMU version from the repository should download the new KQEMU release (version 1.4.0pre1).
Fabrice.
Thanks for the great tools.
I've encountered a compile failure with KQEMU 1.4.0pre1.
I did not see anything in the kqemu-doc.html file which spoke to requirements ... nor on the website. forgive me if I've overlooked something.
Building against an unmodified 2.6.25.4, headers are Gentoo's 2.6.25.3
./configure
make
...
make -C /lib/modules/2.6.25.4/build M=pwd modules
make[1]: Entering directory `/usr/src/linux-2.6.25.4'
CC [M] /home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.o/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c: In
function 'kqemu_lock_user_page':/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:81: error: dereferencing pointer to incomplete type/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c: In function 'kqemu_schedule':/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:194: error: implicit declaration of function 'need_resched' /home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:195: error: implicit declaration of function 'schedule' /home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:197: error: implicit declaration of function 'signal_pending'
uname -a
Linux 2.6.25.4 #1 Sun Jun 1 23:06:19 CDT 2008 x86_64 AMD Athlon(tm) 64 Processor 3700+ AuthenticAMD GNU/Linux
gcc --version
gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.1)
Quoted 12 lines
Building against an unmodified 2.6.25.4, headers are Gentoo's 2.6.25.3
./configure
make
...
make -C/lib/modules/2.6.25.4/buildM=pwdmodules make[1]: Entering directory `/usr/src/linux-2.6.25.4'
CC [M]/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.o/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c: In
function 'kqemu_lock_user_page':/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:81: error: dereferencing
Quoted 8 lines
pointer to incomplete type
/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c: In function 'kqemu_schedule':/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:194: error:
implicit declaration of function 'need_resched'/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:195: error: implicit declaration of function 'schedule'/home/rick/docs/kqemu-1.4.0pre1/kqemu-linux.c:197: error: implicit declaration of function 'signal_pending'
The addition of the following include in kqemu-linux.c allows for successful compilation:
#include <linux/sched.h>
Thanks again!