Re: [PATCH 08/12] Drivers: hv: vmbus: Remove second way of mapping ring buffers

From: Tianyu Lan
Date: Thu Nov 03 2022 - 11:09:29 EST


On 10/21/2022 1:57 AM, Michael Kelley wrote:
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@xxxxxxxxxxxxx>
---

Reviewed-by: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx>