Re: [PATCH] x86/sev: Use __pa() in __sme_early_map_unmap_mem()
From: Thorsten Blum
Date: Thu Jun 18 2026 - 07:19:50 EST
On Wed, Jun 17, 2026 at 05:03:05PM +0200, Thorsten Blum wrote:
> Replace the open-coded virtual to physical address conversion with the
> __pa() helper.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
sashiko [1] found that when CONFIG_DEBUG_VIRTUAL is enabled, the
validation in __phys_addr() can fail and trigger VIRTUAL_BUG_ON(). The
concern seems valid, so let's drop this patch.
[1] https://sashiko.dev/#/patchset/20260617150302.98522-4-thorsten.blum%40linux.dev