diff --git a/kvm-all.c b/kvm-all.c index 18e9361da..5cb2db24a 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -322,7 +322,7 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr, mem = kvm_lookup_slot(s, start_addr); if (mem) { - if (flags == IO_MEM_UNASSIGNED) { + if ((flags == IO_MEM_UNASSIGNED) || (flags >= TLB_MMIO)) { mem->memory_size = 0; mem->guest_phys_addr = start_addr; mem->userspace_addr = 0;