diff mbox

today's qemu-kvm build fix

Message ID 4A0816CF.8090205@sgi.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jes Sorensen May 11, 2009, 12:15 p.m. UTC
Hi,

This one is a bit strange, somehow we ended up with a
kvm_get_supported_cpuid() in qemu-kvm.c, where it should never have
been given it's in target-i386/kvm.c and called only from libkvm-x86.c

With this I can build again.

Cheers,
Jes

Comments

Avi Kivity May 11, 2009, 12:31 p.m. UTC | #1
Jes Sorensen wrote:
> Hi,
>
> This one is a bit strange, somehow we ended up with a
> kvm_get_supported_cpuid() in qemu-kvm.c, where it should never have
> been given it's in target-i386/kvm.c and called only from libkvm-x86.c
>

kvm.c is not (yet) built in qemu-kvm.git.  Please move the function to 
qemu-kvm-x86.c instead.
diff mbox

Patch

kvm_arch_get_supported_cpuid() is already defined in target-i386/kvm.c
we don't need another copy in qemu-kvm.c, especially as this is x86
specific.

Signed-off-by: Jes Sorensen <jes@sgi.com>

---
 qemu-kvm.c |    6 ------
 1 file changed, 6 deletions(-)

Index: qemu-kvm/qemu-kvm.c
===================================================================
--- qemu-kvm.orig/qemu-kvm.c
+++ qemu-kvm/qemu-kvm.c
@@ -1400,9 +1400,3 @@ 
     if (kvm_enabled())
         env->kvm_cpu_state.stopped = 1;
 }
-
-uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
-                                      int reg)
-{
-    return kvm_get_supported_cpuid(kvm_context, function, reg);
-}