Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp999104lqo; Fri, 17 May 2024 07:55:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9lUhboudrZwQuZjaWcHVngC+ZH+GBHL258USI/Ob8N762/WBqCrp1Ot5HLxf/9Ii6tfxz469qwiBawVlOPcKycglob92WHER6F/z0qA== X-Google-Smtp-Source: AGHT+IHEt9bdl363wWHmr3hc9LLJo0QLq0TTO/tTUAe6MD6R3ieGZeNMo4CvrBHir4jC8jbPId8d X-Received: by 2002:a05:622a:152:b0:43b:6fb:8bfd with SMTP id d75a77b69052e-43dfdb22a75mr219608161cf.20.1715957729117; Fri, 17 May 2024 07:55:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715957729; cv=pass; d=google.com; s=arc-20160816; b=J1B6bInFM/lNfvq78I1OBsYMbZc7CmM7psoAKHq8GGA5CNewInp4yCTPdhV+tY1f/Q zunVd+fS+2vjcz6rAASnznHJzpgKkEgOS/4SmMUMxRRvcs+y5C/UfgZswGL9xJlQDb8F JEAo9I5xk9rCKLDCg7f31t/H0dPGQWB9tpmZaEDJ9FNzhO5puy1HSBq1yxUPu/LAdxfE vHqXt+CvG++rTegcnLVG+S0Ye5Nd2+W/HnOoeC1xZY4mNbrw/Xd3MMQrXwsNXDvCw77P 1a+ts3NoQxNR+R6LvP49s+qCHkxscAuNhXYCyE0tW4EMjvaeT8zixAKmYK8oqPurV2nc q0iw== 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=qrSVtGZRwZdqSUCPKBtbbPV0rvcWw4KEF79SGVRT1V0=; fh=AsNm5Xw6lOxWT4pjQ6yRynk1DzoWA6incsaLww7QApo=; b=DURwV7SsicBo2Dxo3Xcbp8ge/RC4TY6AwEbKbrWunu4YYYGdVYrwXxnA9StanPy3Ak 2zVdeS2USvK8QR4Hf6Y+8tGUo13+Wx0JYsoim+4mw7PvmOPQhWOkbcch9hup6aawHxPx j1tTFfvNHGLz1YAYX2WMopBaJAXpfmI74/sCthJaPb/HC4YcZA9O97lE09MeLZuks+pO bf8uaphMG4oTp299nFoLmA/GqDAYua9KEzSMyt5RxbvF6SUhgSh2Ydb6Tq29Mx8WHMFY AFp/m+rJsjSPrtpaQ3m1WFq4gvHy7wChGw47h4rNNCcLKQvh6sptCu/7w8e3rSCt6GvA D3cA==; 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=Od07MaDS; 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-182244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182244-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df71d9b84si51548441cf.183.2024.05.17.07.55.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 07:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Od07MaDS; 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-182244-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182244-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 BEB5B1C2171E for ; Fri, 17 May 2024 14:55:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8267745E7; Fri, 17 May 2024 14:53:27 +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="Od07MaDS" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 A1BF56EB41 for ; Fri, 17 May 2024 14:53:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957606; cv=none; b=k6skd3FmBgBvVSPLSAVQLQzeW3Tg/x9MJsQSv6mXs+Wm3r7djpWwVc+SNrBfZASoFZVlH2YT44akK2YtT5Wqc3RnlO3f8WPDhFWbGezzeJ5AAVBMHkVlfY8iuNzZoEwiI82UOPlVRdQq1iEHgCisjLHLTQdIKo4iiqkiT3hpdvw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957606; c=relaxed/simple; bh=3pUouzGKtTo71pYkdkJFB3gRP9khPlS9i6RZ43zvw+g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nDXSYS+1vR+R+IKnhmf3JzWd8iA7NYYnWvy0BpP7TDwq8uY01mZ0lt8DoQh4+KxZLO/vWcidFZNTAvSU3YJuWT/waZGBYPoNpUvVKt536rZbrllRZpZc4ZJQy3Xrvzg7wBTi8FzVdka/DMz9TtB4baum0I8qg2lbjhwcyS8nPdc= 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=Od07MaDS; arc=none smtp.client-ip=209.85.128.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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-41ff95798d4so318005e9.2 for ; Fri, 17 May 2024 07:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1715957602; x=1716562402; 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=qrSVtGZRwZdqSUCPKBtbbPV0rvcWw4KEF79SGVRT1V0=; b=Od07MaDSgqqLKczElJ5KdqW/Odq7UViRs9G6uHM16OeF/GlxqrWYQkTs0MlFXp7rAn bJNUiteNjPviSW7SOcOpNHhL1CNp1rAZr9VxGyGXtfiBuO/blte8C+PuP+xxk9NUhSEr +MkD1KVa/IZKRxZYSdpwGTk1AWr1Eya27EPIpNnlkmC38w0lrOuHttfq9gQ2495tF4Lh pRGh0Vt+N3BCSlOuAilA4gVUP96iEZqfc+c4CAXjNXFKQYgT0PJ09Sk9V2wdV/2vTLOU mzzm1nhamMREERi7fFLuF5YEDnneFzoGjsCMtDffn2I+mYb9CaMGyWHdAhLEY7NPovMa IVxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715957602; x=1716562402; 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=qrSVtGZRwZdqSUCPKBtbbPV0rvcWw4KEF79SGVRT1V0=; b=XweAeVmiRGQbCn21PqDKJS2tg4byCvr7tws/X5NxdacJyhPhcBuPzQJCKyi2IxIqHa 4xJN3n2JR4Rw1xorTFggul6ImDC5ckTU8vvLGkqfv7nVgRPatjC3GVYqoQgi2zyLW7C7 mm90ax0VbvCaSxtTdlSsOD9FQ2G4MkA4cl45mkr7EZcUbOuxKpmoxiUhxbnmfv0wMShf jS0zTk32mRxk60vLl1SilgnZYZirlsGHfK9Fz7S4S7ls9xtjWfSgLyjunWaiPS+wEc/B 7HwcS0GlviqCm1c7ny0QlgeSRdyZqREgXcUKDL4hKFjzxIWPiqRz9rgf7d1eE4rXQov4 jLZA== X-Forwarded-Encrypted: i=1; AJvYcCWL4C1Jqxi12dEuehKwxZzW+mZGyZzwZY/5fZM304vcMn+gQ7vRiHv/XHtPOWl0O1r9UZvuAoB1afg32FtwxrOFProiwAaeIP5elkDH X-Gm-Message-State: AOJu0Yzfw7W597vDj5Z6o3T5JZ5eWKGMTEYez7dw5R7A0RvYFH0OYKkR qD7NWK6tuu4e9LX4Sj6kKBzrvq6FS5+dv/kLhLPIb00v9MBonX9dfTWMFTVXhg8= X-Received: by 2002:a05:600c:1d0a:b0:418:1303:c3d1 with SMTP id 5b1f17b1804b1-41fead6ae1bmr185460015e9.3.1715957602088; Fri, 17 May 2024 07:53:22 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:46f0:3724:aa77:c1f8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccce9431sm301723695e9.28.2024.05.17.07.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 07:53:21 -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 v5 05/16] KVM: riscv: selftests: Add Zimop extension to get-reg-list test Date: Fri, 17 May 2024 16:52:45 +0200 Message-ID: <20240517145302.971019-6-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240517145302.971019-1-cleger@rivosinc.com> References: <20240517145302.971019-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 --- 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 b882b7b9b785..40107bb61975 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -67,6 +67,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: @@ -432,6 +433,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), @@ -955,6 +957,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); @@ -1010,6 +1013,7 @@ struct vcpu_reg_list *vcpu_configs[] = { &config_zihintntl, &config_zihintpause, &config_zihpm, + &config_zimop, &config_zknd, &config_zkne, &config_zknh, -- 2.43.0