+6
−5
+37
−39
Loading
Introduce mshv_use_overlay_gpfn() to check if a page needs to be allocated and passed to the hypervisor to map VP state pages. This is only needed on L1VH, and only on some (newer) versions of the hypervisor, hence the need to check vmm_capabilities. Introduce functions hv_map/unmap_vp_state_page() to handle the allocation and freeing. Signed-off-by:Jinank Jain <jinankjain@linux.microsoft.com> Signed-off-by:
Nuno Das Neves <nunodasneves@linux.microsoft.com> Reviewed-by:
Praveen K Paladugu <prapal@linux.microsoft.com> Reviewed-by:
Easwar Hariharan <easwar.hariharan@linux.microsoft.com> Reviewed-by:
Stanislav Kinsburskii <skinsburskii@linux.microsoft.com> Reviewed-by:
Anirudh Rayabharam <anirudh@anirudhrb.com> Reviewed-by:
Tianyu Lan <tiala@microsoft.com> Signed-off-by:
Wei Liu <wei.liu@kernel.org>