Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1743388rwn; Fri, 9 Sep 2022 03:27:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR6iaLDRX9kKq65r0woZmRuUP6TlWGC3ArN0pJejeRsEUE/87z/OjDrjsD4DwYcv26U0Hy83 X-Received: by 2002:a05:6512:31cf:b0:496:f023:5471 with SMTP id j15-20020a05651231cf00b00496f0235471mr4223603lfe.133.1662719271757; Fri, 09 Sep 2022 03:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662719271; cv=none; d=google.com; s=arc-20160816; b=VDdIsXn/1G9iZSL147+kX/xzz87RGnVZjvUeg/4Tu6cdq3/Vi+7IgBYID0wO/Qnc8F zZGUrTZUflwwuLVea89H3MGjb/CiiN0uTis8mWa9HqlBtgekQkkkA2uRro5oh6cpgD8u tmaUmzpbEa1Ye79OsQC7YYZCy+1yRqfSRobzGzPCAiI3bPVxcaUsBjNzNnBjtiHW2hWd di+yhcj3te0kkxv7/zBTz5GgtmhT6gL5XsA9mA3/9RNfi73s9761owt3JyfRaapKRU6p ffors9f2O4rpBBr1Hy2y6ZLeJTdqClimHcuQ2+8PYawEpm3ph1rJ2SDFtz6lJn+OV3Sr mRyQ== 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:dkim-signature:date; bh=UWf75u93hFnHokSkmXHPMg8FKyuqd4msKp/yEz7C7Ao=; b=uRTUjn1j6cavu7NKS44AeKulgynTwGBpd1nTbUs02UiDSYkye/DqkcpmbUspVN591c WyyS48ILY/xu/sgYFRTCWSdlXI1Tok8irUNa7HyApd4keC85QDI3aVtzt59wrUTsdkOZ giF7c+p8YbTrESDLR+S71Q741/V3i3RZijSOMpwfIs3+ZiVTMSSGyYSMb0StSwn2XdCk VUw+J2WgFHU8SpVfihwFcnqCp65Fj+71nY+4kLwl1Z1FHQF28odWFbmHHY8g2ECW+UOG +Ym1Eddfpwi4KDS76NtJLYiNU3YOKOWBFdRlENO50Dn85kSqrkAlVxgL79iwfWzr4abu 5NFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MTo2cIaz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a05651210cb00b00492e5e8d898si61044lfg.501.2022.09.09.03.27.21; Fri, 09 Sep 2022 03:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=MTo2cIaz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbiIIKP6 (ORCPT + 99 others); Fri, 9 Sep 2022 06:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbiIIKP4 (ORCPT ); Fri, 9 Sep 2022 06:15:56 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D60129C6C; Fri, 9 Sep 2022 03:15:55 -0700 (PDT) Date: Fri, 9 Sep 2022 11:15:47 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1662718554; 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=UWf75u93hFnHokSkmXHPMg8FKyuqd4msKp/yEz7C7Ao=; b=MTo2cIazKhJL+OTHp3ysffg8vodSCAed8X2h3DOACc71oK2aqbBLC8NVrUh6Y96fLISHKg RHr3qPWaAmutt9oyx7mVi3or4pcgVp1Ros6ZN4U6x/7bf6jP/xluVrOBnUw1XFK9aJt0ce 1VVctsUI4WfaWLRjrfom8jZgC+S/zdk= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Reiji Watanabe Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Linux ARM , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 6/7] KVM: arm64: Treat 32bit ID registers as RAZ/WI on 64bit-only system Message-ID: References: <20220902154804.1939819-1-oliver.upton@linux.dev> <20220902154804.1939819-7-oliver.upton@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Reiji, On Tue, Sep 06, 2022 at 09:52:53PM -0700, Reiji Watanabe wrote: [...] > > /* CRm=3 */ > > - ID_SANITISED(MVFR0_EL1), > > - ID_SANITISED(MVFR1_EL1), > > - ID_SANITISED(MVFR2_EL1), > > + AA32_ID_SANITISED(MVFR0_EL1), > > + AA32_ID_SANITISED(MVFR1_EL1), > > + AA32_ID_SANITISED(MVFR2_EL1), > > ID_UNALLOCATED(3,3), > > - ID_SANITISED(ID_PFR2_EL1), > > + AA32_ID_SANITISED(ID_PFR2_EL1), > > ID_HIDDEN(ID_DFR1_EL1), > > Perhaps it might be better to handle ID_AFR0_EL1 and ID_DFR1_EL1 > in the same way as the other AArch32 ID registers for consistency ? > (i.e. treat them RAZ/USER_WI instead of RAZ if kvm_supports_32bit_el0() > is false instead of RAZ) Thanks for having a look. I stopped short of treating these registers as RAZ/USER_WI since an attempted nonzero write to either of these registers is a userspace bug (KVM always advertised 0). As the ABI isn't busted for these registers I'd prefer to leave it in place. Having said that, I'm not too strongly motivated in either direction. -- Thanks, Oliver