Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp97386lqb; Tue, 4 Jun 2024 06:17:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXF9SQbkysSfPyYzfPP2b+z+w1hLXngHeMGkHP68EMN2fSRyiaZrAH8oJCGtNmlSx6f9xD+YyIVOexXvInBOEdp9q8eX6Z8Ysa86MA7zQ== X-Google-Smtp-Source: AGHT+IFYsUakFCmAby6JrnQ0YOaiBhcvSv2f0lfOCMwF3YU/sT1B7CRdp2MQWaRfveQqVs30D4TU X-Received: by 2002:a17:90b:2381:b0:2c1:c648:14cd with SMTP id 98e67ed59e1d1-2c1dc5c7689mr10497722a91.37.1717507064091; Tue, 04 Jun 2024 06:17:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717507064; cv=pass; d=google.com; s=arc-20160816; b=0+gZxP9NsCGBYhNKHPtc7343Hik+2PsAmrerF6MInSh2X+xPQKTquvvh5pofcEB80X KsNLPQBzdkMIJrZet3Ao49HAUfCBTJmQkRsSncKOP1muWEEhLeYBqAAwuQQfItYmDkGe G+qDv/YxlgdvkMuwIfCKRLWS7XFK1XAHETy4Q3++f3SnM77VbQvpruTVx0boxawoXo1f OuJ++Kk/9j9cQF/33UuCGDWCA43HlkZpz3oVWnY5iZzR9jyYor3imNIqBEeOt5h/ceIm 054MGU/gjvkQgAUe7EmgJ6LnbznRyclp1P6ZNV9l+YGMW1XjM27CrueWDYQVEwE3wYaU 0Vsw== 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=Thrzhyhf4n6WJYCWxQDF3hgG8fVFwwW9ccIOLsViJdE=; fh=9axU3XmQE4lAZMzpOWxz6hWIOSESuUSfw3U5LILCSIU=; b=c4dlfinyCzvMjwxv07XN4np+0lItbedHNTi/dFKmuXN+baBzCGBeeLPiD7TlftbZv7 H5CiNY/cz9eqd2pQaIuVxAZW4k1SIfiwKyZxXpbWRLaI0BYKDyLfThOvr0532OJIXT+D ZLK1KcKaPFIE3SdOD2gbjZu/Q1ZSvCwXI1gt1vmX3WLkKRiK39BDKovGDI3VN473LoXR 19rsIJTFMvi6Jmctc3mJjA2kAG3LGhiOE3D3pAAn8oOw5cirRArKMKLnPpLyR65qgfwE q6iQpCgGGr6Zk5kxGdQMwgPvF9wZOntiH9SxgD2PXb1oCNfs3RLvbFGIWREcsElwxwhF KXBQ==; 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="U0Xas/DZ"; 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-200630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200630-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1ee3f6c9asi1143286a91.156.2024.06.04.06.17.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="U0Xas/DZ"; 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-200630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200630-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90B06B26DC7 for ; Tue, 4 Jun 2024 12:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FD751465B5; Tue, 4 Jun 2024 12:47:09 +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="U0Xas/DZ" Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 6721C1465AE for ; Tue, 4 Jun 2024 12:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505228; cv=none; b=BRtVQxKHBufuURt7AZxtJklYij6PSFOJsT6iSOjq0L473Iq1+RQtaOu9xNvsbtiGzCltp3PwJld7x0ecv5SJ9QkC5vvIZ0M+8bGiC1IvBZG8/Ztjr3fSOJZTJksTAp0m05Gr0mCGeW6G08DUayKtaQI6QegSZbcBkfbdWg2f4a4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505228; c=relaxed/simple; bh=7cxixw3789zfXT599OJ7yLZEcsI+8PZynoNitlKT7DA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HnNzLXHO3GAyDLwPFlMLwv8GdE45CfgGfHJgzMngYsfO6NBJwSA4YgHaEs4hGdtiSkWoy3GPy5Nx/8sK1VTCEmSSBZag/6FzB/SDIuHWVwtvOJJxzz09dzwGJUiNWb4iO+I7pLLhMq6pmTv+/7OFdfI5LBiMWGpv9xlNmtfBoNM= 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=U0Xas/DZ; arc=none smtp.client-ip=209.85.215.170 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-pg1-f170.google.com with SMTP id 41be03b00d2f7-6c386a3ac43so264453a12.0 for ; Tue, 04 Jun 2024 05:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1717505227; x=1718110027; 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=Thrzhyhf4n6WJYCWxQDF3hgG8fVFwwW9ccIOLsViJdE=; b=U0Xas/DZlXQyi4obaLIy04P04sXFUdLnGAw/HogwxFvK+PC6cVykzbHjwh3+mxmYp2 mfULshmMuyyguACeT8CeYZtjsCeeZ2DgNbm6Ao1HT3eYmhPvC3HBDH8REg6FbIIt3/Iv LfGARL44kuxgs3M+iA2YioDBr4NsZmYzjPPlfU4dfs8Rj91FxErp9hI8jUP5loQUQ51g atAbXNFgjTXYVNG1L0z33DItOxtx26vEp6Jn4Pg9oiDHn1U+C9DHJBEl90Zxja9SjcsU NBUueZ7Vl1Bx3WLG/ZhPuBRp8FJMYPZ9ITSNS3XosAQTd1LHA6RaBa5MsLW8D7N5QQBE 63gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717505227; x=1718110027; 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=Thrzhyhf4n6WJYCWxQDF3hgG8fVFwwW9ccIOLsViJdE=; b=j0AwDdBO68mKLAD7oiSJMb6VwcEDKqDIBTxne1VI8jkfHlhvYs4je5SvPL9du9Y4Zl lS32ui2k9laS8YPlYh8S+6bAv2yFDzDD/PbP2O9RoygFsYDfEhwnCr10wKTzMBlyxMkz gi9AZAhoiZT+dz5YIZzaCe5c8InD4UHLctcxDdufx1llMk+l34jhYqzvH852exDybela +wW607ECQBBi7GFfSYeJhu53nVLY+mti2Kjzn8/FojUeOm7fiYUMoIUgIkGJBEDDMD60 QshNHo4qRQjA6wUs4NmmvYEWL3MPcR97ygGkLteWMaqaQuFqpK/T2S2Ag5jQvgzGB6fN 0mQw== X-Forwarded-Encrypted: i=1; AJvYcCXwgyJS7RqdXz1sMzoyXdJRJvQ/aZUxBCGReDWLnh4nxTBVZWrtWVKdLvRX12FYzB+aSDYxRcrpq4g7SQCUHjbMwKIIFWyAEvcxUUiD X-Gm-Message-State: AOJu0YyEElqV54MOZ7a+EfZ76IKqrDP5injJfy08NI8o3FG6qG5Qohl8 gNukUBv2Lt9uxT4/rrTX7nEmaXr7VvnaFaj8elVNt1wWMS4Iw+zHTTNk+JYFSWQ= X-Received: by 2002:a05:6a21:789e:b0:1a7:91b0:9ba3 with SMTP id adf61e73a8af0-1b26f30dbb1mr14554711637.4.1717505226907; Tue, 04 Jun 2024 05:47:06 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:327b:5ba3:8154:37ed]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323ebc69sm83042885ad.211.2024.06.04.05.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:47:06 -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 v6 05/16] KVM: riscv: selftests: Add Zimop extension to get-reg-list test Date: Tue, 4 Jun 2024 14:45:37 +0200 Message-ID: <20240604124550.3214710-6-cleger@rivosinc.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604124550.3214710-1-cleger@rivosinc.com> References: <20240604124550.3214710-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 Zimop 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 222198dd6d04..8c8b109ce3ca 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -68,6 +68,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: @@ -434,6 +435,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), @@ -958,6 +960,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); @@ -1014,6 +1017,7 @@ struct vcpu_reg_list *vcpu_configs[] = { &config_zihintntl, &config_zihintpause, &config_zihpm, + &config_zimop, &config_zknd, &config_zkne, &config_zknh, -- 2.45.1