Drivers: hv: Explicitly request decrypted in vmap_pfn() calls
authorMichael Kelley <mikelley@microsoft.com>
Sun, 26 Mar 2023 13:51:58 +0000 (06:51 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 27 Mar 2023 06:46:43 +0000 (08:46 +0200)
commitd33ddc92db8a61416473ff3d7f1c621c50733dc0
tree7f8576ed7407b86b82cfaba26e667d3bcc947b86
parent71290be18f2deeae013482bf79cd526df61fcfcd
Drivers: hv: Explicitly request decrypted in vmap_pfn() calls

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 changes that cause vmap_pfn() to mask the
PFNs to being below the shared_gpa_boundary.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Link: https://lore.kernel.org/r/1679838727-87310-4-git-send-email-mikelley@microsoft.com
arch/x86/hyperv/ivm.c
drivers/hv/ring_buffer.c