@@ -1632,11 +1632,13 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
}
#endif
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
void kvm_arch_do_ioperm(void *_data)
{
struct ioperm_data *data = _data;
ioperm(data->start_port, data->num, data->turn_on);
}
+#endif
/*
* Setup x86 specific IRQ routing
@@ -66,8 +66,10 @@ static CPUState *kvm_debug_cpu_requested;
static uint64_t phys_ram_size;
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
/* The list of ioperm_data */
static LIST_HEAD(, ioperm_data) ioperm_head;
+#endif
//#define DEBUG_MEMREG
#ifdef DEBUG_MEMREG
@@ -1815,7 +1817,9 @@ static void *ap_main_loop(void *_env)
{
CPUState *env = _env;
sigset_t signals;
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
struct ioperm_data *data = NULL;
+#endif
current_env = env;
env->thread_id = kvm_get_thread_id();