vbox6: diagnostic message on Region_conflict

Catch and log Vm_session::Region_conflict, but continue operation.
This commit is contained in:
Christian Helmuth 2024-05-07 15:15:55 +02:00
parent f0f66f8ccc
commit 79e391ba8d

View File

@ -201,7 +201,12 @@ void Sup::Gmm::map_to_guest(Vmm_addr from, Guest_addr to, Pages pages, Protectio
.writeable = prot.writeable
};
_vm_connection.attach(_slices[i], to.value, attr);
try { _vm_connection.attach(_slices[i], to.value, attr); }
catch (Vm_session::Region_conflict const &) {
error("region conflict while mapping guest memory",
" (offset=", (void *)(attr.offset), " size=", Hex(attr.size),
" to=", (void *)to.value, ")");
}
to.value += attr.size;
}