mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 20:53:46 +00:00
hv: uos needn't to ummap trap mmio memory
We wouldn't map this memory region for UOS. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
2e535855ce
commit
437ed88588
@ -234,6 +234,13 @@ int register_mmio_emulation_handler(struct vm *vm,
|
|||||||
|
|
||||||
mmio_node->range_start = start;
|
mmio_node->range_start = start;
|
||||||
mmio_node->range_end = end;
|
mmio_node->range_end = end;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SOS would map all its memory at beginning, so we
|
||||||
|
* should unmap it. But UOS will not, so we shouldn't
|
||||||
|
* need to unmap it.
|
||||||
|
*/
|
||||||
|
if (is_vm0(vm))
|
||||||
ept_mmap(vm, start, start, end - start,
|
ept_mmap(vm, start, start, end - start,
|
||||||
MAP_UNMAP, 0);
|
MAP_UNMAP, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user