Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1041799pxu; Mon, 23 Nov 2020 10:07:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm7YOOQkJZ5lqJ99cQPDPI3QzUDKLxoxvVgCcCcsrRAIA/SLdimhfP8Z1V8vqUGehtzzUE X-Received: by 2002:a17:906:1408:: with SMTP id p8mr739358ejc.548.1606154828180; Mon, 23 Nov 2020 10:07:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606154828; cv=none; d=google.com; s=arc-20160816; b=1B2pZWxquc/j67Fp6QeMWxG93fLXJ54q5wlgcBbv6AFiRHYNFigfiqJgZNCFvo6/RG qxroiE5RNdcv2iwsM3M+FKOh+GVazBkPhKJG+HF/DL31EAa9yB3jF/vNiWiDKdQWzi2b Xw91KKhOPKri9D0p6cfqTLvvSC9sJ5sMVuNTnyIjClR2STAW4FcH+Viye7UOfRKPargZ lef7Wc46hDZwVw1Y3LzmG374OLfyV6ChwQxoaEn7AwXVZpoUPAhYm9jJ8ja456xy10pN LrP6KB1oXQjh/0NdiFeGpwa3+6Yxj/o0TexH1uZBHOILWFjejBytnTPV/Q4VODtQ2pEA eBQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xtMDdGoh35RkLAIsz7N5HjR9j3emBxSjEOFAExKDeNc=; b=jcj7g8cMoW2XA7WTYTwrEci478Xsc39IsPducC4eWx8QQqN5qhlR4EMBi4NZ3IypK1 SAPcqinInf2Wsho9htMTZLGOE3cAi9iN0V9ELYA78pu3K1+jgkLp9kfR3wpm2o3qrCci llF9dXh+3KWx62CNeEbM077bFDyfiqs4l+b6XVJ0BiZFi58EPZXcWQQ2k7A6+OdSh6KM Zp3DzWmpeyDHE0MJDDBUmXmdt6qqsLXMxB463D0K6WmaQQvWctdYdOrVvWbN7vjP8nQg PBOS3vAj8UX3D4U9X93NtjrdRSe2Me5HeMOV+7D3IRo8NsxRGUFZLz5hYd+6Ml9HO7CO r0XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=f2aSZcdh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si8071962edi.448.2020.11.23.10.06.45; Mon, 23 Nov 2020 10:07:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=f2aSZcdh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390506AbgKWSCW (ORCPT + 99 others); Mon, 23 Nov 2020 13:02:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728717AbgKWSCW (ORCPT ); Mon, 23 Nov 2020 13:02:22 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C889C0613CF for ; Mon, 23 Nov 2020 10:02:22 -0800 (PST) Received: from zn.tnic (p200300ec2f0bbc00fb0727400affb1c1.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:bc00:fb07:2740:aff:b1c1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 3641B1EC0527; Mon, 23 Nov 2020 19:02:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1606154540; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=xtMDdGoh35RkLAIsz7N5HjR9j3emBxSjEOFAExKDeNc=; b=f2aSZcdh8OZzmfkr6JyU3ifN3gMbslL96AP9w9gh/2nUTfaq74KiblFA/c4vmvSBfO/3qw nQx0z1d7UpIhG5L3TKnsJwbeveEtfjqLa0UPJEhsVSRvc6dhUJPyHgCR1Xr3fNRIoz6X7B 4XdWgx5L/9RazH73ATR9+Gb4pNOlkQA= Date: Mon, 23 Nov 2020 19:02:15 +0100 From: Borislav Petkov To: Konrad Rzeszutek Wilk Cc: Ashish Kalra , hch@lst.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, luto@kernel.org, peterz@infradead.org, dave.hansen@linux-intel.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, brijesh.singh@amd.com, Thomas.Lendacky@amd.com, jon.grimm@amd.com, rientjes@google.com Subject: Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests. Message-ID: <20201123180215.GG15044@zn.tnic> References: <20201119214205.11062-1-Ashish.Kalra@amd.com> <20201123170647.GE15044@zn.tnic> <20201123175632.GA21539@char.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201123175632.GA21539@char.us.oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 12:56:32PM -0500, Konrad Rzeszutek Wilk wrote: > This is not going to work for TDX. I think having a registration > to SWIOTLB to have this function would be better going forward. > > As in there will be a swiotlb_register_adjuster() which AMD SEV > code can call at start, also TDX can do it (and other platforms). Oh do tell. It doesn't need to adjust size? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette