Re: [PATCH 07/12] Drivers: hv: vmbus: Remove second mapping of VMBus monitor pages

From: Tianyu Lan
Date: Thu Nov 03 2022 - 10:27:59 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), creating a second kernel virtual
mapping for shared memory is no longer necessary. Everything needed
for the transition to shared is handled by set_memory_decrypted().

As such, remove the code to create and manage the second
mapping for VMBus monitor pages. Because set_memory_decrypted()
and set_memory_encrypted() are no-ops in normal VMs, it's
not even necessary to test for being in a Confidential VM
(a.k.a., "Isolation VM").

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

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