From: Jes Sorensen <j...@sgi.com>

kvm_arch_get_supported_cpuid() doesn't belong in qemu-kvm.c as it
is just an x86 specific build workaround.

Signed-off-by: Jes Sorensen <j...@sgi.com>
Signed-off-by: Avi Kivity <a...@redhat.com>

diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 8cb6faa..856b70c 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -887,3 +887,9 @@ int kvm_arch_init_irq_routing(void)
     }
     return 0;
 }
+
+uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
+                                      int reg)
+{
+    return kvm_get_supported_cpuid(kvm_context, function, reg);
+}
diff --git a/qemu-kvm.c b/qemu-kvm.c
index f55cee8..d6d0253 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -1425,9 +1425,3 @@ void qemu_kvm_cpu_stop(CPUState *env)
     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);
-}
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to