Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp563515rdb; Thu, 22 Feb 2024 12:03:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWiOiAlr3jX9NsXKYMNtEi9ks/z467rcu0p9mGBCM/ojLa3IMorWkM8nBukLh3fU4WlA8PqbYVYpKa9+iNhXR79DjWaxdBzDbEkEZCqZw== X-Google-Smtp-Source: AGHT+IEJSy40dkqXJgrQJRN0XADIZ4doaZuet8HjDQykWzGRbkKMEZCxSIeKyboPw07WI8sWaiPk X-Received: by 2002:aa7:864d:0:b0:6e3:9176:5c2c with SMTP id a13-20020aa7864d000000b006e391765c2cmr13231862pfo.0.1708632235677; Thu, 22 Feb 2024 12:03:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708632235; cv=pass; d=google.com; s=arc-20160816; b=QRzv9iEvjf8bLwGI555+8hCLGdMEg3/4U6gPSAEnA/I1ENeiF+tMBipB5RhgJ6W4jk O36HhiRdJK2wQkd5s5ryZinL+tS2s4Vd5CPhH7eRFPN771z6Z85LFMxl8xi1ONAQrdfa ivG2foRmVraR4c1vUFaG6vT3VxdJ7DUiLSn/pyFsX3SDSSFkNLOTwr+H7IbU/4FlNrj6 n5XfpkFQklxEZCX+iHXG7r9gmBYm/dfznv/HXjLZXfJZZzmoFtbGbbYO/tSHaMUxdHzR nK61NQaHhWO+0E3yRN953k30Ev2eilOdK6uvfIWPL8QOMbKxyTtCWvQcAXVoHcIFGuAs APfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=fXtbm9eYcFP/Qnaj9qL/VFl6ikfpqHd5JRVGugnAsRs=; fh=1OX922bOCsQpHrrO5Jng0Ze1KhbRAT0f1R8veXCLDk4=; b=VtOAyNjU5+Ke2vbmxVmGh67kTHSoBWz9ZGpuI8Y3DJAGVZUfHDor+ouDPfaqDm2n36 YX7lAD1JFUfCXuyxzBR3msGqXparXbgVwJDpSqm1F6OpDqFwj3SOfs52Hzx0ulLk+2jV Z7a+wL2RAd1SYdHspoHCUrQoAo1XauixGAuBK7mXh/JXBFW18MzN7hMIviJ5HobGazBN M2vKLrKI44iFe+oi5qTTkVvwoohw50wcue336kGg1wLRlWbMzVdJWuHXyYM1cEKRzKXK iqOaumfR9JyMuZpOPff8Wiqq5ohT5zhFeGnW1bWcEAUvN0s6R09zcAi2YiZBHSTqxuZK ping==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="ANCs/h1r"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-77209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z24-20020a637e18000000b005dcbb6b4bffsi10989488pgc.335.2024.02.22.12.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 12:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="ANCs/h1r"; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-77209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8C5D9B28B0A for ; Thu, 22 Feb 2024 18:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE3911E892; Thu, 22 Feb 2024 18:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ANCs/h1r" Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 7AC6514B81B for ; Thu, 22 Feb 2024 18:58:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708628329; cv=none; b=oVNUUms0hiC2HSnJNPVwtVEOl56xYALwx7gl745qDwL274wlQ+Wq9eigN0JWMIb09hj6MBmTiXdJHfyQnvZIlQbjPm3ElVbf2VB2BK4wPAU9H/FZQVsHotqkBUt8g5Vo6TY43Jc7J70juYN6tYyhAdDMzZs0aBJa/h94W1TJ9y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708628329; c=relaxed/simple; bh=RAT48h2u3y3O5tYBBYYlc57OcpbSHfgGw0mrClbLdzc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nYIcoa2mz5tYScJp+g/7qrsNR/uR2HIaX3YlrKzGci0/eLL3CZyRFsJL7Zv6VzgXqSWDbmCSCtcH4pBBLh+LFTtjfxgu4aiazadVp/A1Nk7ZjqaCvv5ylWDBq8VocP9rJTWK/yvXAcgdwC+ZsqxxOnqEGXKvD6nr7qnX3+IQ99U= 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=ANCs/h1r; arc=none smtp.client-ip=91.218.175.172 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 Date: Thu, 22 Feb 2024 18:58:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708628324; 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=fXtbm9eYcFP/Qnaj9qL/VFl6ikfpqHd5JRVGugnAsRs=; b=ANCs/h1ri9pxP0KeNYrihg5GVv0VHUel8sBuQbI3aM2899NJMo3u2CIKJfyhr9Kxo7aXo3 vdcLrXi7PBTvjOsZvDoH2eyLIsmTY65/YPJCmtDO/0pM7hEw3FSaSS9yNrmDwUWo0BhGc/ 07/w1+p57kfkPkl2Iqrj2cy6HX4VySQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Paolo Bonzini , Stephen Rothwell , Joey Gouly , Christoffer Dall , KVM , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the kvm-arm tree Message-ID: References: <20240222220349.1889c728@canb.auug.org.au> <20240222111129.GA946362@e124191.cambridge.arm.com> <20240222224041.782761fd@canb.auug.org.au> <87frxka7ud.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87frxka7ud.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT On Thu, Feb 22, 2024 at 02:31:38PM +0000, Marc Zyngier wrote: > On Thu, 22 Feb 2024 13:11:59 +0000, > Paolo Bonzini wrote: > > > > On 2/22/24 12:40, Stephen Rothwell wrote: > > >> This fails because https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=fdd867fe9b32 > > >> added new fields to that register (ID_AA64DFR1_EL1) > > >> > > >> and commit b80b701d5a6 ("KVM: arm64: Snapshot all non-zero RES0/RES1 sysreg fields for later checking") > > >> took a snapshot of the fields, so the RES0 (reserved 0) bits don't match anymore. > > >> > > >> Not sure how to resolve it in the git branches though. > > > > > > Thanks. I will apply this patch to the merge of the kvm-arm tree from > > > tomorrow (and at the end of today's tree). > > > > Marc, Oliver, can you get a topic branch from Catalin and friends for > > this sysreg patch, and apply the fixup directly to the kvm-arm branch > > in the merge commit? > > > > Not _necessary_, as I can always ask Linus to do the fixup, but > > generally he prefers to have this sorted out by the maintainers if it > > is detected by linux-next. > > I think that's not the correct thing to do at this time. I should have > timed the introduction of these checks a bit later, after the merge > window. > > But more to the point, the proposed patch is also not the best thing > to merge, because it hides that there is a discrepancy between what > the architecture describes, and what KVM knows. I really want to know > about it, or it will be yet another bug that we wont detect easily. > Specially for ID_AA64DFR*_EL1 which are a bloody mine-field. > > So I'd rather we make the check optional, and we'll play catch up for > a bit longer. Something like the patch below. > > Oliver, do you mind queuing this ASAP (also pushed out to my dev > branch)? > > Thanks, > > M. > > From 85d861a6ca055c7681c826c580e7c90d74c26ac5 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier > Date: Thu, 22 Feb 2024 14:12:09 +0000 > Subject: [PATCH] KVM: arm64: Make build-time check of RES0/RES1 bits optional > > In order to ease the transition towards a state of absolute > paranoia where all RES0/RES1 bits gets checked against what > KVM know of them, make the checks optional and garded by a > config symbol (CONFIG_KVM_ARM64_RES_BITS_PARANOIA) default to n. > > Signed-off-by: Marc Zyngier Applied as commit 99101dda29e3 ("KVM: arm64: Make build-time check of RES0/RES1 bits optional") on the kvmarm/next branch. -- Thanks, Oliver