mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-07 04:07:21 +00:00
pci: vfio_user: Update all fields in MmioRegion on map
When mapping the region into the guest ensure that all the fields are updated correctly as the unmap code path checks that they are set. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
ed53c74ca9
commit
1240ef3261
@ -385,6 +385,7 @@ impl VfioUserPciDevice {
|
||||
|
||||
mmio_region.mem_slot = Some(slot);
|
||||
mmio_region.host_addr = Some(host_addr as u64);
|
||||
mmio_region.mmap_size = Some(mmio_region.length as usize);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user