Skip to contentSkip to conversation

Move KVM and Xen global flags to vl.c

PATCH In review Blue Swirl 1 participant 1 message Mar 27, 2010

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

PATCH 4/7 Move KVM and Xen global flags to vl.c

---
 hw/xen_machine_pv.c |    3 ---
 kvm-all.c           |    2 --
 vl.c                |    4 ++++
 3 files changed, 4 insertions(+), 5 deletions(-)
hw/xen_machine_pv.c +0 -3
index 162f88d..586214d 100644
@@ -29,9 +29,6 @@
 #include "xen_backend.h"
 #include "xen_domainbuild.h"
 
-uint32_t xen_domid;
-enum xen_mode xen_mode = XEN_EMULATE;
-
 static void xen_init_pv(ram_addr_t ram_size,
 			const char *boot_device,
 			const char *kernel_filename,
kvm-all.c +0 -2
index 534ead0..40b5a51 100644
@@ -51,8 +51,6 @@ typedef struct KVMSlot
 
 typedef struct kvm_dirty_log KVMDirtyLog;
 
-int kvm_allowed = 0;
-
 struct KVMState
 {
     KVMSlot slots[32];
vl.c +4 -0
index a2869b8..d9fc0cc 100644
@@ -258,6 +258,10 @@ uint8_t qemu_uuid[16];
 static QEMUBootSetHandler *boot_set_handler;
 static void *boot_set_opaque;
 
+int kvm_allowed = 0;
+uint32_t xen_domid;
+enum xen_mode xen_mode = XEN_EMULATE;
+
 #ifdef SIGRTMIN
 #define SIG_IPI (SIGRTMIN+4)
 #else
Signature · 1 line
1.6.2.4