diff mbox

[kvm-Bugs-2848498] COMPILATION ERRORS

Message ID E1PLxKi-0004a8-HN@sfs-web-10.v29.ch3.sourceforge.com (mailing list archive)
State New, archived
Headers show

Commit Message

SourceForge.net Nov. 26, 2010, 12:23 p.m. UTC
None
diff mbox

Patch

diff --git a/qemu-kvm.c b/qemu-kvm.c
index d554749..245c4c7 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -1815,7 +1815,6 @@  static void *ap_main_loop(void *_env)
 {
     CPUState *env = _env;
     sigset_t signals;
-    struct ioperm_data *data = NULL;

     current_env = env;
     env->thread_id = kvm_get_thread_id();
@@ -1824,6 +1823,9 @@  static void *ap_main_loop(void *_env)
     env->kvm_cpu_state.vcpu_ctx = kvm_create_vcpu(env, env->cpu_index);

 #ifdef USE_KVM_DEVICE_ASSIGNMENT
+
+    struct ioperm_data *data = NULL;
+
     /* do ioperm for io ports of assigned devices */
     LIST_FOREACH(data, &ioperm_head, entries)
         on_vcpu(env, kvm_arch_do_ioperm, data);
diff --git a/qemu-kvm.h b/qemu-kvm.h
index 2c1730b..2ffc600 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -1060,6 +1060,9 @@  int kvm_arch_init_irq_routing(void);
 int kvm_mmio_read(void *opaque, uint64_t addr, uint8_t * data, int len);
 int kvm_mmio_write(void *opaque, uint64_t addr, uint8_t * data, int
len);

+void kvm_mutex_unlock(void);
+void kvm_mutex_lock(void);
+
 #ifdef USE_KVM_DEVICE_ASSIGNMENT
 struct ioperm_data;