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:
Rob Bradford 2021-08-11 22:58:22 +00:00
parent ed53c74ca9
commit 1240ef3261

View File

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