vbox4: avoid iommio assertion

if the mmio region is not available anymore

Fixes #2182
This commit is contained in:
Alexander Boettcher 2016-11-29 13:02:53 +01:00 committed by Christian Helmuth
parent 4b09e357e0
commit b8485b6ca1
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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);