Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1305745lqb; Thu, 18 Apr 2024 06:21:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkhPBVoa64Wmz4GCeyf/2gzSyBgJVBMA+sxSok6cTxOiN9KTsDtmHNqKgdFvcMEEa/L/ABZ5FUBKjFHWye5ZHlySXbRTwwikHCZxzg8A== X-Google-Smtp-Source: AGHT+IG2l+34BaOH1iitEtDztU08CoPUivIl5jZ+gw6iMLvrRfGMFWPhOZM4xxHuqXUdRTOD1RxU X-Received: by 2002:a05:690c:6802:b0:61b:1c75:406c with SMTP id id2-20020a05690c680200b0061b1c75406cmr2994896ywb.8.1713446503151; Thu, 18 Apr 2024 06:21:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713446503; cv=pass; d=google.com; s=arc-20160816; b=wFAmALQA0FqdLnZ/eU7JlKBqFtm+YkR+gVV46Qko3oXayvCjFAuDVb7QNToImZWG9E VT2OLAmnZ3UsEQrUPseFORGsNu4wF3CsWQzJHMaGGSAJ4KhUzsR8UzhVwMWmYaU/kOTk xyjyed4Q+sJzb2zdzSYNYW8/Hwg5eQ7c9JotSP0pfL4KnHLvG0fTi7d/S+H2+b810eVx C8KBz92W9bQ0s5igxkxI7cysNcqohMTF8wX7dnIvnCG3syND55reDby+R/8u7CxodyvD ywMSSVOqn1uE8CFXAblC7BsKmLlTNsVukXiO1Rm4PjGn/ERvtZ+G2gyULatHMry3mLcX x0Ag== 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=5RDk8w/VcIuRs4a1b2sKCJYfS/2Ok3UGeivw5IblcRI=; fh=3a4ZKQaDiBq25VNcQhFxfoEZjCihecIwR1WY9XB2T7I=; b=FBilWxTPbHajmy1uhLJ+rsEvi188bteIARtNkwLMrtsWJqzyVGI1TOJkepF6EBwWrd 3XulErDeMP9KSIjc1/aH8DJUT+FKtxZP/CKvci4/8ha///AV+ggtvM87dbTXxGkUki+X ayoWZbI43Q8x+DsfvRhOdQQK26JqLcfLScSaUxFUaNLTD+2g8Ip9RB3hVTTrKQJkCn8X yX8lmTp8ci++sbJi+I4JvCpkCMUFsjknhz5A81++0CNbcuAYeVpBtQbzJLCgM3FapAg2 Cvq2lMAOerdOlbwgwpCmZC1WLQPOAc5+ZTHPrKtY6aFWnyoAeCcuQLFQ8+TMumcjSz/z +RHw==; 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=ZMTrLA0F; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150159-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 iu11-20020a056130640b00b007ec3580031fsi124967uab.77.2024.04.18.06.21.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:21:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150159-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=ZMTrLA0F; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-150159-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150159-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 9961F1C225C3 for ; Thu, 18 Apr 2024 13:21:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2215B15FD0D; Thu, 18 Apr 2024 13:21:05 +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="ZMTrLA0F" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (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 EDC9A12EBD8 for ; Thu, 18 Apr 2024 13:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446464; cv=none; b=OMRCfKFgGS61dL7xR/T5QQ0wChOKROKFIn/ExpQb/+IotxH2f5K1juwxR8jD2tXKjPNJdWE2z7XTGDJ1ZE44Vixse6gDM25nVt7ToJscN8IJLERJcy9xdOv3rl7DX98QTd3KVO0Zh+aamNe42K96uTKsDMlSJ+1F3N+pGID0ck8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446464; c=relaxed/simple; bh=JqL8HdevsKRqjAkEG5tIhzoaeVLlnpPsK5b0X1/woVM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OHuAX6gnGofWH7qqYCn1n0yboTfUkKLuYPN48cAHBqdgD7tLSGAKFWbsKvTo/z7sOQB8u6pltOnUQ6AIZhAhi44UyUxoEx6qL3t6wNqy0UApuhsuK69IPXmDKcKHsc8ClaKsqJQN8hNhQCuxOn4PClhpxoYpCFWNUJLTIT+uYkg= 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=ZMTrLA0F; arc=none smtp.client-ip=209.85.166.174 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-f174.google.com with SMTP id e9e14a558f8ab-369e3c29aedso3620805ab.1 for ; Thu, 18 Apr 2024 06:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1713446462; x=1714051262; 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=5RDk8w/VcIuRs4a1b2sKCJYfS/2Ok3UGeivw5IblcRI=; b=ZMTrLA0Fofcaiem1qp/oqG4qWhAO+r1bUCCfNqCvFuXHjHZRcqVBFMCY/tVghSb7RR 8wdJjZa8EzybKazELUAxtoemjKZfloumLLCT6zkvcZ0TVpfx3Y30j3t11cSgeCcN12g5 7luuxOidvw/BaQi6L0L7F+/0LrVDCm76qxP0czEsflnFuZ1X4cJEwqfCYIVt9ZdlfrfT O/veTEt3EHb2oLvxXvxh0ORKRpstDC9CiY7xQ3LZmnBxaO3FNMie6QVpCZQ3qD5IKPf5 IlvqyIARYXcO4wAp5UMOaAw5BfVX7V0+r03Fslsr1TCVLiUWqpbGKDPsWqUDSZYTELZ+ PvWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713446462; x=1714051262; 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=5RDk8w/VcIuRs4a1b2sKCJYfS/2Ok3UGeivw5IblcRI=; b=DpV5qTd3KYWEYfIkelRfX3q52kah0DlkFCfuz3p5jLE8UxsO9mj3iu9WKNuMJksuqP ezCvrmK/6SB5+DiPv809OFBrolvYQmTQIMC8dSFC4SHr7zQIYDgVthT2K2hpnV/ZrERr 5MDb0xbBRmzIkZtbF7OpSZCN+SnkSs/BJrIEec25sKSK902OfG7DUccXvmO6+jWvadsm afFjUzcywbuxUbdcYuXsb8WqtsMOLysrLkfjybqa3jznErGZK81dfN3B+qQezTvFDUG/ pcrLYbDUYnh7TGX3EfThsurgTNfw5yLcRsl6ba+f1w+yjIFdr4q2kBfY+xLBIQLV+4Ev GZpA== X-Forwarded-Encrypted: i=1; AJvYcCWS0OImPJaBTbOWItimrW+tmbXR+5dkNYyuaOVxrcGErtob3UHHl3EzyVAaxFnsztaXtRliLDNtUuZwNbSyP9dB8W2xuXy/m06BYtvR X-Gm-Message-State: AOJu0Yw+I5RpPT5Ge4R1KVOZ+bIw7Yb+N5ndekxjRXa8OrFp2XE1VgXc QtnU78Ubj29mRdxTQTQi/IpnlainznU4YcUgP5zYFl0+tNgFyH5KfF4h5HueAQFpFBNhPXHRb0D 0L6EFi8FvupqDAkxgijM6eDN+NmsQT2SbaS7kng== X-Received: by 2002:a05:6e02:1787:b0:36b:e53:57ea with SMTP id y7-20020a056e02178700b0036b0e5357eamr3796568ilu.16.1713446462126; Thu, 18 Apr 2024 06:21:02 -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-8-cleger@rivosinc.com> In-Reply-To: <20240418124300.1387978-8-cleger@rivosinc.com> From: Anup Patel Date: Thu, 18 Apr 2024 18:50:50 +0530 Message-ID: Subject: Re: [PATCH v2 07/12] KVM: riscv: selftests: Add some Zc* extensions 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 Zca, Zcf, Zcd and Zcb extensions for Guest/VM so > add these extensions 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 | 16 ++++++++++++++++ > 1 file changed, 16 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 40107bb61975..61cad4514197 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -55,6 +55,10 @@ bool filter_reg(__u64 reg) > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZBKC: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZBKX: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZBS: > + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV= _ISA_EXT_ZCA: > + 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_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: > @@ -421,6 +425,10 @@ static const char *isa_ext_single_id_to_str(__u64 re= g_off) > KVM_ISA_EXT_ARR(ZBKC), > KVM_ISA_EXT_ARR(ZBKX), > KVM_ISA_EXT_ARR(ZBS), > + KVM_ISA_EXT_ARR(ZCA), > + KVM_ISA_EXT_ARR(ZCB), > + KVM_ISA_EXT_ARR(ZCD), > + KVM_ISA_EXT_ARR(ZCF), > KVM_ISA_EXT_ARR(ZFA), > KVM_ISA_EXT_ARR(ZFH), > KVM_ISA_EXT_ARR(ZFHMIN), > @@ -945,6 +953,10 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zbkb, ZBKB); > KVM_ISA_EXT_SIMPLE_CONFIG(zbkc, ZBKC); > KVM_ISA_EXT_SIMPLE_CONFIG(zbkx, ZBKX); > KVM_ISA_EXT_SIMPLE_CONFIG(zbs, ZBS); > +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(zfa, ZFA); > KVM_ISA_EXT_SIMPLE_CONFIG(zfh, ZFH); > KVM_ISA_EXT_SIMPLE_CONFIG(zfhmin, ZFHMIN); > @@ -1001,6 +1013,10 @@ struct vcpu_reg_list *vcpu_configs[] =3D { > &config_zbkc, > &config_zbkx, > &config_zbs, > + &config_zca, > + &config_zcb, > + &config_zcd, > + &config_zcf, > &config_zfa, > &config_zfh, > &config_zfhmin, > -- > 2.43.0 >