Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1927066pxu; Tue, 24 Nov 2020 12:15:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcMvq8f/iasKczAXpp5ILFMUq19f3is/XWO5mHfuMv+OK5IVseLA3GXqiYMUFIDFanSg4m X-Received: by 2002:a17:906:8282:: with SMTP id h2mr156527ejx.50.1606248926119; Tue, 24 Nov 2020 12:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606248926; cv=none; d=google.com; s=arc-20160816; b=0DMf4LyggbmP3uVzgppWzeqfKXSjRMeVMVyOiHsznO+E/MZj/Kt3XkhITqL4XwbrUP SPY/ehsoI7i/fyClRb1uW9HLBdZl84f47HqWitohf0UkM+AeQ2suH/1gIzmgSBPphnH/ GExN/vasrhUSuaA/ZPv04Lf5JLbD1e+pDZsFRrIVxTpwBWI5XEP9iUdmX6nB6NvSqwLu 0thROfEvpKz3uWV/D8PqQnJu1fgii/EHpM+ZmiCmec/KrPL47JR31E22rJQ7EcG8Qasx u6bWzbYz7GHfaWkr1Pav0/T3piMBPSno0lbNmst76eQa6OHgnIc8GOh8JpQSRtmAY4Xq ieMg== 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=6kMx6CvQEut1O2ATzEvOMdVThQx+i717xnGHX3Jg8qU=; b=Cvx5kRsWtmXai1BQ1OGtmWKbF1f/nJsROnCUKnbKG6mg9/QS8+N3Urv34Xd1NaniHG fInj8lsU7e/+dfGIfchVqjhsOx5c876/IEnIab/Z/6qPnADajNuAizpcOx+fhhHkaPvY mkSCeTq+qrOKQSK9l7w/iWAU2ueEYp+C5FQm8jPaH8AHDlnyOwfAU/KswA7Hk6+xt/lZ hOxVcL1rbf9Vu+lRmkFHUXo1t1/zp8P5cxKYjoU7q1ZZMojS1OP5RB+hch1l9ev9EGlF CROGemsydotKZvSyJs26AZfKlFmnemjuen4wQaUohhyvwHFj32SwjcAR/kvhd12kDTql XByg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=XI3UpvuF; 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 b15si9040333eja.538.2020.11.24.12.15.02; Tue, 24 Nov 2020 12:15:26 -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=XI3UpvuF; 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 S1731070AbgKXJEk (ORCPT + 99 others); Tue, 24 Nov 2020 04:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731063AbgKXJEd (ORCPT ); Tue, 24 Nov 2020 04:04:33 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46658C0613D6 for ; Tue, 24 Nov 2020 01:04:33 -0800 (PST) Received: from zn.tnic (p200300ec2f0e3600a9cb1df0e98d070c.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:3600:a9cb:1df0:e98d:70c]) (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 C6C931EC0411; Tue, 24 Nov 2020 10:04:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1606208671; 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=6kMx6CvQEut1O2ATzEvOMdVThQx+i717xnGHX3Jg8qU=; b=XI3UpvuFRjCdrLWhgf7EC4LKLXAmctWaSMFnpzgoAUsi1xoMswvJ8RtUPwbcOUrprHIIgD 35WAvbpYz/L50dZlnAX612/D34ep//wdmN4XdIi6pSsoHmEXlFt6ySwUKRWGY7ns88EGCn /UPxQZDHcjSGVgr0bgrr/v86OSDlFbM= Date: Tue, 24 Nov 2020 10:04:31 +0100 From: Borislav Petkov To: Ashish Kalra Cc: Konrad Rzeszutek Wilk , 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: <20201124090431.GC4009@zn.tnic> References: <20201119214205.11062-1-Ashish.Kalra@amd.com> <20201123170647.GE15044@zn.tnic> <20201123175632.GA21539@char.us.oracle.com> <20201123225631.GA16055@ashkalra_ubuntu_server> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201123225631.GA16055@ashkalra_ubuntu_server> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 10:56:31PM +0000, Ashish Kalra wrote: > As i mentioned earlier, the patch was initially based on using a % of > guest memory, Can you figure out how much the guest memory is and then allocate a percentage? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette