cloud-hypervisor/hypervisor
Wei Liu 1741af74ed hypervisor: add safety statement in set_user_memory_region
When set_user_memory_region was moved to hypervisor crate, it was turned
into a safe function that wrapped around an unsafe call. All but one
call site had the safety statements removed. But safety statement was
not moved inside the wrapper function.

Add the safety statement back to help reasoning in the future. Also
remove that one last instance where the safety statement is not needed .

No functional change.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2020-06-25 10:25:13 +02:00
..
src hypervisor: add safety statement in set_user_memory_region 2020-06-25 10:25:13 +02:00
Cargo.toml hypervisor: Add Vcpu trait 2020-06-22 15:03:15 +02:00