From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29552C433FE for ; Mon, 7 Dec 2020 22:33:15 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91B8E2399C for ; Mon, 7 Dec 2020 22:33:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 91B8E2399C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=alien8.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 48015872EA; Mon, 7 Dec 2020 22:33:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lIJTVO04EDQl; Mon, 7 Dec 2020 22:33:13 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 412648721E; Mon, 7 Dec 2020 22:33:13 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 25CC4C0FA7; Mon, 7 Dec 2020 22:33:13 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6790AC013B for ; Mon, 7 Dec 2020 22:33:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 59EEB8795C for ; Mon, 7 Dec 2020 22:33:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzVGtFmPDzM1 for ; Mon, 7 Dec 2020 22:33:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by hemlock.osuosl.org (Postfix) with ESMTPS id 72FE987916 for ; Mon, 7 Dec 2020 22:33:08 +0000 (UTC) Received: from zn.tnic (p200300ec2f0a3800f6520bb83eb81f06.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:3800:f652:bb8:3eb8:1f06]) (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 E73401EC0391; Mon, 7 Dec 2020 23:33:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1607380387; 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=QS7Xejh7Vaqx8FcuZLbicDhbx/3kJCtRN7fq17mk+3Y=; b=F0JH38xYZz9/1hpB7ZM603llmBV53eBbd1xiJXWFPSAXoD5nS1n2M4bMnCPOVndnbDG820 I4TecqnmX2S1GXKXg6X+N96GYugcJNcl25qjrol9d7KeTd1/7CEJxKOfQyQ/FbP0M6wzLE bO9TiG8CduVlGlf1z43noJfpucCm4sc= Date: Mon, 7 Dec 2020 23:33:07 +0100 From: Borislav Petkov To: "Kalra, Ashish" Subject: Re: [PATCH v7] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests. Message-ID: <20201207223307.GK20489@zn.tnic> References: <20201203032559.3388-1-Ashish.Kalra@amd.com> <20201207121007.GD20489@zn.tnic> <20201207220624.GB6855@ashkalra_ubuntu_server> <20201207221433.GI20489@zn.tnic> <60FF61F4-9A7D-4467-A148-2956903C74AA@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <60FF61F4-9A7D-4467-A148-2956903C74AA@amd.com> Cc: "Lendacky, Thomas" , "Grimm, Jon" , "Singh, Brijesh" , "dave.hansen@linux-intel.com" , "konrad.wilk@oracle.com" , "peterz@infradead.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "mingo@redhat.com" , "luto@kernel.org" , "hpa@zytor.com" , "rientjes@google.com" , "tglx@linutronix.de" , "hch@lst.de" X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Mon, Dec 07, 2020 at 10:20:20PM +0000, Kalra, Ashish wrote: > It is more of an approximation of the earlier static adjustment which > was 128M for <1G guests, 256M for 1G-4G guests and 512M for >4G > guests. Makes sense and it is better than nothing. Please put that explanation over the 6% define. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu