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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74FA6E80A93 for ; Wed, 27 Sep 2023 06:39:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EgsjTnyyyStfR1obLrGH9lpw61Xmem5okjKtke+ajh0=; b=dxNjZy662ysSOy UVnosyXYEd9S7EuQx0xVPUbLAwHVbFVTV8ylVKoq22Mvo7JFQnRwQswTfBXdJRKPiVOn15IrrP+R7 fzRt9JpXc5P51W260nEfk+AGzRtB6F2Qtp30wBGakChSAbMX9CdHVFou01Ka6Nlz+6Ue2igRucFGo gD5eRjhNLANbuAV1KXuemslK9h4Xyqpr0CT2RpwsEIKwpr+y9qOTRn8JLxqzAgbnVyDSuRygEUEAB OmcCk4uqSoESVyGvIxKNfNiY8JHJBZYTuPJwWvXqNMPIHgv2E+fbFyTtF1K/Ds1Ymn2HWzWx5DcRW MaRv1Wn7n22soA5H7D3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qlOCG-0006pT-2O; Wed, 27 Sep 2023 06:38:56 +0000 Received: from out-207.mta1.migadu.com ([2001:41d0:203:375::cf]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qlOCE-0006og-00 for linux-arm-kernel@lists.infradead.org; Wed, 27 Sep 2023 06:38:55 +0000 Date: Wed, 27 Sep 2023 06:38:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695796728; 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=ANzSUeT13BcRikCCyItwl6K1na2mnc5Bfg6YABeioAE=; b=IgC7EixxEj/SBVKdii29qQDtWu6vEhtxjFFXja4fPRIMHRqtffx8C94iuWKAWq/qz1iHjW ewCFJBH55eGEvMJAUYEofWEt5zWNd7Cb9pFEw5+4QN5hjG+aoe3BuANLRZf0Ldgn3nfOmB 6iNv9tvn6GGhMk75/QgJu7Zqg859qWI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Ryan Roberts Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Suzuki K Poulose , James Morse , Zenghui Yu , Ard Biesheuvel , Anshuman Khandual , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v3 04/13] KVM: arm64: Add ARM64_HAS_LPA2 CPU capability Message-ID: References: <20230918065740.3670662-1-ryan.roberts@arm.com> <20230918065740.3670662-5-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230918065740.3670662-5-ryan.roberts@arm.com> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230926_233854_180196_2B6B2D72 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Ryan, On Mon, Sep 18, 2023 at 07:57:31AM +0100, Ryan Roberts wrote: [...] > +static bool has_lpa2(const struct arm64_cpu_capabilities *entry, int scope) > +{ > + u64 mmfr0; > + > + mmfr0 = read_sanitised_ftr_reg(SYS_ID_AA64MMFR0_EL1); > + return has_lpa2_at_stage1(mmfr0) && has_lpa2_at_stage2(mmfr0); Should we only require consistency between stage-1 and stage-2 if KVM kvm_get_mode() != KVM_MODE_NONE? In case there are systems that have mismatched LPA2 support users can just disable KVM to use the feature. -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel