cloud-hypervisor/hypervisor/src
Wei Liu 1f2915bff0 vmm: hypervisor: split set_user_memory_region to two functions
Previously the same function was used to both create and remove regions.
This worked on KVM because it uses size 0 to indicate removal.

MSHV has two calls -- one for creation and one for removal. It also
requires having the size field available because it is not slot based.

Split set_user_memory_region to {create/remove}_user_memory_region. For
KVM they still use set_user_memory_region underneath, but for MSHV they
map to different functions.

This fixes user memory region removal on MSHV.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2021-07-05 09:45:45 +02:00
..
arch clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
kvm vmm: hypervisor: split set_user_memory_region to two functions 2021-07-05 09:45:45 +02:00
mshv vmm: hypervisor: split set_user_memory_region to two functions 2021-07-05 09:45:45 +02:00
cpu.rs hypervisor: implement get_suspend_regs for MSHV vcpu trait 2021-06-24 09:02:36 -07:00
device.rs hypervisor: Implement get_device_attr method for AArch64 2020-09-23 12:37:25 +01:00
hypervisor.rs hypervisor: Add get_host_ipa_limit for AArch64 2021-06-10 12:06:17 +02:00
lib.rs misc: Remove unnecessary "extern crate" 2021-05-12 17:26:11 +02:00
vm.rs vmm: hypervisor: split set_user_memory_region to two functions 2021-07-05 09:45:45 +02:00