Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp19295lqj; Wed, 10 Apr 2024 02:28:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWo78qQ+onzcEOSu2jelnzoyPKxeY6pE5H09FV3yPKlWzbXMUeECh1MFniogF7qptS182JGjaHkiLb3nzarcHZlb8bSA869+kuCxRNnVg== X-Google-Smtp-Source: AGHT+IFe39DOD/mpeEYhWcGNRS3+3KS/wqltmPtoWXhXaym5j8QBjFw5dU/VaPCCXusS7d46+yy6 X-Received: by 2002:a17:906:f58e:b0:a52:1487:c530 with SMTP id cm14-20020a170906f58e00b00a521487c530mr466942ejd.33.1712741337546; Wed, 10 Apr 2024 02:28:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712741337; cv=pass; d=google.com; s=arc-20160816; b=MCOgah23MDgtw57yNa5OPaWkzSye0fAb/APUnTBRJgLKbMkF1rMfw1fT+uirPZaPRs WL79Nv/vdChSrLkJxqYbmRE9ufTv6cez6rTotcAwaA4gw4U7t9JuzfUo2Cqj0Aw6F/S4 2YuL2RbxHFv3q0FIBAXTS6vz19ygSoMNh+aOSYMN5+Gaa8qBEHNLrpkEuHFLdfyF4iY/ i9xSwcGc+y9u4iGYp6del+yIYb3fB9GuWp/frCq+BxsxP7y3AkEAJfYARiMS3FEvjPyt AWM81HDnV0EVGwltreOIIlgpqA4f9/MKO7gXq0xLMwGbcyzojYXjOtZ8f43K2JQEwI+6 /h5g== 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=OKIlCd7jL5ol5qvLgWGPfJLjgIu96MFC3958FRvJI8w=; fh=9xnrnHO9V1jTko8V8sNJCMKPFZpnC+5jhjutDn7P45w=; b=vAyooFPCBb5trTDl0iLhMjJaKM6z+Y7ZevEidCLyR45fwQB4fRQipenvpNXRir4+ef OLXbzEBMyjWvbj+4JQui+T6y6hWJTxjkGDDMfMOJat129iDBOBdzyGKWgiRvQnLMcl+l RtNJW3Q18PZOgVEa4FHOHObW1aGs+qNTyBx7ABP1FxsvAzo+kQJ5l8hV0oBqJ0Rl2VVU VuDnxf8tLihaZNIBLG7AJbhEVrtVv9xhrq7sFDjdDSm6I5S5+wxw5egjoWvfh9+qKEHm xet9l5QDLnFENxgoKHTrHMso7cx4mQWM9dPxxi9mem9kZqskwWcrj5cH2/QQiNSNoBQr RX9Q==; 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=H0S06gwr; 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-138236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138236-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s13-20020a17090699cd00b00a51b6dd77d7si4685114ejn.48.2024.04.10.02.28.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 02:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=H0S06gwr; 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-138236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138236-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C827B1F2749E for ; Wed, 10 Apr 2024 09:18:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADCF31607B8; Wed, 10 Apr 2024 09:11:29 +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="H0S06gwr" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 7926B15EFCA for ; Wed, 10 Apr 2024 09:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712740288; cv=none; b=uxFUApKTvCaKmkUI7ZCli7/OmGcGHfULDN8A+mMFoAaLTE18Yxc5esmv7LoD/s37sKfXvi9EqSv16ykdtqrjopPB/V/qWy0YA0y3Ny7j4H+XPKd4WMq9JKdDvgVNSJtB43HTepVfPscf/F6J6wcN1Jhf1pijBsR8DpMNeJUXehc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712740288; c=relaxed/simple; bh=dIKOQ7+8Gx69BlGHAWDa8bC1hIUZKhgNODc1wgGNviA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pSNmKcWfiEom0uTJIHIOXlxFu+pdu1eBH0wAdv63CSTZ/o6lTIWTdcdy+RqD3R0yiiVY5AbSaunHyacem+h52jaxORoupOV1lkr9L7+wk6EJ2sU8OeOx9okbo5QlL8/R34EccYS8CYHYYKM9sI/F8f6VFlQ6iUoU/LZl4Hd899U= 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=H0S06gwr; arc=none smtp.client-ip=209.85.167.43 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-lf1-f43.google.com with SMTP id 2adb3069b0e04-516d585c60bso1576424e87.1 for ; Wed, 10 Apr 2024 02:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712740283; x=1713345083; 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=OKIlCd7jL5ol5qvLgWGPfJLjgIu96MFC3958FRvJI8w=; b=H0S06gwrd6ANiW4jrbHvPyJjGiOIaqcVz4LTDzaaXw9vRTwJxBwCfRaGBDPwmq4Yh1 cBUW/u2wEhyEo9Jjf0PG0vUrX5/JP9IR8f0e77aLywkf6tipp3gm0/Neyknnz1mRcygn wcW7z1Jt5Moi45dYyMjMdMIP5X4jTjC6YrgUu9d2Wbv4MJgq+GRzDQ7RQ1p0GBl5sFbN HYLFNUl/oZWw3kGA35H0eIAj4ljEzRdZHtyEKD8UnuU2xUBtxUuddWs+BoSNp4XZFUXt GrHm/05lsIvlPjaczukw+t6PGpG8GRwJGms9l/cS+ioiUrohW8mvEjAnZybyHId1GbdJ 5/4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712740283; x=1713345083; 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=OKIlCd7jL5ol5qvLgWGPfJLjgIu96MFC3958FRvJI8w=; b=nSw8gC9PM6bdu6DMK83c7VkxqeoNJ4yppI2mYIXkLAAB70bvP1tDnZBc1sYj9/GD6c iKp46LJedaKwo/zOX8852z81Us8ZZupb0u0b2Pc7F1OwId3DuRcZYSsaSlc3/byPPnC9 X6OkGKMw30qisUkz3zuRrtQiJTjG+1KZbXNLlckTHhNZgjzrlkZid4D+dzmLGE68k3m0 WcYc2QaBnKFgOmbcoa3H+n0BtIHwhcL3Qr0LkN7BlAnK632XbbBJRLCqU4niphye8N8C yewaqkc9TFNRkCkGtjdcLcSgNX4r0zUjyZGljEeHfjIyFVyus//EuMaU/v0ZBhHMMesO i1xw== X-Forwarded-Encrypted: i=1; AJvYcCXzcM4+/io/sKfbomKG5Nl/ewsCXkDADz0QBadAN1x+68lFFlysfbQlPF/GA691yytJT7xcqlES4dLI1Dre7glxySlI55Ilb77sk5g5 X-Gm-Message-State: AOJu0YxuNBItdkXy0hqjWQlEO9BJKxmofMhk3RRy1S4fPfoSbGvCST+W j5cVTBAsjgDgVzeNwgNdqy0Ad5O/efb/p9jVSGU5Bf5IcUUERGda8IDHPQcMhXo= X-Received: by 2002:ac2:484a:0:b0:513:c1b0:dcb2 with SMTP id 10-20020ac2484a000000b00513c1b0dcb2mr1173103lfy.3.1712740283581; Wed, 10 Apr 2024 02:11:23 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:d4a6:5856:3e6c:3dff]) by smtp.gmail.com with ESMTPSA id d6-20020a056000114600b003456c693fa4sm9079086wrx.93.2024.04.10.02.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 02:11:22 -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 10/10] KVM: riscv: selftests: Add Zcmop extension to get-reg-list test Date: Wed, 10 Apr 2024 11:11:03 +0200 Message-ID: <20240410091106.749233-11-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240410091106.749233-1-cleger@rivosinc.com> References: <20240410091106.749233-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 --- 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