Error trying to build qemu with --enable-kvm
Hoy !
I wanted to try out all that new shiny stuff and got:
CC ppc-softmmu/kvm-all.o/home/benh/kernels/qemu/kvm-all.c: In function ‘kvm_put_mp_state’:/home/benh/kernels/qemu/kvm-all.c:212: error: ‘struct CPUPPCState’ has no member named ‘mp_state’ /home/benh/kernels/qemu/kvm-all.c: In function ‘kvm_get_mp_state’:/home/benh/kernels/qemu/kvm-all.c:226: error: ‘struct CPUPPCState’ has no member named ‘mp_state’
(qemu top of git tree)
Cheers,
Ben.
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Herrenschmidt
Sent: Thursday, November 05, 2009 2:41 PM
To: kvmppc
Cc: Alexander Graf
Subject: Error trying to build qemu with --enable-kvmHoy !
I wanted to try out all that new shiny stuff and got:
CC
ppc-softmmu/kvm-all.o/home/benh/kernels/qemu/kvm-all.c: In function ‘kvm_put_mp_state’:/home/benh/kernels/qemu/kvm-all.c:212: error: ‘struct CPUPPCState’ has no member named ‘mp_state’/home/benh/kernels/qemu/kvm-all.c: In function ‘kvm_get_mp_state’:/home/benh/kernels/qemu/kvm-all.c:226: error: ‘struct CPUPPCState’ has no member named ‘mp_state’
Quoted 2 lines
(qemu top of git tree)
Seems need this patch
Index: qemu.git/target-ppc/cpu.h
=================================--- qemu.git.orig/target-ppc/cpu.h 2009-07-24 13:52:14.000000000 +0800
+++ qemu.git/target-ppc/cpu.h 2009-07-24 13:52:58.000000000 +0800
@@ -677,6 +677,9 @@
/* temporary hack to handle OSI calls (only used if non NULL) */
int (*osi_call)(struct CPUPPCState *env);+
+ /* For KVM */
+ uint32_t mp_state;
};
/* Context used internally during MMU translations */
@@ -802,7 +805,7 @@
#define cpu_signal_handler cpu_ppc_signal_handler #define cpu_list ppc_cpu_list
-#define CPU_SAVE_VERSION 4
+#define CPU_SAVE_VERSION 5
/* MMU modes definitions */
#define MMU_MODE0_SUFFIX _user
ÿôèº{.nÇ+‰·Ÿ®‰†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¤¾oé¥Ïâ�Ø^n‡r¡ö¦zË�ëh™¨èÚ&£ûàz¿äz¹Ş—ú+€Ê+zf£¢·hšˆ§~††Ûiÿÿï�êÿ‘êçz_è®æj:+v‰¨ş)ߣøm