[PATCH v2] Remove qemu-kvm-helper.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No longer used.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---

v2: update Makefile

 Makefile.target   |    1 -
 qemu-kvm-helper.c |   35 -----------------------------------
 2 files changed, 0 insertions(+), 36 deletions(-)
 delete mode 100644 qemu-kvm-helper.c

diff --git a/Makefile.target b/Makefile.target
index 9bec218..5c1eec4 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -60,7 +60,6 @@ endif
 libobj-$(CONFIG_NEED_MMU) += mmu.o
 
 libobj-$(CONFIG_KVM) += kvm-tpr-opt.o
-libobj-$(CONFIG_KVM) += qemu-kvm-helper.o
 
 libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o
 
diff --git a/qemu-kvm-helper.c b/qemu-kvm-helper.c
deleted file mode 100644
index 915d664..0000000
--- a/qemu-kvm-helper.c
+++ /dev/null
@@ -1,35 +0,0 @@
-
-#include "config.h"
-#include "config-host.h"
-
-#include "exec.h"
-
-#include "qemu-kvm.h"
-
-void qemu_kvm_call_with_env(void (*func)(void *), void *data, CPUState *newenv)
-{
-    host_reg_t saved_env_reg;
-    CPUState *oldenv;
-
-    oldenv = newenv;
-
-    saved_env_reg = (host_reg_t) env;
-    env = newenv;
-
-    func(data);
-
-    env = oldenv;
-    asm("");
-    env = (void *) saved_env_reg;
-}
-
-static void call_helper_cpuid(void *junk)
-{
-    helper_cpuid();
-}
-
-void qemu_kvm_cpuid_on_env(CPUState *env)
-{
-    qemu_kvm_call_with_env(call_helper_cpuid, NULL, env);
-}
-
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux