diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index ec8c66804..5525b31e8 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -593,7 +593,7 @@ impl DeviceRelocation for AddressManager { .allocate_mmio_hole_addresses( Some(GuestAddress(new_base)), len as GuestUsize, - None, + Some(len), ) .ok_or_else(|| { io::Error::new( @@ -613,7 +613,7 @@ impl DeviceRelocation for AddressManager { .allocate_mmio_addresses( Some(GuestAddress(new_base)), len as GuestUsize, - None, + Some(len), ) .ok_or_else(|| { io::Error::new(