Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1092396lqo; Fri, 17 May 2024 10:21:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcgrutvNoq9gOZHIM73f88slr3Uw3TsUyM77K3S9EKFf4vtxgn2DaTlpImuG50suezRZg7xL+56FaEwyZzhPZpgFCmlKvpz57EFSB2/Q== X-Google-Smtp-Source: AGHT+IHynec2ZB2x37/LhfbnpUbb8IJAxs7p0S0fmdPu9FiHbH0aXqMderlvv+a1tLdtyC5s1us1 X-Received: by 2002:a17:902:ce85:b0:1e5:11ac:a283 with SMTP id d9443c01a7336-1ef43d0ada2mr271396205ad.9.1715966468874; Fri, 17 May 2024 10:21:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715966468; cv=pass; d=google.com; s=arc-20160816; b=jKaBMAWujDb2j8nFJExIJ9/B7W6AkryWSfXuK2YQF6MsC7Exn0Q+/rSPNwhBGEmymh LtukQk49kgDVxtti4EYAvEwwSJrEYpWi6bIp5pOWN3xCJzbTTNcv/G/0ViHlleoRRgBQ W3SwJLp7nzfTTH7OcLFJdCBL1BOvnGfTrk6NRt8IzQegx+jM7vyqIzIVlAVZtgy4lntX SzCQv6TXejlvt0g/AJOFBMxcoKOXJXn8+NNMUsFsukIRkZGXM32ZgIejNLpp6Qi0B3ZB D+UsjvaSbVEmrsqdCFD0wjmH6ezvu3q3NOaeXGH1k0wszNu3LtCfkljPAR5Y8IshuEoJ fNsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1m4CFwHLpmZnHQVhxg9Ce7GcAxeNjySCi2dNUZGyOug=; fh=LLFO2g2YJ0wVDiVw0rD29J317ed9r/wH4WR/1jhxFYc=; b=tHuqT2CEdgDQmEOJxIbnN/1Xctq5v5aZO1xpLuVbyFcnP+FOkc9MHtA7R7DLFbpm1L tyYuzkhhhzpxPqkcubNuYTcp4EdKFVdUbxhnDNZ8ejNbzuI+gHPSDdcxIoXReC1mOIHg Ws33RyGsGzOnxB6aonm3o3ZrDxqD94cpYSx0KNx8jN/LZBb9/3BmWnUjFWQv3p5rPDZ3 ZD9mNrMBzFy8HSGXyUddJAaTwPHBHv+nM+KcO0iCDYLw1z94O2y/MsG0aN4WlJfso68j wMYksfECde2a5O3Wfi1NDWI834EpxZ9D2PQn53pOprD9uBOtlXvRTmhw8HJTWN1+0RkU N5cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=KfJGnobH; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-182282-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182282-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0b9d13b1si18967495ad.63.2024.05.17.10.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182282-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=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=KfJGnobH; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-182282-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182282-linux.lists.archive=gmail.com@vger.kernel.org" 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 10D66286526 for ; Fri, 17 May 2024 15:18:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6A9412DDB8; Fri, 17 May 2024 15:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b="KfJGnobH" Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C9A712D74D for ; Fri, 17 May 2024 15:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715959115; cv=none; b=S5wNJdNivr2CUDlOYKYChwcoRtXoRPCq/cLThZmsfKbxu047OsSsvpl6+gGYMsI1LwUnX/z1+wp9z61b9OWzU/l9G5CVxRLxNF2kl2Jk+KEDXDYAEcmnbV7awWGd0B5gsvFGzgexN+bFYS3Ia/nZsBlxTBaVVZ6BriyLfZ7rwgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715959115; c=relaxed/simple; bh=mpYs6UtAF6g4uCYv3WzchVCd0TLckL19zbzZwRq8vNI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uvJNb6J81ixMrZ/iEZgOtsaWCzdPs5vaPPFoJxMEzTX+rCkJLILDj7K/WjOCOaF37QWi4rc3sNOXUclYHXaBvTwbJ3cD+DmYRD6ZjasdpdIeO0ze91EEV7pmZOLMInFfuQcRJbCOAhzCBgffavrWMCItaFdKrLHktnrIsUdnQLg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org; spf=none smtp.mailfrom=brainfault.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b=KfJGnobH; arc=none smtp.client-ip=209.85.166.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=brainfault.org Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-36c7b7b995fso4971095ab.1 for ; Fri, 17 May 2024 08:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1715959113; x=1716563913; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1m4CFwHLpmZnHQVhxg9Ce7GcAxeNjySCi2dNUZGyOug=; b=KfJGnobHwephIp5j76CaJ6cQEdiFRclnJJFhgSdFrZDnoVbnjVQmTe7GgN4IFd0Vxo lRqMhihiV02kjtcq8ckGlqzQzP/tZb/yWZ8/UUFq7C1DeQ/nEaGpTl4AVGj0adpm6Em5 ane58fcXjmjMA2+ZwErmpxVWb4YXra4kX+WsFzouLI7BL+MzTsHIuf41YEbGlHzureB7 KAhqJ9EP5bAqa9z2MK0WAmjweThigKfD5Gqw3n/t0lEvKyXOPwGQUboUasRG9oVFzFuG 8UL+vnwa08Isf7iVVSSkygwU//mAq8b81pc3dc/c/sr9Jd7pBvC+/53Uz5tN3mmcwk/R wnCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715959113; x=1716563913; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1m4CFwHLpmZnHQVhxg9Ce7GcAxeNjySCi2dNUZGyOug=; b=RQaHxBthmgFpyp+BBN9NPX8GhWecMK15jrKM9IO3W9JPjx5uf4YAXh3mw11qZF9Whk mxDtJOlKafxQxtIn0Z6a7jpx/n8snd+2XD6B3TjXoy29g3Ug0fA0RODFuDnkik4N95M0 BLqvbdA7jba/YhT6R3Rp2Vr6ZDbccE3bd/tKvKQhMaLfFFe9yU8aWEa8/kq/Lqrxt85q EbRY87y8ObEPF5VLWlPMVEGcwvQ216EOTQ93WQ1szlJOYf7LXjJ/llFPbsljgxYz4lxQ 2et3blBy5HZe6a/q6JTcn6oT9nk3FJZMm56I11iPrMJpK13gV5gn1xv83HiwbrxXO57B IxZg== X-Forwarded-Encrypted: i=1; AJvYcCX8kz9DRucsc/6Qw4sM4N9viIAquyIMBX7xwTH68HEABwYBk53Rk4BJPGuTss6+JUjm4k5PVHBMrJRiMsU327Oe6e8Ik966nwmigG3+ X-Gm-Message-State: AOJu0YzRljH7ln3DnqUs5+ZEPGjE8CLpAmVBOhkgcWZCxUQPefb6c8Jr 3y/2LUxY+opsbsRXjvxEruiKC9Mitgf5GUn879VUtI5w6G2gPLmUv3B4rDotUryJCu1lpi9qT40 456fMi9bsR/LAwhuljpyk71ixm0N4lZbPpCV+2g== X-Received: by 2002:a05:6e02:16cf:b0:36d:b398:aa92 with SMTP id e9e14a558f8ab-36db398ac57mr108119485ab.8.1715959113504; Fri, 17 May 2024 08:18:33 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240517145302.971019-1-cleger@rivosinc.com> <20240517145302.971019-6-cleger@rivosinc.com> In-Reply-To: <20240517145302.971019-6-cleger@rivosinc.com> From: Anup Patel Date: Fri, 17 May 2024 20:48:21 +0530 Message-ID: Subject: Re: [PATCH v5 05/16] KVM: riscv: selftests: Add Zimop extension to get-reg-list test To: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Shuah Khan , Atish Patra , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 17, 2024 at 8:23=E2=80=AFPM Cl=C3=A9ment L=C3=A9ger wrote: > > The KVM RISC-V allows Zimop extension for Guest/VM so add this > extension to get-reg-list test. > > Signed-off-by: Cl=C3=A9ment L=C3=A9ger LGTM. Reviewed-by: Anup Patel Acked-by: Anup Patel Regards, Anup > --- > tools/testing/selftests/kvm/riscv/get-reg-list.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/kvm/riscv/get-reg-list.c b/tools/tes= ting/selftests/kvm/riscv/get-reg-list.c > index b882b7b9b785..40107bb61975 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -67,6 +67,7 @@ bool filter_reg(__u64 reg) > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZIHINTNTL: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZIHINTPAUSE: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZIHPM: > + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZIMOP: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZKND: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZKNE: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZKNH: > @@ -432,6 +433,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg= _off) > KVM_ISA_EXT_ARR(ZIHINTNTL), > KVM_ISA_EXT_ARR(ZIHINTPAUSE), > KVM_ISA_EXT_ARR(ZIHPM), > + KVM_ISA_EXT_ARR(ZIMOP), > KVM_ISA_EXT_ARR(ZKND), > KVM_ISA_EXT_ARR(ZKNE), > KVM_ISA_EXT_ARR(ZKNH), > @@ -955,6 +957,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zifencei, ZIFENCEI); > KVM_ISA_EXT_SIMPLE_CONFIG(zihintntl, ZIHINTNTL); > KVM_ISA_EXT_SIMPLE_CONFIG(zihintpause, ZIHINTPAUSE); > KVM_ISA_EXT_SIMPLE_CONFIG(zihpm, ZIHPM); > +KVM_ISA_EXT_SIMPLE_CONFIG(zimop, ZIMOP); > KVM_ISA_EXT_SIMPLE_CONFIG(zknd, ZKND); > KVM_ISA_EXT_SIMPLE_CONFIG(zkne, ZKNE); > KVM_ISA_EXT_SIMPLE_CONFIG(zknh, ZKNH); > @@ -1010,6 +1013,7 @@ struct vcpu_reg_list *vcpu_configs[] =3D { > &config_zihintntl, > &config_zihintpause, > &config_zihpm, > + &config_zimop, > &config_zknd, > &config_zkne, > &config_zknh, > -- > 2.43.0 >