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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue