From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47BF53C09E0 for ; Thu, 18 Jun 2026 11:16:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781781392; cv=none; b=V3F3gAIMTnA2xwbLzUleAppMizP912IC7S0jipp0VAeJRCoG6KfGmC/AJExYAqLX8Co1oHJDa/4HocWXhBXtHL99dIeFrRplFci1cHUULmc9qN65jkXdbiyPM7VripliMex1mn3JUVAkJ8XA7x7SF0F2zDOKBhh8JD3myogc2ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781781392; c=relaxed/simple; bh=CYnmOctFMo5XL7mWLFdrPylpJNLiM489cbJwOd2vuwQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dTdsn1BdPSSGW9eh/Ut8GHYaEFsAqOj8g3SCYzqJRBJqDzZQjwSNLNPsD2yT/8Kb+CMzM0nLoaL06JIDDkMJDnUvjylaZjly4/zaZCssm2/otJBG5CaYUd53xC3PRasRYViCNX5TBhyFrTh3LxfjxpfZ5mTr2plebKErbHHXtUM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=UFtla1g5; arc=none smtp.client-ip=91.218.175.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="UFtla1g5" Date: Thu, 18 Jun 2026 13:16:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781781387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KJ8EJbeo0UD9ftckr9C5WsQ8ZCwq21k16t1Tzpqq/oU=; b=UFtla1g51cA5cv6Mx5YaO2a+wWnskS5cDuuJDioDvteDGh1QSDwppeKsVjUxVQEOaTc7qO 5S+p0KLtETZO5hgHkRu6asH3oRrCIDUP5D+2TnQYFhNyv1EHPo6rRbOWdewvfmWOUFL7jl OEhHoV3MuA3kFIo4RxXlMCItD3Eerlw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum To: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/sev: Use __pa() in __sme_early_map_unmap_mem() Message-ID: References: <20260617150302.98522-4-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260617150302.98522-4-thorsten.blum@linux.dev> X-Migadu-Flow: FLOW_OUT 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 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