vmm: Fix the memory slot index

The memory slot index provided to the DeviceManager was wrong since
only the RAM memory regions are set as user memory regions to KVM.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2019-07-24 21:31:44 -07:00 committed by Rob Bradford
parent b5eab43aa5
commit b9f677c46c

View File

@ -1400,7 +1400,7 @@ impl<'a> Vm<'a> {
&config, &config,
msi_capable, msi_capable,
userspace_ioapic, userspace_ioapic,
arch_mem_regions.len() as u32, ram_regions.len() as u32,
) )
.map_err(Error::DeviceManager)?; .map_err(Error::DeviceManager)?;