From b9f677c46c4b8d12685edbcd489cc255fa67c8c1 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 24 Jul 2019 21:31:44 -0700 Subject: [PATCH] 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 --- vmm/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index 21a63efe9..21ecd6c88 100755 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -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)?;