static bool no_net;
static bool no_dhcp;
extern bool ioport_debug;
+extern bool mmio_debug;
static int kvm_run_wrapper;
extern int active_console;
extern int debug_iodelay;
"Enable single stepping"),
OPT_BOOLEAN('\0', "debug-ioport", &ioport_debug,
"Enable ioport debugging"),
+ OPT_BOOLEAN('\0', "debug-mmio", &mmio_debug,
+ "Enable MMIO debugging"),
OPT_INTEGER('\0', "debug-iodelay", &debug_iodelay,
"Delay IO by millisecond"),
OPT_END()
};
static struct rb_root mmio_tree = RB_ROOT;
+bool mmio_debug = false;
static struct mmio_mapping *mmio_search(struct rb_root *root, u64 addr, u64 len)
{
if (mmio)
mmio->mmio_fn(phys_addr, data, len, is_write, mmio->ptr);
- else
- fprintf(stderr, "Warning: Ignoring MMIO %s at %016llx (length %u)\n",
- to_direction(is_write), phys_addr, len);
+ else {
+ if (mmio_debug)
+ fprintf(stderr, "Warning: Ignoring MMIO %s at %016llx (length %u)\n",
+ to_direction(is_write), phys_addr, len);
+ }
br_read_unlock();
return true;