Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp307908lqm; Wed, 1 May 2024 00:31:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX46ksqc5lUnFY08n/ma9/vsyvNREXxrco7/N/Y43aqVRvGxEfRW+uR5nhFU/KZfIS0g7mnpym2jWyAED1JHCHZx6Hu48xXJdgblD0z3A== X-Google-Smtp-Source: AGHT+IEMMzX6GPT7l2ahPkg4qvXKquE3FMNWD2UzuUF7HQtEbQv7JmyjOLfMTYrmrTCKhwUGCZTd X-Received: by 2002:a05:6358:440c:b0:183:b7a0:8aa with SMTP id z12-20020a056358440c00b00183b7a008aamr1518297rwc.13.1714548711317; Wed, 01 May 2024 00:31:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714548711; cv=pass; d=google.com; s=arc-20160816; b=zMxtJV61VrCBCBP0d/3tdZehjrdSjngUOikerjeSjn4aF63maAquwrXby+juK7xYx0 sEibFpUeVhEWeGXxCIw0H80cfyvKPoLDMyvbok4IilmWroUav+fjvqlnvTtwEYRbQpSP HtikjKEr8LelUXSRY3E1lb+mk3NFV9jCt3QJ+y/PQBOwdxa8WHCl79+MKcb5j6soR2/l WyiSezc66Vl/aJybwAPmh/TOwPyl3yxqHxCe3kzV4SuGUB2fmtr754o+zrZVafP5U0Gk 7157nyzJxQ4MnClyfjmqzLH33LV7210cqCP50U1luESdU1x/X0w0kBedIE4J28pRGHu5 z3nA== 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=Sl6DYhZs4KcDMj2OuFfOTtj126Sqpmu4poaggNg8mUs=; fh=dC6bgcv1LZxbrPgO2LLLE9/fKqigeIojCZwwV9paWH4=; b=G6PJYFPjTHHmelV9SYbcRfgDv6PiVf47F43yiR5fTQ1BTTxzEsSleNWbGRXQ2WQKmA PTBBg5Y2opRsZ2fBSaErb60OkTh2C2Aq70ronLL85rI/KUZ67UIpQmLc7UZRWMrQJ3d6 tEs9XlyF+PGfzGSnYLxb1F1b2USksAHHmuJyceBO4/IoWZCY41l0fVCytb6Va6SuiR3w 6DA+88yWSXbq2oB3+sOusQHUeBSnHB6Hjvwtl7/9I9nIPVUB0DV3xEpFQg7Df05pb+Rg 5hIZRHspKGS7rp3wuuYGXVYBg60/V8/8aLZXg9BbO5ZYYYkZiRM4JicuE1PMO4YN7whd oldA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="WFVem5/C"; 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-164987-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q37-20020a63f965000000b005dc4ec6cd2esi23258183pgk.767.2024.05.01.00.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 00:31:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164987-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="WFVem5/C"; 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-164987-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164987-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E1529283A24 for ; Wed, 1 May 2024 07:31:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83E6D4D11D; Wed, 1 May 2024 07:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="WFVem5/C" Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 383844CB4E for ; Wed, 1 May 2024 07:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714548704; cv=none; b=ZngJ1gFlorUjMERK4xh5KMgMw6va7RosCD42k3a1XIdx2N5u5BuqymX771rFb94tzcpKoZH/F00afiP9hDQ5YAT28Knb/Sijzvac9WQvN98UKYbnQUKge6vgWJFuJxBlXSHJvRCGFtfp+SDmCOldBOxiFalwxPXsL86SY0HflrQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714548704; c=relaxed/simple; bh=oUy1TAwlnhXThw+ui/oC/8aQc/CovlUHkSG4zXgbPN0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fs3VBUoYLOr/MnjJDV40hOAUyetgjvfyw6f1gMheJ8IsziYkGi5MmUv1KvfWYkq1D+esuQt/epjVnulah6CoHVqe9R7fvkfbPjhonkKhvFpBQW1wHX8u8nopMGSRg7CuJZ1PAVrQXiRu6mZ847KWvDe/JCGvBdJYhgfEI19WCIg= 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=WFVem5/C; arc=none smtp.client-ip=91.218.175.184 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: Wed, 1 May 2024 07:31:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714548700; 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=Sl6DYhZs4KcDMj2OuFfOTtj126Sqpmu4poaggNg8mUs=; b=WFVem5/Ci1b7QI5aBq7JA9nVh9Oa+2Qf1y8HBiBhp2DxvffdPV8c0K9PR6OoZ9s6Dcu0QW +koQu0s5YUjjMxQXskwVCqRmvnsfEfbtGD0NEhLT6xVaW5LfH2869kG3HQu0QZb/AUXbFz 02fgtQhtXJQMxLWYmLFu/2tVJ7iPmqI= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Sebastian Ott Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Catalin Marinas , Will Deacon Subject: Re: [PATCH v2 5/6] KVM: arm64: show writable masks for feature registers Message-ID: References: <20240426104950.7382-1-sebott@redhat.com> <20240426104950.7382-6-sebott@redhat.com> 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: <20240426104950.7382-6-sebott@redhat.com> X-Migadu-Flow: FLOW_OUT On Fri, Apr 26, 2024 at 12:49:49PM +0200, Sebastian Ott wrote: > Instead of using ~0UL provide the actual writable mask for > non-id feature registers in the output of the > KVM_ARM_GET_REG_WRITABLE_MASKS ioctl. Urgh, yeah in retrospect I think we should've constrained this to the registers KVM considers "id regs" (the space occupied by known registers or otherwise RAZ). > Explicitely set the mask for CLIDR_EL1 to make sure we present > the same value to userspace than before. typo: explicitly Also, we know the set of mutable bits for CLIDR_EL1 as it is handled in set_clidr(). The mask really should match that, since the UAPI is documented as "allowing userspace to know what fields can be changed for the system register" -- Thanks, Oliver