From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Wed, 5 Dec 2007 11:37:12 +0800 Subject: [PATCH] kvm/ia64: qemu: Add qemu-kvm-ia64 support.
In this patch, one file qemu-kvm-ia64.c is created to
hold ia64-specific qemu/kvm interfaces.
Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]>
---
qemu/qemu-kvm-ia64.c | 71
++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
create mode 100644 qemu/qemu-kvm-ia64.c
diff --git a/qemu/qemu-kvm-ia64.c b/qemu/qemu-kvm-ia64.c
new file mode 100644
index 0000000..0029a43
--- /dev/null
+++ b/qemu/qemu-kvm-ia64.c
@@ -0,0 +1,71 @@
+
+#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>
+
+
+extern kvm_context_t kvm_context;
+
+extern __thread CPUState *vcpu_env;
+
+int kvm_arch_qemu_create_context(void)
+{
+ return 0;
+}
+
+void kvm_arch_load_regs(CPUState *env)
+{
+}
+
+
+void kvm_arch_save_regs(CPUState *env)
+{
+}
+
+int kvm_arch_qemu_init_env(CPUState *cenv)
+{
+ return 0;
+}
+
+int kvm_arch_halt(void *opaque, int vcpu)
+{
+ CPUState *env = cpu_single_env;
+ env->hflags |= HF_HALTED_MASK;
+ env->exception_index = EXCP_HLT;
+ return 1;
+}
+
+void kvm_arch_pre_kvm_run(void *opaque, int vcpu)
+{
+}
+
+void kvm_arch_post_kvm_run(void *opaque, int vcpu)
+{
+}
+
+int kvm_arch_has_work(CPUState *env)
+{
+ return 1;
+}
+
+int kvm_arch_try_push_interrupts(void *opaque)
+{
+ return 1;
+}
+
+void kvm_arch_update_regs_for_sipi(CPUState *env)
+{
+}
+#endif
--
1.5.2
0016-kvm-ia64-qemu-Add-qemu-kvm-ia64-support.patch
Description: 0016-kvm-ia64-qemu-Add-qemu-kvm-ia64-support.patch
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
