Skip to contentSkip to conversation

missing ifdef

PATCH Gleb Natapov 1 participant 1 message Nov 13, 2008 KVM

lore
Share & tools
lore
#0 lore raw
qemu/qemu-kvm.c +2 -0
index 9a5a1b6..80c29a3 100644
@@ -454,9 +454,11 @@ static void *ap_main_loop(void *_env)
     kvm_create_vcpu(kvm_context, env->cpu_index);
     kvm_qemu_init_env(env);
 
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
     /* do ioperm for io ports of assigned devices */
     LIST_FOREACH(data, &ioperm_head, entries)
 	on_vcpu(env, kvm_arch_do_ioperm, data);
+#endif
 
     /* signal VCPU creation */
     pthread_mutex_lock(&qemu_mutex);

--
Gleb.