struct kvm_cpu **kvm_cpus;
__thread struct kvm_cpu *current_kvm_cpu;
-extern bool ioport_debug;
extern bool mmio_debug;
static int kvm_run_wrapper;
extern int active_console;
"Enable debug messages"), \
OPT_BOOLEAN('\0', "debug-single-step", &(cfg)->single_step, \
"Enable single stepping"), \
- OPT_BOOLEAN('\0', "debug-ioport", &ioport_debug, \
+ OPT_BOOLEAN('\0', "debug-ioport", &(cfg)->ioport_debug, \
"Enable ioport debugging"), \
OPT_BOOLEAN('\0', "debug-mmio", &mmio_debug, \
"Enable MMIO debugging"), \
static u16 free_io_port_idx; /* protected by ioport_mutex */
static struct rb_root ioport_tree = RB_ROOT;
-bool ioport_debug;
static u16 ioport__find_free_port(void)
{
error:
br_read_unlock();
- if (ioport_debug)
+ if (kvm->cfg.ioport_debug)
ioport_error(port, data, direction, size, count);
- return !ioport_debug;
+ return !kvm->cfg.ioport_debug;
}
int ioport__init(struct kvm *kvm)