Re: [PATCH v4 2/6] x86/tdx: Support vmalloc() for tdx_enc_status_changed()

From: kirill.shutemov@xxxxxxxxxxxxxxx
Date: Wed Apr 12 2023 - 11:21:47 EST


On Tue, Apr 11, 2023 at 04:28:20PM +0000, Michael Kelley (LINUX) wrote:
> Does anyone know if there is a reason to use one vs. the other?
> slow_virt_to_phys() is x86-only, but that's not a problem here.

slow_virt_to_phys() is more generic as it works for non-vmalloc addresses,
but generally they are equivalent for the use.

--
Kiryl Shutsemau / Kirill A. Shutemov