hv_netvsc: Remove second mapping of send and recv buffers
authorMichael Kelley <mikelley@microsoft.com>
Sun, 26 Mar 2023 13:52:05 +0000 (06:52 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 17 Apr 2023 19:19:04 +0000 (19:19 +0000)
commit25727aaed6514b88f98a18862c6f2d65a0b0ec3b
tree626e8292190c145a2155c74574f5a09b0c090f40
parentbb862397f48fc79a1ea31b83a0bd8f1f913b4ab6
hv_netvsc: Remove second mapping of send and recv buffers

With changes to how Hyper-V guest VMs flip memory between private
(encrypted) and shared (decrypted), creating a second kernel virtual
mapping for shared memory is no longer necessary.  Everything needed
for the transition to shared is handled by set_memory_decrypted().

As such, remove the code to create and manage the second
mapping for the pre-allocated send and recv buffers.  This mapping
is the last user of hv_map_memory()/hv_unmap_memory(), so delete
these functions as well.  Finally, hv_map_memory() is the last
user of vmap_pfn() in Hyper-V guest code, so remove the Kconfig
selection of VMAP_PFN.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/1679838727-87310-11-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/ivm.c
drivers/hv/Kconfig
drivers/hv/hv_common.c
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
include/asm-generic/mshyperv.h