From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 314E315B573 for ; Thu, 2 May 2024 15:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714663790; cv=none; b=Wa2op9CdzZ1Xkcf2xIH8ps6rRqDOvYWmXKkEJUb0oOdgRwG6gaetrnfgs4X7/Rj024jc0bFnDMGneZxAwc2aK55hSPBoMFxusIyQItDPgJ4gD/gj+d2bFXwZ+da7mIe4yFV/rEGT+W5/rtiqWOyimyqmhxf0I25LWkrac/RUgII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714663790; c=relaxed/simple; bh=BZMZC8Jzm20y40lXNKxXciqNS33KIWCmQgIPI5+ONno=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Sbpqo7ZqukynEpoL9HY3yAJOpSH/RtczAQGLMMGWtuXmMyVhX5tuqiKTuoqm0p9SGmIHt8Q2v5mfVrqzBUWNOesmuGov6kjMqjmgqehEATfsBme15P2D4iRh1OowunM/Afq1rmutkFd2zTA6Fkf7RYj1sGP8Z521/yarqClh920= 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=TlxvXGN4; arc=none smtp.client-ip=95.215.58.177 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="TlxvXGN4" Date: Thu, 2 May 2024 17:29:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714663785; 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=GS3iKmDnstvUutszTY6edN+4oZSrvSKCfYuxNXIlg0M=; b=TlxvXGN49eADmrArRPba6tcudekgO7BF9AY2YJcsrfgVfpwBASIyFQejalLif7vSa14Ojh DVeHrMgHUws1CGt5YJmSGZtQsQhZ7HFAx2pRX6WBoQxDy1TrgEv6aJ7IqDuhv2HVNodEm5 02+qmN1JSidFUkETrvqVsKBbU6nYtKs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Oliver Upton Cc: Alexandru Elisei , Eric Auger , kvmarm@lists.linux.dev, kvm@vger.kernel.org, Paolo Bonzini , Thomas Huth Subject: Re: [kvm-unit-tests PATCH] arm64: Default to 4K translation granule Message-ID: <20240502-5c8299c501529abfbbe1abf3@orel> References: <20240502074156.1346049-1-oliver.upton@linux.dev> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240502074156.1346049-1-oliver.upton@linux.dev> X-Migadu-Flow: FLOW_OUT On Thu, May 02, 2024 at 07:41:56AM GMT, Oliver Upton wrote: > Some arm64 implementations in the wild, like the Apple parts, do not > support the 64K translation granule. This can be a bit annoying when > running with the defaults on such hardware, as every test fails > before getting the MMU turned on. > > Switch the default page size to 4K with the intention of having the > default setting be the most widely applicable one. > > Signed-off-by: Oliver Upton > --- > configure | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/configure b/configure > index 49f047cb2d7d..4ac2ff3e6106 100755 > --- a/configure > +++ b/configure > @@ -75,7 +75,7 @@ usage() { > (s390x only) > --page-size=PAGE_SIZE > Specify the page size (translation granule) (4k, 16k or > - 64k, default is 64k, arm64 only) > + 64k, default is 4k, arm64 only) > --earlycon=EARLYCON > Specify the UART name, type and address (optional, arm and > arm64 only). The specified address will overwrite the UART > @@ -243,11 +243,7 @@ if [ "$efi" ] && [ "$arch" = "riscv64" ] && [ -z "$efi_direct" ]; then > fi > > if [ -z "$page_size" ]; then > - if [ "$efi" = 'y' ] && [ "$arch" = "arm64" ]; then > - page_size="4096" > - elif [ "$arch" = "arm64" ]; then > - page_size="65536" > - elif [ "$arch" = "arm" ]; then > + if [ "$arch" = "arm" ] || [ "$arch" = "arm64" ]; then > page_size="4096" > fi > else > -- > 2.45.0.rc1.225.g2a3ae87e7f-goog > Merged. Thanks, drew