Tags: rust-vmm/mshv
Tags
get_gpa_access_state: avoid returning dangling reference Previously, VmFd::get_gpa_access_state returned a dangling reference (in the form of a raw pointer) to a vector that was allocated and freed during the function call. This commit modifies it to instead return the vector directly, since no other information is required by its only consumer (VmFd::get_dirty_log). Signed-off-by: Lucy Menon <168595099 [email protected]>
ioctls/bindings: Implement new MSHV_GET/SET_VP_STATE ioctls Rework XSave and LapicState, replace their From<T> implementations to convert to/from Buffer with TryFrom<T>. Replace existing MSHV_GET/SET_VP_STATE implementations with the new kernel interface. Signed-off-by: Nuno Das Neves <[email protected]>