vbox4: avoid iommio assertion
if the mmio region is not available anymore Fixes #2182
This commit is contained in:
parent
4b09e357e0
commit
b8485b6ca1
|
@ -384,7 +384,7 @@ class Guest_memory
|
|||
Region *r = _lookup(vm_phys, size);
|
||||
|
||||
if (!r) {
|
||||
Genode::error("Guest_memory::mmio_read: lookup faile - "
|
||||
Genode::error("Guest_memory::mmio_read: lookup failed - "
|
||||
"GCPhys=", Genode::Hex(vm_phys), " u32Value=",
|
||||
u32Value, " size=", size);
|
||||
return VERR_IOM_MMIO_RANGE_NOT_FOUND;
|
||||
|
|
|
@ -165,6 +165,11 @@ VMMDECL(VBOXSTRICTRC) IOMMMIORead(PVM pVM, PVMCPU, RTGCPHYS GCPhys,
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (rc == VERR_IOM_MMIO_RANGE_NOT_FOUND) {
|
||||
*pvalue = ~0U;
|
||||
rc = VINF_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
IOM_UNLOCK_SHARED(pVM);
|
||||
|
||||
|
|
Loading…
Reference in New Issue