dep: Rely on latest kvm-ioctls crate

In order to have access to the newly added signal_msi() function
from the kvm-ioctls crate, this commit updates the version of the
kvm-ioctls to the latest one.

Because set_user_memory_region() has been swtiched to "unsafe", we
also need to handle this small change in our cloud-hypervisor code
directly.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-06-03 14:09:01 -07:00
committed by Rob Bradford
parent 4b53dc4921
commit 13a065d2cd
5 changed files with 10 additions and 12 deletions

View File

@@ -573,7 +573,7 @@ impl<'a> Vm<'a> {
};
// Safe because the guest regions are guaranteed not to overlap.
fd.set_user_memory_region(mem_region)
unsafe { fd.set_user_memory_region(mem_region) }
})
.map_err(|_| Error::GuestMemory(MmapError::NoMemoryRegion))?;
@@ -838,7 +838,7 @@ pub fn test_vm() {
};
// Safe because the guest regions are guaranteed not to overlap.
vm_fd.set_user_memory_region(mem_region)
unsafe { vm_fd.set_user_memory_region(mem_region) }
})
.expect("Cannot configure guest memory");
mem.write_slice(&code, load_addr)