From: Zhang Xiantao <[EMAIL PROTECTED]>
Date: Mon, 3 Dec 2007 14:56:35 +0800
Subject: [PATCH] kvm: qemu : preparation for qemu-kvm.c split.
This patch adds qemu-kvm-x86.c to hold x86-specific code.
Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]>
---
 qemu/Makefile.target |    4 ++++
 qemu/qemu-kvm-x86.c  |   18 ++++++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 qemu/qemu-kvm-x86.c

diff --git a/qemu/Makefile.target b/qemu/Makefile.target
index 65f449e..12607b4 100644
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -291,6 +291,7 @@ CPPFLAGS+=-I$(SRC_PATH)/fpu
 
 ifeq ($(TARGET_ARCH), i386)
 LIBOBJS+=helper.o helper2.o
+LIBOBJS+=qemu-kvm-x86.o
 ifeq ($(ARCH), i386)
 LIBOBJS+=translate-copy.o
 endif
@@ -298,6 +299,7 @@ endif
 
 ifeq ($(TARGET_ARCH), x86_64)
 LIBOBJS+=helper.o helper2.o
+LIBOBJS+=qemu-kvm-x86.o
 endif
 
 ifeq ($(TARGET_BASE_ARCH), ppc)
@@ -609,6 +611,8 @@ op.o: op.c
 # variables
 ifeq ($(TARGET_BASE_ARCH), i386)
 # XXX: rename helper.c to op_helper.c
+qemu-kvm-x86.o: qemu-kvm-x86.c qemu-kvm.h
+
 helper.o: helper.c
        $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
 else
diff --git a/qemu/qemu-kvm-x86.c b/qemu/qemu-kvm-x86.c
new file mode 100644
index 0000000..6c4cfb2
--- /dev/null
+++ b/qemu/qemu-kvm-x86.c
@@ -0,0 +1,18 @@
+
+#include "config.h"
+#include "config-host.h"
+
+extern int kvm_allowed;
+extern int kvm_irqchip;
+
+#ifdef USE_KVM
+
+#include <string.h>
+#include "vl.h"
+
+#include "qemu-kvm.h"
+#include <libkvm.h>
+#include <pthread.h>
+#include <sys/utsname.h>
+
+#endif
-- 
1.5.1.2

Attachment: 0001-kvm-qemu-preparation-for-qemu-kvm.c-split.patch
Description: 0001-kvm-qemu-preparation-for-qemu-kvm.c-split.patch

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to