[PATCH] kvm: qemu: fix compilation error in ia64

"Zhang, Yang" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64
Message-ID <10C63FAD690C13458F0B32BCED571F1402670F607E@pdsmsx502.ccr.corp.intel.com>
ia64 doesn't need the function kvm_arch_get_supported_cpuid.
Move it to qemu-kvm-x86.c from qemu-kvm.c

Signed-off-by: Xiantao Zhang <[email protected]>
Signed-off-by: Yang Zhang <[email protected]>
---
 qemu-kvm-x86.c |    6 ++++++
 qemu-kvm.c     |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

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);
-}
-- 
1.6.0.rc1
0001-kvm-qemu-fix-compilation-error-in-ia64.patch (application/octet-stream, 1.4 KB)
From 56cc33ed2056dd1cd3f41af3e99991ec54485a97 Mon Sep 17 00:00:00 2001
From: Yang Zhang <[email protected]>
Date: Mon, 11 May 2009 20:08:08 -0400
Subject: [PATCH] kvm: qemu: fix compilation error in ia64

ia64 doesn't need the function kvm_arch_get_supported_cpuid.
Move it to qemu-kvm-x86.c from qemu-kvm.c

Signed-off-by: Xiantao Zhang <[email protected]>
Signed-off-by: Yang Zhang <[email protected]>
---
 qemu-kvm-x86.c |    6 ++++++
 qemu-kvm.c     |    6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)

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);
-}
-- 
1.6.0.rc1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.