Re: [PATCH 04/12] Drivers: hv: Explicitly request decrypted in vmap_pfn() calls

From: Tianyu Lan
Date: Thu Nov 03 2022 - 10:03:36 EST


On 10/21/2022 1:57 AM, Michael Kelley wrote:
In preparation for a subsequent patch, update vmap_pfn() calls to
explicitly request that the mapping be for decrypted access to
the memory. There's no change in functionality since the PFNs
passed to vmap_pfn() are above the shared_gpa_boundary, implicitly
producing a decrypted mapping. But explicitly requesting decrypted
allows the code to work before and after a subsequent patch
that will cause vmap_pfn() to mask the PFNs to being below the
shared_gpa_boundary. While another subsesquent patch removes the
vmap_pfn() calls entirely, this temporary tweak avoids the need
for a large patch that makes all the changes at once.

Signed-off-by: Michael Kelley<mikelley@xxxxxxxxxxxxx>
---

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