Files
kernel/include/linux
Tianyu Lan 846da38de0 net: netvsc: Add Isolation VM support for netvsc driver
In Isolation VM, all shared memory with host needs to mark visible
to host via hvcall. vmbus_establish_gpadl() has already done it for
netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_
pagebuffer() stills need to be handled. Use DMA API to map/umap
these memory during sending/receiving packet and Hyper-V swiotlb
bounce buffer dma address will be returned. The swiotlb bounce buffer
has been masked to be visible to host during boot up.

rx/tx ring buffer is allocated via vzalloc() and they need to be
mapped into unencrypted address space(above vTOM) before sharing
with host and accessing. Add hv_map/unmap_memory() to map/umap rx
/tx ring buffer.

Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20211213071407.314309-6-ltykernel@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
2021-12-20 18:01:09 +00:00
..
2021-11-23 19:13:00 +01:00
2021-10-18 14:43:23 -06:00
2021-11-17 10:36:15 -05:00
2021-12-10 17:10:55 -08:00
2021-10-25 12:01:14 +05:30
2021-11-17 10:36:35 -05:00
2021-10-18 07:49:38 -04:00
2021-10-18 07:49:39 -04:00
2021-11-06 14:08:17 -07:00
2021-11-10 21:16:56 +00:00
2021-10-18 07:49:39 -04:00
2021-11-17 10:36:35 -05:00
2021-10-14 13:29:18 +02:00
2021-10-18 07:49:39 -04:00
2021-10-18 17:20:50 +02:00
2021-10-30 16:37:28 +02:00
2021-11-06 13:30:43 -07:00
2021-10-26 14:58:45 +01:00
2021-11-03 11:41:25 -07:00
2021-12-09 10:49:56 -08:00
2021-10-19 23:44:30 +08:00