From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01B9147887B for ; Wed, 12 Aug 2026 17:43:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786556582; cv=none; b=L1r43ldkN6d8/MOjititdWl2jFxQHYWOo4awYIT9snSlN57ftdgaznWJ217JrmS9AEUedcTfcVQmOqr5PT5fOpgmXbOiaf/OfqHVrqJurb8Mz8jjKeamROouLKaPJoRt2hhw7bCHjN0hbmrXc1XxcHScakwRc1nEakRVA96ItCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786556582; c=relaxed/simple; bh=R8K4AhpTTGabp/TpyA1fPLTe5/En+9HZcWa+J+NqaoY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oeSi58c8MQW4WCrOHsSMKM987cJ+1Wwb3qQ+hpkB8VoRpaUTV7Oi6+YnMmDH/38iyamGPW2eILR9Ep9Kq1nuolA7dkkzUB5ij363xKvy131WrZ11fa86pF2qFyjS/7is/w3e7zd/C6eZhM6E0BkgIeFPQn6SDLYSybG02iDKOvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=HAet0nyA; arc=none smtp.client-ip=209.85.160.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="HAet0nyA" Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-51c4436d02cso8139261cf.1 for ; Wed, 12 Aug 2026 10:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1786556580; x=1787161380; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RRy7TSLv7XgtK7yVOoP/4PPtFt0r1aZ67kTGnhbzw7Y=; b=HAet0nyAadkR4pZmyOXbUhSqRehEHiZNaUea0AO5U3L+3IQpKTxHfvLg5DSbspSFPi 3AOnv5PnaVcuUoPVMoIJrq77QCKBSZwzgKYygbr6tf6c6K1pevOmLKTWgu7AjxiabXwo rREelaDYSyR+yj3kQZtgwSzvU7rs5nevHAmbhehoRZGPaD7ntshCpr00YIHLwwz1bdg+ JRfFm/3v4NSrtvobYO3r7XfPz5c5j7QmqN2eUUix+YW1Bj/xXpyQr0gHkgZIuneIv12c 3wfOuK12Oc4p6QbQc40TjdiPFUfadlRwxgFbr/m5wEws0lyOTUgEpEIvR4+ntgDxnA3A QpYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786556580; x=1787161380; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RRy7TSLv7XgtK7yVOoP/4PPtFt0r1aZ67kTGnhbzw7Y=; b=T0hVaR0EJ+NA1aYpiZlrh3CB/bydsoMcsJJODrYw8zq0WjbcZaGwDEn2f8/Wr3v+21 p83jWPOLI73MVGwauX4Z6+IwpgoIAVP18nbPNCxmkO28dK4zGczFF4qP7DGcXU8xLKUp M58fdj9zaxLSYF0/+MYW4sMvSo8KaNjUczNrm39KOOk/bEKXvLIFJzWN4AxENuH7xL7h d4YGozHB7Dznx8l8rtvV6xoH8maIbBez9umUqMjUonN90uGdAvASl8/UyECFqAzhg5GW atyqVIOTVqTxvtfSyjnZRf80DsQDkgQscOdPLJabcfI+RUhYUL80HyNNiZwvVjNHWBuI TpRA== X-Forwarded-Encrypted: i=1; AHgh+Rp/MdZ+FqJOV429Je1UXYcYNhu6ee86abHQfFsJ+2bveX2FIY4n+kuglNZbT3wcFDyVovxeAfNOsyzew/s=@vger.kernel.org X-Gm-Message-State: AOJu0YwLq7BP1heMHa+7bOynEt/V4gFwygs/j+erTEX6s/MADPfK3sNt v9US5l6XZG2bl9ZlhUvkYzXoNBcYjAXAhdLqIy/A1hHrUW60OjkEGJkX70bOF/ehaGs= X-Gm-Gg: AR+sD12cYXvYN/q7apsC7DrLqs8x8rl+YrC0bJgn+rKsRZ2Jxo8jdLWPE5aEao8Djeb 0CxQQAstTqsONXsaI2cwFFt7SjOXrG5wLUgK81MkPf90sawBh/IQoHAHVa6fAWjSWB6mKaforEm rS6t7kVsu+tfxDu1M/Vw4ZAMZMR77GXXH5hUYmivuwmBmVpuEzq0Dk5H6QflK5ai+c8poVaFag0 o+jGqnnRD4o7eVLpZ6qvCw8mM4IdP4c6A2u5ayt/BNZg+qq1iJYgtsBIkXztclY9rC59o4mRBqK VFZtYSiF/EOnCxdcNjNdQabeSUD0p0+DV3cCMj+aVK/QXIrYVYGbOl69O0n2bWrPr3p7n3lwXem sXiwrENJ0A7enftAJqZ4eVQyCMnmB790b2hm6wrdLkdlLtwc1uTMXNAA1J2OFl48yL/TDdhCyFb guTaoRIpP9UcXo5OnzK/FTE3QaL7cGlJqzJajIqg== X-Received: by 2002:a05:622a:145:b0:528:38b1:b54c with SMTP id d75a77b69052e-52d646a004amr57067221cf.2.1786556579927; Wed, 12 Aug 2026 10:42:59 -0700 (PDT) Received: from ziepe.ca ([142.166.156.215]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-52d61d91199sm22262711cf.14.2026.08.12.10.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 10:42:59 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wuCyg-00000003IL0-2V6p; Wed, 12 Aug 2026 14:42:58 -0300 Date: Wed, 12 Aug 2026 14:42:58 -0300 From: Jason Gunthorpe To: Catalin Marinas Cc: "Aneesh Kumar K.V" , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, Robin Murphy , Marek Szyprowski , Will Deacon , Marc Zyngier , Steven Price , Suzuki K Poulose , Jiri Pirko , Mostafa Saleh , Petr Tesarik , Alexey Kardashevskiy , Xu Yilun , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , x86@kernel.org Subject: Re: [RFC PATCH] dma: swiotlb: Size shared default pools for memory encryption Message-ID: <20260812174258.GF662699@ziepe.ca> References: <20260811134056.756015-1-aneesh.kumar@kernel.org> 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: On Wed, Aug 12, 2026 at 06:25:49PM +0100, Catalin Marinas wrote: > > > BTW, why does arm64 report CC_ATTR_MEM_ENCRYPT instead of the GUEST > > > option in realms? > > It's still not clear to me why we went for CC_ATTR_MEM_ENCRYPT instead > of CC_ATTR_GUEST_MEM_ENCRYPT. Yeah, this tune should be only for CC guests that have the shared/private issue. The AMD SME issue with the address width on bare metal is an entirely different problem that would need a different kind of tuning. Jason