mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
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:
parent
b5eab43aa5
commit
b9f677c46c
@ -1400,7 +1400,7 @@ impl<'a> Vm<'a> {
|
||||
&config,
|
||||
msi_capable,
|
||||
userspace_ioapic,
|
||||
arch_mem_regions.len() as u32,
|
||||
ram_regions.len() as u32,
|
||||
)
|
||||
.map_err(Error::DeviceManager)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user