Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1432170lqa; Mon, 29 Apr 2024 08:18:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6maKaeNTmZjk7jy3k1zzYsNlUejovEj6LZFgTxSDqY5bgkG+5g3ALxHhha7TGJbkLLrbBTgT5eDpFSN9Bg2TWErY6HV4IQEG52Nlabg== X-Google-Smtp-Source: AGHT+IGD+zS44QMtajcWbrooV6b9RWLk+6xvFDt5dkc4nRroQDejHkm0RnzDi8O4MdoaWYKZFnK2 X-Received: by 2002:a05:6a20:12d3:b0:1a7:4967:d93f with SMTP id v19-20020a056a2012d300b001a74967d93fmr11212968pzg.14.1714403897042; Mon, 29 Apr 2024 08:18:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714403897; cv=pass; d=google.com; s=arc-20160816; b=m6omD1Cs1J4q01RWUGgTuixl7Z0G9WtXIrcTRVE15D4XtgbCJ7X2JPHt8bna7b1Hyh ax6avh4XbLPrvwVlEKuxJYSGIHO7wrIL4Y7cfZvIxuSeK4x7jUDgfBNnbMmA8hKjbo5F 2HMjhUTQAqKuOHq1YPLFTJ8FNxdEZXCcOXBkMPLQlwBP2dRMTxs2DrqomI8IoQaSQ7++ 37zR7YILECREQcjiZmNtgFL4cwYKI27qYw7dvIC/1f/FT9ks9p3IvFmfzvz6muCeoclt Ljfpi99iyXadVOQYTkheL00HFGup98KTBLTnh7VasNJEUOljFpaxJ/IXvw7uyKm7tEHI 84BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; fh=rdgijKrLHRjr+V9PZLbJ3nEzaSTNRWx8a4alIeWazmk=; b=Oj0k6iTHATFNI6KWt8aLOF6OeghVWNlfI+AGy/LpQ1nrttuw/L1bybTNLM/GF5ugbo OKABaF6oHo/2rwLRR1LGyZBiVpuoFclpJ1CRc91V83xFQc5C2VrCcB7rkwCNyKq5MCaG I11CGBISc+F6g/3WWElWl5+Sr/9f3Xm8ZSzZLcvBKy+tatc/8GqRNPq92m8pX6z/GFlF dRO2G3rCsK25AGPzxC6v8FzU69jhw2cszi+MRtlcFyfwfK4v2+7aoJkgP8VNTUBtCeDA IlnAuL1KwKZhX9Wu8lPiC1epTRRf4xQeWx+G1aXKciB6qcPGjZJLNJby+DJ47c27Xo7y iH/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=WI4NjaNI; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-162550-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162550-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 t123-20020a632d81000000b005e42b4bb9dasi19788178pgt.213.2024.04.29.08.18.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:18:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162550-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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=WI4NjaNI; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-162550-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162550-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 C8FB5280FC9 for ; Mon, 29 Apr 2024 15:17:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AE6A131729; Mon, 29 Apr 2024 15:06:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="WI4NjaNI" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 86DB4130E46 for ; Mon, 29 Apr 2024 15:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714403211; cv=none; b=uDul7nfKYM05/Ale2svykA9r1QlUnpIUkK+swAoMCOjdzHN5YVMKG8v/8e6rEo9fhBzXG/nKFlpw8MbTjwZ7Qv+pBoAE1vGIqJr5l8+/h07lX2H2bDpOnU+jOEo1CQ/KUiZ1RyGunQqBCSH8zH8QiP5Sudcbtc8qCUWH+yds8H0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714403211; c=relaxed/simple; bh=x/hf7mR8S0PaebbZDXn5tmxtag3p7rdZEs+HYwpAhAM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qbnUuFt9xwxwIQVNuyWUgbu1EL6MqCD5jdnc7/atyNbFLQWAMHJxBeR3Knu85HATG9h9J9ntMlwsH/2Y5H53H/Bar/G2EvsBZkrgIHk3mQiwYZOCNrSnpJ6gY1rEHyGetwAxyUhlY5JjWlcp487QBoJLSX1wX3x+Ljzyyfqp2Q0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=WI4NjaNI; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d874b89081so11368501fa.0 for ; Mon, 29 Apr 2024 08:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1714403208; x=1715008008; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; b=WI4NjaNIpmg+51bm9FMdVU5cxeVBc8EiIvXMVQeCCALSltV7xBOJkBot45wewGJGzv 1wZ9A0nzs0eYPFyv9kWfiCjW3OQjUyfWWy7V3lB+0bRvGx9WitUO/DrOqkyelbIcCYsA l5WUPhBcZHusmAsGVkNUcCjFrPm7ulsQ5UFFnmYWke/16L13XQ0mL7D/U73fcBA97GKM 8SdhU0AIBI2LNPtFXOZy2NICizXod4oR59q1BafERRGaMdreNfmTNGywlnwgEvHtzWyg Wb600DRtC+JvqGfpshcXpO1O+Km2t9ZOcgEg1eMxkL5O9KLbFteuCMEPI6dZ7ZEzLT74 gyIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714403208; x=1715008008; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; b=IdSljH+MPRtH7TipbtsGAHa9/+qgI7mNe4HI0GRpCmwSr/a5aMAaT7f8fFhw08kZFd iSG3K/vMKhmkjgHadtJiQc31S0X/tosXdtXzz+or+t+4+j1jqlK0CR+b2EIvQ07hV/o4 vwA34XgkSuGw5AUjmhGftlN7KBOInRDrt3yvlsYljCgLtpuos5wNmjrmdN0OQPOLECdj fEnTjUnPZaD0mw/eCV/rx6xSMwqpJn+f7WxbfcpXpIEB2fX+DAL1nSCRiOZRaALjR6Kn LCfc91E+1YDFMwG++uIQkYzsskbA7Nx4VNP4XmWjDLVjVg27j++Oc49ngpl1qve/AhwE TZ+A== X-Forwarded-Encrypted: i=1; AJvYcCU4jxU14elBiJnLrYxmDCFCn9cyBaaaSBvYu8KeqdXAONEfns+Ht7Yh3YQSuvoVAfMe0ZYYvQT+RRmyfzQ13Zeu1xgScsI0E6+zMVtm X-Gm-Message-State: AOJu0YyLCFJb2BtZNvpXb4RgItBmfWqbh3aq1yRyPI5LtAVCAjttWM23 P7gEuXRL1jHsucCojMFsMj2esz/h458+pG1F8pWK/mtFg7BYGqbJV6yxWIIqS9A= X-Received: by 2002:a2e:9586:0:b0:2dd:c6c8:dff1 with SMTP id w6-20020a2e9586000000b002ddc6c8dff1mr6069010ljh.4.1714403207977; Mon, 29 Apr 2024 08:06:47 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:2fec:d20:2b60:e334]) by smtp.gmail.com with ESMTPSA id l23-20020a05600c1d1700b00418f99170f2sm39646638wms.32.2024.04.29.08.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 08:06:47 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Anup Patel , Shuah Khan Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , 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 Subject: [PATCH v4 11/11] KVM: riscv: selftests: Add Zcmop extension to get-reg-list test Date: Mon, 29 Apr 2024 17:05:04 +0200 Message-ID: <20240429150553.625165-12-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240429150553.625165-1-cleger@rivosinc.com> References: <20240429150553.625165-1-cleger@rivosinc.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=UTF-8 Content-Transfer-Encoding: 8bit The KVM RISC-V allows Zcmop extension for Guest/VM so add this extension to get-reg-list test. Signed-off-by: Clément Léger Reviewed-by: Anup Patel Acked-by: Anup Patel --- 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/testing/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[] = { &config_zcb, &config_zcd, &config_zcf, + &config_zcmop, &config_zfa, &config_zfh, &config_zfhmin, -- 2.43.0