]> git.dujemihanovic.xyz Git - linux.git/commit
Drivers: hv: vmbus: Remove second way of mapping ring buffers
authorMichael Kelley <mikelley@microsoft.com>
Sun, 26 Mar 2023 13:52:04 +0000 (06:52 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 17 Apr 2023 19:19:04 +0000 (19:19 +0000)
commitbb862397f48fc79a1ea31b83a0bd8f1f913b4ab6
tree93464a5986ed2172ca6beb597c9df784a1034f3b
parenta5ddb74588213c31ce993a8e9a09d1ffdc11a142
Drivers: hv: vmbus: Remove second way of mapping ring buffers

With changes to how Hyper-V guest VMs flip memory between private
(encrypted) and shared (decrypted), it's no longer necessary to
have separate code paths for mapping VMBus ring buffers for
for normal VMs and for Confidential VMs.

As such, remove the code path that uses vmap_pfn(), and set
the protection flags argument to vmap() to account for the
difference between normal and Confidential VMs.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/1679838727-87310-10-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/ring_buffer.c