Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp536685rdh; Wed, 14 Feb 2024 04:39:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWqokOZbJpXnXlRGAAWouXVDJ9quwAkM4lKvn086HWuf1Kt8yFfnl1HBk1zgrYDuN6+GfgIJWvpyhMc/hq+JMwAnozutxmnwLZayhPFxw== X-Google-Smtp-Source: AGHT+IEu+CQcRsOzHOmjyWqZFDIixA6wrVjJ5YQAdrt5LEoS4yJAbxZeVQEHl/toeZHzv/k4Iza/ X-Received: by 2002:a17:906:fa06:b0:a39:99b8:1f7e with SMTP id lo6-20020a170906fa0600b00a3999b81f7emr2092389ejb.4.1707914377110; Wed, 14 Feb 2024 04:39:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707914377; cv=pass; d=google.com; s=arc-20160816; b=Y+gHWEjxz3fvi/zVCTHfhVMlQDQgZztRKWn3Nc7hUfyxgulS1dyFNSblsUT5h1Aqge tn8ubPz7EBMt6dKv5Z1uVrMR10bwLunuXXdHQj2mx09Knz7ACQM+gO466p3rB5+q0bp+ wKOkYkvf0pRwYNPqwg7iM+c57xExEy9heWx25lccTy8pKxs3kEc8v49Q5CPx+VyePFiO sXOk9ZzmdujEOXO/4miGAZ2483Rml68kg9EzwOTnUhMz8SDl+TILNSJEPKi+U8+gELVO wl/CyeGf0r8WGXr3G9vBCpt3riK0wmISsgE/WS/0WV0DuDE3s0FteqlN/w4pU6s8KnMh zeMg== 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=CtRzUtn5YlgGEqGNmE5oViuKGD26HTcJD0Q89ujSctY=; fh=vtibj+GmMpyCJdd12mNVNkDf9LGpo3A4DrBbqR/vlUY=; b=LChuSdX2ooZoCwB/U60m6mmJEItBffvKY8OZ5R5uvq3JgchjWTyFOruVitXNbmL4Tq +cD/ysmDqk4adMHteXTRfDhlnMe9f5pS4X1FZ6wX035GkT1NBkNSXmDzqbWHKYFAYSpY UwNStMlJi9qPJwPbw5ux4T+nGq+iQWBOQWyn+JLHmBSTOgZwQBQAimZ9R6/u/sgz4ohY fWyorwzl00wPn3Bxc1zc5rSprzHOCixEqUH/0JfY4IelKLiN08AWH4ThPlcpVpg3iHv0 /CF2XibDpmHzCp8FEwllMds0h2yAKtEd8tugnWBf4WvlVXInkBBY6tFGJ1Hxss5cJBDv 3rDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=DHowmyyD; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-65204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65204-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWHxydjuXQshQ6LuMnJIR0FNnlEZ7g1tLGtPO0npAhP++8BrUxlR9tEkARjV21hSt1t4OxeBwEE2KkrYBJ3PPfz6vsb6ayT551MHDDZew== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s10-20020a170906454a00b00a3d2b7d5e24si898503ejq.947.2024.02.14.04.39.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=DHowmyyD; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-65204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65204-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 CCDCF1F2374A for ; Wed, 14 Feb 2024 12:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FA5453E1B; Wed, 14 Feb 2024 12:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="DHowmyyD" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 1EE53537FC for ; Wed, 14 Feb 2024 12:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707914301; cv=none; b=EFfVDNpNF/t6ANx4PWl4P0PUk5g1uPis5QITymTq/igu9TNUM1LWrjgi0igxzaoXNOXKtteccj7tGJsnlpRUnuNwyPYbSUmp94S5DEBvNtZEiwpyHcajVtJ49alIY3IkXzXa2yuZJ3H/j2U+FkhyAUjnKQg+jZrZN16LMGSN2ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707914301; c=relaxed/simple; bh=c2+76faT1dINMScpmeF2F1CzQBtl7c0GReCrzYb31Pc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oYKEZSZ1PZZglkgkdP4SwYh3g2srXN2dqTaqlIoZKqHouGqgkRIXgI2b35jpIRUdSHGVhphzuDLwua2LNT5vy3zVW3oqiY+VCnkNxKQ9aSgBASYVYn+Zcw7PKEW87rjkEQE+IfS2xp6oT/740yVtqIOveUmDjYK/OJqUKJei2fs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=DHowmyyD; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e0a479a6cbso2235277b3a.0 for ; Wed, 14 Feb 2024 04:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1707914299; x=1708519099; 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=CtRzUtn5YlgGEqGNmE5oViuKGD26HTcJD0Q89ujSctY=; b=DHowmyyDEHkxsIMMpPhLpPVnbetZ7o+DifFSlfGGSj5LKLlA/s2w8hxgCE7yxQMX9j MTUmlWgcQJcQOqwCRKuoTtHCTIc6GdVG4xPbHMrc8gFXOzhdKN3CWR05QMla0JKe2c/m dqe7rWOkBDx4rYGXcWJ6se2coi5DxLRlq1ES8DVn9kcw+DKLfOqgs/1FWzJQaGcv0loQ OlDC55sC0vxuAFOKzo0EMd5yLlHmzcPNREewYpwzxGHO5YIXun2v4lEq1hc1qHT6zWHC LAGeHt9WKEm+B7kzOTVrraygsqNYQ4JAp4B3Jctk+Tyq7nWNJadLhWBHKP87LeOggVYN E0VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707914299; x=1708519099; 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=CtRzUtn5YlgGEqGNmE5oViuKGD26HTcJD0Q89ujSctY=; b=Uwz2Pmj1UYUq72q4pqrynCl1+xV4GaSXQJV7dVBZT3qDiqaVYwqDxVU98zVrVNjbsO kOXcFjhOcI+mRoHFT562JPGsnHKr3xxudBwLBkpMh5bBT/8ujGlKAISmAiHRMzn9Ir5C FEmK429zAJR5g9AN43xLU5hqIfEnqWzbza5tfxgg5GBUyl++46rwAAkhp+NNmwyoRCAk yXN6PFEjKMWAO1FAS7QNmkdI10W2rXJ3Ehaj/caWtmUJe+awkKpQJ9NqTvC09W36Mz62 98uVYQ0hM1Ije/eLHEXi8rAIi1c8/huUHz5+836oRqMgj46Ffj2dm3vRB2rR+L7gFF1l efXQ== X-Forwarded-Encrypted: i=1; AJvYcCXXq5tfg1xbZ3gZpYwfx0y7jvZ1YFZSv06X3jH8haFcOGD06PoBisqwA8t8lkJ7k3ZYpSqDnjL1xSaYyTu/XmAM0RUdEKcd3eX/KnNQ X-Gm-Message-State: AOJu0YxJcDYYfRzDrDd9IcgDNIgQJWKzYRmd3XDcBIIKUKfD0ZUj2Xys AVgwGUoO7B1Yj1m96eemhq+VmO5cTQAKpyTXTDzKFP0n8eHWyDnyvuHrJ1dZqsw= X-Received: by 2002:a05:6a21:1644:b0:19e:cf31:6a04 with SMTP id no4-20020a056a21164400b0019ecf316a04mr2855300pzb.59.1707914299363; Wed, 14 Feb 2024 04:38:19 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXrXT4KToL9IgoHVlEatzhhCjqaY+aDf2dj3WXtREaMV4mVz7xD/BsynLgPAcDs1YDjmE60t4dut/SjiWkhbTvOevleB2YNKNZYIS19SAmNlE2hgyLgJhuLzf4qm1iogqAQxnKViApc+lYzuksXCv1knBeeRikj8YvcIXPoBUqJwAQzDYBhZwDXGkF5pQvyOMUj5qPsY2GGzZ81gTzJ6hteOMyADmeptjvymrVt6NED+ZuDq9a1Ks+rj8snJcamLctx8azbCwuMgKAr3SrDpJAGu1O411FkkvGCSFbB3bsz6Q6CTd8Oxqd4gaX7coarmV/Ix2htiWKpjx3EXVWnO3m+jbPNad0iid8txVbAZu/3P31wCiAi8REn65ISTwSDmI6/XM7mgZ/a3fDMXFQc8buJ4+f0iw4Z+H0YQ3JZ1IWCooM3JsOmzkeOv1Ny6A== Received: from anup-ubuntu-vm.localdomain ([171.76.87.178]) by smtp.gmail.com with ESMTPSA id o20-20020a170902e29400b001d9b749d281sm3041419plc.53.2024.02.14.04.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:38:18 -0800 (PST) From: Anup Patel To: Paolo Bonzini , Atish Patra , Shuah Khan Cc: Palmer Dabbelt , Paul Walmsley , Andrew Jones , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Anup Patel Subject: [PATCH 3/5] KVM: riscv: selftests: Add Ztso extension to get-reg-list test Date: Wed, 14 Feb 2024 18:07:55 +0530 Message-Id: <20240214123757.305347-4-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240214123757.305347-1-apatel@ventanamicro.com> References: <20240214123757.305347-1-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The KVM RISC-V allows Ztso extension for Guest/VM so let us add this extension to get-reg-list test. Signed-off-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 9d9c50b68207..5429453561d7 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -73,6 +73,7 @@ bool filter_reg(__u64 reg) case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZKSED: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZKSH: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZKT: + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZTSO: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZVBB: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZVBC: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZVFH: @@ -436,6 +437,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg_off) KVM_ISA_EXT_ARR(ZKSED), KVM_ISA_EXT_ARR(ZKSH), KVM_ISA_EXT_ARR(ZKT), + KVM_ISA_EXT_ARR(ZTSO), KVM_ISA_EXT_ARR(ZVBB), KVM_ISA_EXT_ARR(ZVBC), KVM_ISA_EXT_ARR(ZVFH), @@ -957,6 +959,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zkr, ZKR); KVM_ISA_EXT_SIMPLE_CONFIG(zksed, ZKSED); KVM_ISA_EXT_SIMPLE_CONFIG(zksh, ZKSH); KVM_ISA_EXT_SIMPLE_CONFIG(zkt, ZKT); +KVM_ISA_EXT_SIMPLE_CONFIG(ztso, ZTSO); KVM_ISA_EXT_SIMPLE_CONFIG(zvbb, ZVBB); KVM_ISA_EXT_SIMPLE_CONFIG(zvbc, ZVBC); KVM_ISA_EXT_SIMPLE_CONFIG(zvfh, ZVFH); @@ -1010,6 +1013,7 @@ struct vcpu_reg_list *vcpu_configs[] = { &config_zksed, &config_zksh, &config_zkt, + &config_ztso, &config_zvbb, &config_zvbc, &config_zvfh, -- 2.34.1