Re: [Patch v4 07/13] swiotlb: Remove bounce buffer remapping for Hyper-V

Borislav Petkov
2023-01-09T18:06:28Z

On Thu, Dec 01, 2022 at 07:30:25PM -0800, 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 swiotlb_unencrypted_base and the associated
> code.
>
> Signed-off-by: Michael Kelley <mikelley@microsoft.com>
> Acked-by: Christoph Hellwig <hch@lst.de>
> ---
> arch/x86/kernel/cpu/mshyperv.c | 7 +------
> include/linux/swiotlb.h | 2 --
> kernel/dma/swiotlb.c | 45 +-----------------------------------------
> 3 files changed, 2 insertions(+), 52 deletions(-)

Patches removing crap are always nice:

Acked-by: Borislav Petkov (AMD) <bp@alien8.de>

--
Regards/Gruss,
Boris.