All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thorsten Blum <thorsten.blum@linux.dev>
To: Dave Hansen <dave.hansen@linux.intel.com>,
	Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/sev: Use __pa() in __sme_early_map_unmap_mem()
Date: Thu, 18 Jun 2026 13:16:23 +0200	[thread overview]
Message-ID: <ajPTh0Was-o7ehw7@linux.dev> (raw)
In-Reply-To: <20260617150302.98522-4-thorsten.blum@linux.dev>

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@linux.dev>

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

      reply	other threads:[~2026-06-18 11:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-17 15:03 [PATCH] x86/sev: Use __pa() in __sme_early_map_unmap_mem() Thorsten Blum
2026-06-18 11:16 ` Thorsten Blum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ajPTh0Was-o7ehw7@linux.dev \
    --to=thorsten.blum@linux.dev \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.