Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp101496lqt; Thu, 18 Apr 2024 09:27:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9xqZuWP/U47dSb6ACO5+A3YpjrNMdcBMJuQbUyTCllJHRAYAzBzUlDAgY5WAQyY1w7oSz+Yw+3DLRW+RdWwbi2eHBvRHJ8INoNehkaA== X-Google-Smtp-Source: AGHT+IEzG9EBB462HsM+l5ettUGjeIWHU0mS7Ig7nB1ixifALaZ09vHgTNdcvg0+npgiSvZTOsKA X-Received: by 2002:a05:6214:caa:b0:69b:5238:f0ba with SMTP id s10-20020a0562140caa00b0069b5238f0bamr4715791qvs.0.1713457633347; Thu, 18 Apr 2024 09:27:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713457633; cv=pass; d=google.com; s=arc-20160816; b=IAGuTIozCqLglERZexMSSZlqT996lrKOIauRj1AJvGpPMXSZ1P3XFkrmna2sp6x4ok JzxEDd6op1lhyaLRb8TD4qYCsZx/2H+KSa6igwbZPLBdiBjjWiNVllIhoZyz9KM+0rZZ rPZocKVYhcsmkNXIbPccI0w1o0aLZavfVdf0XVoQSda8dkAXCbKCOjLKR4JRz1YIa8RA isEcDATXIwM1gVvq3OkHygz5s84qOkDhqBEp9YGXWr4nxThfWotkGbPO3tDGCJ3lqEtb MZS95Kvi41vfqBKl+cf3Kb/ukEEMr2hAvNBz4x7uDYj/qJoPYm32HMPEFWzD3IEnZ7XV TN0Q== 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=XoKv/RvImu/DvMyByUVz7vVdzNGU4YtRJIIOcys5EGM=; fh=i9VdQ3IqmT4h5369vx9F+xkdLToBu1cXNCUUI+RkceA=; b=V413mLiwMxftwNPsfEDBF8uh6wXJzhQ9ihiaR57qNzXh12jv50qwFJXfDzktOd8vNQ DNP7U7bM5mt01LgC3xWqSL0Kn/BWYzkBzR5cdQ9gr9aNzJUlECWKT7QOz2O94P8OnYJ7 YnTxrw2jOnrQ6ATMRFtSG80JpHsp1ao8Q5t9r20vlLpyCIyFiipdowqTRRB/nzP/HZ1l roRfe/3tfUb6r0iDyr94JITT89IQVidA6KhQZn7lkXdNAG56BIOxjGj2gaPc5qSf9ACs bVtf/exGGIyDgxmT8zSaAe44hJspoBhSCyrLlLFYGr/L0PXUCHdOGQRwMqdUUTo7gHHr fQ0g==; 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=0QmWqPqv; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150162-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q14-20020ad45cae000000b0069b3bfdc912si1904389qvh.104.2024.04.18.09.27.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 09:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=0QmWqPqv; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150162-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D88FC1C22CD6 for ; Thu, 18 Apr 2024 13:22:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 310581635C3; Thu, 18 Apr 2024 13:21:57 +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="0QmWqPqv" Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 10EDC161327 for ; Thu, 18 Apr 2024 13:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446516; cv=none; b=ADCvZa7y18JQ4Ls8l8FXCQjK+9+jSTodfpaLN320Xzt4ss0CGaXfXGtiLgi7yE4dOGO7AgYXm/YtEOa5+GSmrEY9hIsxAk982NTBKC6RmUOe/O7goAKbAp2jJQManWM5d0WlIEMKRUAOTYcOba2u5ookvdlqDFL8Z1+lBXQE+Cc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446516; c=relaxed/simple; bh=IyiFSVactuT3EqeiswOvJ3nQb+Z8wWWbXb7zgKRPAb8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uCIGaAtkwlFGroYAo95ZeXcW1618YN+HCNSZpy/g2Y4XI0gHDQNNuBtNwYk498QlLJLcVRL7Ve3kPBRtQ+uQcl2NnygIMrDVGRm4RptIN0d9qHOwEJnfjhnzEt7ETuphNRrqIsKvkIEMQR+ZIG9V1L5BCZRtz3cHWJ9tqbR2984= 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=0QmWqPqv; arc=none smtp.client-ip=209.85.166.176 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-f176.google.com with SMTP id e9e14a558f8ab-36a165b8845so2695725ab.1 for ; Thu, 18 Apr 2024 06:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1713446514; x=1714051314; 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=XoKv/RvImu/DvMyByUVz7vVdzNGU4YtRJIIOcys5EGM=; b=0QmWqPqv4ZBk7s5ifqNl0zFk1mqVQtNs2Xj61pqJ64Zu+ioRk6YCPjWV+fTZA8+59u cG009/hcw+TbDYVlRYb0VYLwWeif74OIEGtWv4UncLNRY4Bs+6OCz6wd+Hqx/wOah2qA Sv2io15IpR9e/RZYpTPBsgMLnzzpEJdHWdE2bYrQElgQybw08473LQVjNlD6cWaeq7Yj EPywCNPb39kuvLQ2q5A6zTvtJNsc9cQWXN075/YG57eV7GmClB3Wie0uY4njoYNnG1aL ZAQvyb+8TtjtEUXvpksE2eeAzs43CTzwY4ECSb/rEEa/ljLr5JEFBp9xu9vMuEhjPYIg zWSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713446514; x=1714051314; 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=XoKv/RvImu/DvMyByUVz7vVdzNGU4YtRJIIOcys5EGM=; b=KM3ltTRGUdZRYrJUG2t8KM6CRnrvX8s74EZJLuhU0Yu8ShsF1T6PSEDjRYP6kSYf71 bTQg4a2kBZ/BE3ZzPdf53AiIbeEqVf7XNwt6wJE110jQ25NcljDA+OznEGZLxED/4+no yylDVR8cM2oSg664u32JBm5C/RZaVl/236keKqup4L5M/ntk8rzjL5w5HukL56s7Q4o5 0jNTuApASQH2DRf8W5hbDsXzyWH1zM44fgRIKzItKlvsh0uJGG21Z5xnqrtblWkJ33P5 RZqM59WZaIpmXDO2X3Jb8uo1hseWcLdiNXHIQ2riqoTaifXI7sFlk/O7nz54xQF7yxtc eX2g== X-Forwarded-Encrypted: i=1; AJvYcCU6urJks6Xp+yfmxY9duTCX41dnzUvRn4ydnyrpHfhUna9GgOr53LTs/nJxWlUJZACXcKR8LUrrYFxglATqsJIcLGSGYu1cmN3eGdrk X-Gm-Message-State: AOJu0YwuC5xhcB0Fjxc9+DsF6t1iE9l84DGe77Z0sd2mgmaXsyFFPxmB oZWVBG06pM1K2RG96I4fwzrPmPWKLPiYtSNQZ668N5fLn3x0yD5O0uVjW5tubRXyHTu4qAbWhZ5 C6qzsONzO2DOBVaim/EZC9ynlNWhz9QlI29Tyhw== X-Received: by 2002:a05:6e02:1688:b0:36a:3c40:3e34 with SMTP id f8-20020a056e02168800b0036a3c403e34mr3335042ila.1.1713446514294; Thu, 18 Apr 2024 06:21:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418124300.1387978-1-cleger@rivosinc.com> <20240418124300.1387978-13-cleger@rivosinc.com> In-Reply-To: <20240418124300.1387978-13-cleger@rivosinc.com> From: Anup Patel Date: Thu, 18 Apr 2024 18:51:42 +0530 Message-ID: Subject: Re: [PATCH v2 12/12] KVM: riscv: selftests: Add Zcmop 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 Thu, Apr 18, 2024 at 6:14=E2=80=AFPM Cl=C3=A9ment L=C3=A9ger wrote: > > The KVM RISC-V allows Zcmop 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 Thanks, 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 61cad4514197..9604c8ece787 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -59,6 +59,7 @@ bool filter_reg(__u64 reg) > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZCB: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZCD: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZCF: > + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZCMOP: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZFA: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZFH: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZFHMIN: > @@ -429,6 +430,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg= _off) > KVM_ISA_EXT_ARR(ZCB), > KVM_ISA_EXT_ARR(ZCD), > KVM_ISA_EXT_ARR(ZCF), > + KVM_ISA_EXT_ARR(ZCMOP), > KVM_ISA_EXT_ARR(ZFA), > KVM_ISA_EXT_ARR(ZFH), > KVM_ISA_EXT_ARR(ZFHMIN), > @@ -957,6 +959,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zca, ZCA), > KVM_ISA_EXT_SIMPLE_CONFIG(zcb, ZCB), > KVM_ISA_EXT_SIMPLE_CONFIG(zcd, ZCD), > KVM_ISA_EXT_SIMPLE_CONFIG(zcf, ZCF), > +KVM_ISA_EXT_SIMPLE_CONFIG(zcmop, ZCMOP); > KVM_ISA_EXT_SIMPLE_CONFIG(zfa, ZFA); > KVM_ISA_EXT_SIMPLE_CONFIG(zfh, ZFH); > KVM_ISA_EXT_SIMPLE_CONFIG(zfhmin, ZFHMIN); > @@ -1017,6 +1020,7 @@ struct vcpu_reg_list *vcpu_configs[] =3D { > &config_zcb, > &config_zcd, > &config_zcf, > + &config_zcmop, > &config_zfa, > &config_zfh, > &config_zfhmin, > -- > 2.43.0 >