Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2808859lqt; Tue, 23 Apr 2024 02:09:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBWNc9RBGmZ43pEhQ+OfUYcrcXComfYCTYWXT4pGcNFS9tNvVQawW3Us+1UH+dBTsPElSTPy26DrLWW9wRG4J/TddspbcllOpnGS9sRg== X-Google-Smtp-Source: AGHT+IHpfkJLz8OfhyV1WxEf8xMxNLavwfVaHkOqWmXZoFE1U30NwfZfQmo41wuo65wjNJoXaBn9 X-Received: by 2002:a17:903:1c9:b0:1e5:5bf8:5b5 with SMTP id e9-20020a17090301c900b001e55bf805b5mr14010748plh.51.1713863344262; Tue, 23 Apr 2024 02:09:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713863344; cv=pass; d=google.com; s=arc-20160816; b=ee4+sKs2KD3W3Nad3h1fRCdWYOP+JJy8sBZRWmwTTNow4K/J8D0qEzoGuWmLP4FZxy u+6jpekKGQpll8bqe6JjO4EXSrBwm6fMXN28ZvA4QtiCg/PnqBkiNmvjS1eeG8F3re4y BcurVA0bO2QFI5BIpMCs+s5QB4rWMcu9lGDywkZ4yY529o18HFcfYZj0KWFg/7TZ4U65 0DVBw+DzLsWUie0mvoFZ0iMYkkMxsdlbO8LPu3dzFcFWqdDSEOTBGeRlV+XUzGREhq7a qFHqxJMWfmu26EaWi1biZ0iorDFFbpYxWoq5IqA4jJOq7ZuKyNmSyTavNdivd4c9ibjh bZgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GVnq7M3gP7yobuGJaP1mMP30k0mHQ16RQiTUGzRCmdc=; fh=x2vwvesj6wNgXhNq5X1lA1s17OVWTmIVmT/TVJ11qYY=; b=D5HOO924sjX5J/jQz0BUMeLLYxxbvKTvkqJ0S/NQnaz+Z9oWbT38cRXF7Bc5Q/1kQZ 0sj0F3unFeAV8TRRRHRyKNRzY/2cGaRtv8sDWegXhm+4OjdFE3eXZTEJ04u/LVukNIs8 hlBnDCEgzlwFREUdtSS7LpnclY+mMSUnwlDZuvelzHE4vOyRb4cxOsm1rmYQtGJcauei HNAPYBb+Z2hEBDsH86ujStA1vKnoZubyCAiesv9yoV2MouB+SCDmE2FGrdcP3J6ARnLz ZRe9jx2O7JkIkZ4ue+Ny7AzNX76dIMfREa621a0r8v3U0cRQXGc06wypsPcS9iMaE4PE YLzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0m7xbwAu; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-154739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d23-20020a170902b71700b001e4398b9244si5760234pls.133.2024.04.23.02.09.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154739-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=@collabora.com header.s=mail header.b=0m7xbwAu; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-154739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 20827B21FEC for ; Tue, 23 Apr 2024 08:58:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71CA158ABF; Tue, 23 Apr 2024 08:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="0m7xbwAu" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E23F56472; Tue, 23 Apr 2024 08:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713862659; cv=none; b=NP5QlTKfnj5TXWxcDYWCyUFAsE2j+TC7EgpmSgIaU7jOmJDtJpwNfyJNCjEnXzG+MjCr17g2+In1iGnjtt84GxCHfdwthgSL9ts+XFTLevS8MVqUKloQ1gKauf58fKBnknIPXlLj3kvQnA+Ok2XZnYQk2lAUAoiSL5/OHKRjvGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713862659; c=relaxed/simple; bh=8DzYTWeR1MFLHFT73kWX3M2k0VGpj5e6788N1mCfWks=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=Cog/QDUAiWlNRcRTlpgIz3wjUuRWUU0K1MqUo1Zv7ZI+kUX5h9RZFvqYXs/gNFxn2IK1WdTsdgQHAe+EUmU9SHTReB/zksCwufuIBDMxMvYl/KKgXTddkUskTIWH4vm6WUnuBJ2ScEC/rncDnW2auau1Nz3e6tnNLVZuB/StNn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=0m7xbwAu; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713862656; bh=8DzYTWeR1MFLHFT73kWX3M2k0VGpj5e6788N1mCfWks=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=0m7xbwAuFCRZIYDNvnWtD5eJOkrf68SA+gwQQt04r4jJauSM2UG2ME2BaMD3Gu+Qp PkAcVeGivyAlyl9eaiR0AhKoPy8W4sMjKqy8on3ig6xfTae8tzSZ6NKhEvNNigHfSK KR7inMbFiTGX+PuckTGLTXzSDDNuHzR6TRjPOAcBGuTr5l3FkpYyCUzDetm0FKqpKb a8Z9HRooZNI/7CxxXvjvjnpZPNcON8w2t3rxlWlnvcm2b2d0+Epy9jVmAnGGSMCw7U MotP90H7HqrsgrHem01kTEN7yLhX5QYiDm4p+Of5ED3bSzeEYOpR+XoCYl0XxnDk+f e7TmfzPNyxd8Q== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 39F6F3781183; Tue, 23 Apr 2024 08:57:28 +0000 (UTC) Message-ID: <4f4ca27c-846e-4f8a-928d-fa680c51361c@collabora.com> Date: Tue, 23 Apr 2024 13:58:02 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Anup Patel , Andrew Jones , Ajay Kaher , Albert Ou , Alexandre Ghiti , samuel.holland@sifive.com, 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: Re: [PATCH v8 19/24] KVM: riscv: selftests: Add Sscofpmf to get-reg-list test To: Atish Patra , linux-kernel@vger.kernel.org References: <20240420151741.962500-1-atishp@rivosinc.com> <20240420151741.962500-20-atishp@rivosinc.com> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240420151741.962500-20-atishp@rivosinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/20/24 8:17 PM, Atish Patra wrote: > 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 LGTM Reviewed-by: Muhammad Usama Anjum > --- > 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, -- BR, Muhammad Usama Anjum