Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp98522lqg; Wed, 10 Apr 2024 17:19:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHEdGBBmib74jCfVo/QcDlr9hpU/dqUx/8kpxZK5JLL9rpKUfwFFqU6yUlqCg23VItP0NAhNciNfd8B//X8yTn/wragM+1QTdidk+X/A== X-Google-Smtp-Source: AGHT+IG45NOfp+PcI5oK75M+gMXXcbDOP0Lt2+7xaRbCsuxg2WAjsQdLZ1SEmQNQVg8t+53dIth3 X-Received: by 2002:a17:90b:18b:b0:2a5:3aa6:caf6 with SMTP id t11-20020a17090b018b00b002a53aa6caf6mr1578212pjs.6.1712794783375; Wed, 10 Apr 2024 17:19:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712794783; cv=pass; d=google.com; s=arc-20160816; b=ShMCBPaCkbpF/Dh0qmFW48yjtUBwxZnaOsY8dlsqxR3cAH6pDIA3OJeTTSlZhTu0mI PGo70+8YAlw9UM8ZTrhbIwtjaGNeaqBxWb/0rRx2GtV6YSXYBluLhhuPCMaDdb8MDFsS Det4alWDAYm7dWy7m00uvRq3eEWOTBpeqhHEvx8j/RMx32wgCi/EESgQs/U5T12NHg6q J6Na+DHyUApJj0u1He3CfFHNhdqzLyjdGjR7YTTEI0Jr57zZjNurwtu2ST5fh895rbHg IJxru3NqU1kibR6aapRIpPM2nl4J8SIhYS/hgM8pnbn+WIuwf+MveQwuMcTFLZV/YiLC C0Cw== 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=xZMdAGbGUb3Pn/mM6S9aCTNbs+MKWuMa25SVPrHMqxo=; fh=7uqLeoVtCppq77khcWV4OuYPfaFsWAmaOs5IwqZHxxQ=; b=WP7blSF2UME3LiiRRbhXX+mNOg4jzbiMT6So0wG8l7TngbEiPEx5DRjCykIutMBYA0 pJd93eg4xJQExHza4oTSVsPyMaCXsS2QsLDkCQV0uUbpj7tqwOMu0QNiimGcHLkmhxIn 1fR5cXvzNwf2psrLE2aGDWDkkckJQ7nVK00twuZJsJ2W/ieqbdwS7eK/F+vhOfnTjg1i Z1O24iup9zkN/3UA17OCnKpVPgvIzdBT5gqSDoSkrdtjt9mIrfCxsc7iFvWNe27OZ58r x7cdYBJKck++ofXjfIUKS3C7bF7MAXLzWLIkOqsm/Uhgt9iPBb9Z3nM5qjcWG+IGLMQu tMFg==; 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=N7izR4Vc; 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-139574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139574-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b23-20020a17090ae39700b002a2a5398017si326642pjz.184.2024.04.10.17.19.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 17:19:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=N7izR4Vc; 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-139574-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139574-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 CC9A3B26196 for ; Thu, 11 Apr 2024 00:15:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9668D446BD; Thu, 11 Apr 2024 00:09:04 +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="N7izR4Vc" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 334EA43179 for ; Thu, 11 Apr 2024 00:09:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712794143; cv=none; b=gwzjsqxBljfQ8D8LW9C/mN9COLvzztBV400mnagtz6TOoUuqEx1KzDpl57NiQgB/iGCH/JMPUv2EUhMV7p70pl6/WUC0PLXw5jgu40eU6CS/CSNg6uDHs9CPAIO2BcIUg+scPoqdipZf/24yyOCjBOWCpgTK5uXAIskqMxdpBfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712794143; c=relaxed/simple; bh=kGDqdfAz5O6jd2BlwqWEgDKuhCYmFyrLfaexp9eWGuU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DflC5hWQS9ZDFpJZ2bm+K+DfqQqTQq5dM+tOKRsQbJXXhLYTk6oKI4DRu7RsDmVZAoZ55qVU1CYSWBm/DAny0ftH8bYxgFJEpfbcRAS7JETvg3VElMBmJPHg5b6Wa+uwQyyj0gVhSraw8fDeCfrLXA8O0buQEGustGC7wcvy59U= 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=N7izR4Vc; arc=none smtp.client-ip=209.85.214.172 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-pl1-f172.google.com with SMTP id d9443c01a7336-1e2c725e234so2638855ad.1 for ; Wed, 10 Apr 2024 17:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1712794141; x=1713398941; 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=xZMdAGbGUb3Pn/mM6S9aCTNbs+MKWuMa25SVPrHMqxo=; b=N7izR4Vcxres3nY5iQCYxRXWkjvzCTswc6Jukhm2AKYOUjXJuZuEUvBeTvAEGVBaPi cP3zY7bCUAa+M0hTeIO61H3yCDPfQWpS5O5IYY55Ts3W6yMNEAqDstEKaFFAzI6Esbvw cXBfsgiIp1wa32ZvOSwwdLl2glErIrsjXeeEXZapToRJFtYplzSDXYtGd5+c3ba3egs7 s9cV7buVU1ghALy6TN+TY9ryLIQ4tDa0IMSGSMR59jx3NzOy4OyZ3CjWg0PUZZ6pbKVo h0EMqwjAnaW0IXalNyx/EFDNHx2sT64YK5JRqfGdZjkG86ZX3fgT2pOZE3yUJp7+lW+A jy8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712794141; x=1713398941; 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=xZMdAGbGUb3Pn/mM6S9aCTNbs+MKWuMa25SVPrHMqxo=; b=wMpwj5K5SCWUoCK6kUAm0etRMcfOZR5QYGYZ1z2VVQEMb4FJ6lG0kgu8MyWMrlcqnQ rbSNXmeOf1hw2uFr2KGn+hguopx9zkmqjFbSjHTJ/0l8h/5mSuKEOOQ6q0Pr1ltqIxKw yYxz0fxjCjMExa5rza89Z+dCmD48BQuqvDmzvq9ZtijGG73qJ1qx0SWi5QFqP6KOkcpI AtcIOWs0qC85BNLndZpMsNXKw4hDD1GoASjHZwM17VJmF7UrC1HvWyzs48WKZBuUBO/U Fj6uSuNqAfDY1GzhAWw4L8DfpK+TsWBI6rl83b8lPorvOPKQvyyAkWbuuHX8erz62yBm OAew== X-Gm-Message-State: AOJu0Yx8zXDRnhJHObE67hlHeHtzXhzSRAR4T/pIBo6L0NYDA7yWbLIC yi+tW4A0EmYTLdxakCP1C6tjl569Pz3WdOcu9el1KbfVn0iSxgBSvX1lZSZAeHp7Ps9YWVV8beV R X-Received: by 2002:a17:902:e743:b0:1e4:39e0:660c with SMTP id p3-20020a170902e74300b001e439e0660cmr1368224plf.23.1712794140724; Wed, 10 Apr 2024 17:09:00 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id f7-20020a170902684700b001e3d8a70780sm130351pln.171.2024.04.10.17.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 17:08:59 -0700 (PDT) From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Anup Patel , Andrew Jones , Ajay Kaher , Albert Ou , Alexandre Ghiti , Alexey Makhalov , Atish Patra , Broadcom internal kernel review list , Conor Dooley , Juergen Gross , kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Palmer Dabbelt , Paolo Bonzini , Paul Walmsley , Shuah Khan , virtualization@lists.linux.dev, Will Deacon , x86@kernel.org Subject: [PATCH v6 19/24] KVM: riscv: selftests: Add Sscofpmf to get-reg-list test Date: Wed, 10 Apr 2024 17:07:47 -0700 Message-Id: <20240411000752.955910-20-atishp@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240411000752.955910-1-atishp@rivosinc.com> References: <20240411000752.955910-1-atishp@rivosinc.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 Sscofpmf extension for Guest/VM so let us add this extension to get-reg-list test. Reviewed-by: Anup Patel Reviewed-by: Andrew Jones Signed-off-by: Atish Patra --- 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..222198dd6d04 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -43,6 +43,7 @@ bool filter_reg(__u64 reg) case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_V: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SMSTATEEN: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SSAIA: + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SSCOFPMF: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SSTC: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SVINVAL: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SVNAPOT: @@ -408,6 +409,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg_off) KVM_ISA_EXT_ARR(V), KVM_ISA_EXT_ARR(SMSTATEEN), KVM_ISA_EXT_ARR(SSAIA), + KVM_ISA_EXT_ARR(SSCOFPMF), KVM_ISA_EXT_ARR(SSTC), KVM_ISA_EXT_ARR(SVINVAL), KVM_ISA_EXT_ARR(SVNAPOT), @@ -931,6 +933,7 @@ KVM_ISA_EXT_SUBLIST_CONFIG(fp_f, FP_F); KVM_ISA_EXT_SUBLIST_CONFIG(fp_d, FP_D); KVM_ISA_EXT_SIMPLE_CONFIG(h, H); KVM_ISA_EXT_SUBLIST_CONFIG(smstateen, SMSTATEEN); +KVM_ISA_EXT_SIMPLE_CONFIG(sscofpmf, SSCOFPMF); KVM_ISA_EXT_SIMPLE_CONFIG(sstc, SSTC); KVM_ISA_EXT_SIMPLE_CONFIG(svinval, SVINVAL); KVM_ISA_EXT_SIMPLE_CONFIG(svnapot, SVNAPOT); @@ -986,6 +989,7 @@ struct vcpu_reg_list *vcpu_configs[] = { &config_fp_d, &config_h, &config_smstateen, + &config_sscofpmf, &config_sstc, &config_svinval, &config_svnapot, -- 2.34.1