mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
4b53dc4921
commit
13a065d2cd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user