Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2537012rbb; Wed, 28 Feb 2024 05:11:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVzQxJQVexO7ygapl0HYAcCOuNpf2kyxxaO7zl2hRbpfovgB27btrGN7WXI0zfixyyHUVVWRiacKWApICfNXtLsghu124OUtccOsP9YGA== X-Google-Smtp-Source: AGHT+IEboTva5wYp6nhXDjgEKZhkq6kxhsrRuDLoM5tEhrjscS0YQxKR8EnJR/TIbr1atlxgTIO+ X-Received: by 2002:a17:906:3b59:b0:a43:6cd2:7a27 with SMTP id h25-20020a1709063b5900b00a436cd27a27mr5620744ejf.19.1709125866337; Wed, 28 Feb 2024 05:11:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709125866; cv=pass; d=google.com; s=arc-20160816; b=zpSuO7wpArbtCde6rGipY/gpiTaOsOFOvmNrAz5SwF+L9S/1l3j3nDyQA7SIx33zSt dDPJg+IpbhjQ8r1HvhgVLOKX96D0jaFindrj2jFbgz+fmKUWeenggLhVelFpIe2q7Lk4 9p/xhbCHZA61f9tYgk3fJ9GFuErdsabOf8pew9KK/RAr5/pkBBqiHZJLTE3ZeXPfA3QF cAF7fEWo8NoXJE3ILU10FrR4v5HfFk693bYzvvwiYfHeRQpeadF6KOMsrB58Hc2HRuKw t17Iz30iqjg/WNuirsZVVKA9DUDC4jqS/Wk9+P0Gm5yEdTBtuWwu5hUJCHpurT5DYYli SHnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=q2NAebkb74PRN2BzyJL1cyLz7aGeJCOrEFsttYow7lE=; fh=IKDZ0rMn/w1PnAAiSnvbd+bxRIDrb3gesUty2ZqEIHM=; b=qS0U5He2D0k1J3bhRJYxY6Kn8ndSxRxDqGoDLvSfDu++stvnUQV+snW8pu2rmVfiRG v/qn9Ely2vQ+zLvRoGGPrzoIkOHCG9GKYkqfnwlXBz/qu9lcDARrNmzEYpKbosnOhFvS JT1E232Zo+mBde1YG9GR+CiVbEHLn1NAQVSfYSB2M5LZimhkKnuU0PEwpxQhAvemo6xB oud9RJb0BsvgHpnK+Wt7HRZn+Etu9YwCSC2MeTcTf2yWo8ADg0h6VE4/HUKXKmBxIDZL 7v564UeIyaJbaQTcmW9GRwYGOH+J6yiBytuTxbYRFT0YW9P14xDtl+HoaZlPhLPYNbWq P3bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=SfoL4P+F; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-85071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85071-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f10-20020a170906494a00b00a4418a2c6f5si185891ejt.678.2024.02.28.05.11.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:11:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=SfoL4P+F; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-85071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85071-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 1BE621F27464 for ; Wed, 28 Feb 2024 13:11:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17A3114F995; Wed, 28 Feb 2024 13:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="SfoL4P+F" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 6B4A214EFE4 for ; Wed, 28 Feb 2024 13:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125833; cv=none; b=G7zcbIlF8iCVxTMBm10iHICh3AZSn4joUlNKu74WelX0nYe8H1U7Qg90YFp722BwcDQubTlHwS47YhCrwfebkAIlFoVvuEUWdufKbeF9S4JH27W7q7rnAlUv9TtK3Se7jI1L7JWz7aB1uyJ4W+mWbGEV/EJZlSprtCWRasUudW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125833; c=relaxed/simple; bh=y+XQ8TER6IUelZZXjUiPLMXBHKScWmB2tiHBXkIHb4k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZrsK3H+IpSjAc1i1KttE6Bt3NFiM8iaZrMDAwddUdinXTDQ+sazwXRyvQlHgcTZ+KYzgfrD6Wd+bwfg0jQFRvH2BnKLdlUIgYNHTPLU1vOtCGr+8lnAKhq+jufA6bUPG6XSdj8+tfzHWKumyMgaw9fFrNg3FJDNpyyeT2lMgiGc= 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=SfoL4P+F; arc=none smtp.client-ip=209.85.218.53 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-ej1-f53.google.com with SMTP id a640c23a62f3a-a3f4464c48dso657247666b.3 for ; Wed, 28 Feb 2024 05:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1709125829; x=1709730629; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=q2NAebkb74PRN2BzyJL1cyLz7aGeJCOrEFsttYow7lE=; b=SfoL4P+FPplg00DH4rhlv5mX5o+wIbNBKxndiTNqLidRcd2Qlfu+5dJntU5/XK94vT YUqsMv57EpW5+Wbt0A+jbFJHWgf/pzxKQ2IV2PZKtD4VCPGBeeatQpNmicVapDUKGwTO P56rfwNo0tuB5bYhiCtLy4xB7Hm0z85DLLXvQyIsuubAh5S82i/PE7obdGmLLuyEhQmO 286Ehtno8UPieS6dpKQXsvVBd4W5lJKQ/L5W6T0prMUrW70LoINRdfgOn5XQZC+1iIGh J7y73HRAfdW96p6XtWnG6yUr0HScGKnJQapPqQRU9IHNRgh5msnfNvSAY4gMJpBVeghn mOrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709125829; x=1709730629; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=q2NAebkb74PRN2BzyJL1cyLz7aGeJCOrEFsttYow7lE=; b=XLVRnP+wOYU/eJLmt5gSdlFf10Q1ciK7QsPJmC/Pb9GjhApmFQG/waY0WHEnb2HloH 9QPwYFdFX3RtmJ48VVS8ADD5GFvRfGsGuOATe8Q0q3ylpiIQgWmwtTNwQWDTgP0D42e3 9CzHzei4LtIaKw/RXLrGBO4fnagnZ+epvmfB2kgJpT/5zsOQ6OLRgXwgrAISYQJleEUJ z2PT87JUrSAywT9PfR6TUIWCMHttX3O79Z4aT3++nIaLtlcrTRWuZ5FWaLVoyMkDEu9N glSlHQAgOOM6p1iJPrguBNO7640XSI+OyxKRZo7e6rtvSTwFGKIyAXSQLxR3l8uVu+gz beZw== X-Forwarded-Encrypted: i=1; AJvYcCXCpCjt1kLzLNr/toQS2fWFNSY++dVv/8E04X7ZeQ4xdJ5snTtPWaodlKPFCw1MLDMH6GtbD0FbOS/fDQPpCmdWqXJ9d64SxgzLrDsp X-Gm-Message-State: AOJu0YwSN8XTr04Ew/1OqdS8TgONRATzgpKu+1CLcHfcNq73mr2bCpGI LjqgSxitsKUBnUARv7Esw4SZWfPxvWsEwITKdvh7qNb3En5J+93j8PkhYMqMYlE= X-Received: by 2002:a17:906:c305:b0:a44:21c4:91b3 with SMTP id s5-20020a170906c30500b00a4421c491b3mr105263ejz.44.1709125828798; Wed, 28 Feb 2024 05:10:28 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id i25-20020a1709063c5900b00a3f596aaf9dsm1851570ejg.26.2024.02.28.05.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:10:28 -0800 (PST) Date: Wed, 28 Feb 2024 14:10:27 +0100 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Shuah Khan , Palmer Dabbelt , Paul Walmsley , 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 Subject: Re: [PATCH 5/5] KVM: riscv: selftests: Add Zacas extension to get-reg-list test Message-ID: <20240228-8f3f6703b3c14ceaf169da3b@orel> References: <20240214123757.305347-1-apatel@ventanamicro.com> <20240214123757.305347-6-apatel@ventanamicro.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=us-ascii Content-Disposition: inline In-Reply-To: <20240214123757.305347-6-apatel@ventanamicro.com> On Wed, Feb 14, 2024 at 06:07:57PM +0530, Anup Patel wrote: > The KVM RISC-V allows Zacas 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 5429453561d7..d334c4c9765f 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -47,6 +47,7 @@ bool filter_reg(__u64 reg) > 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: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_SVPBMT: > + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZACAS: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBA: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBB: > case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBC: > @@ -411,6 +412,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg_off) > KVM_ISA_EXT_ARR(SVINVAL), > KVM_ISA_EXT_ARR(SVNAPOT), > KVM_ISA_EXT_ARR(SVPBMT), > + KVM_ISA_EXT_ARR(ZACAS), > KVM_ISA_EXT_ARR(ZBA), > KVM_ISA_EXT_ARR(ZBB), > KVM_ISA_EXT_ARR(ZBC), > @@ -933,6 +935,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(sstc, SSTC); > KVM_ISA_EXT_SIMPLE_CONFIG(svinval, SVINVAL); > KVM_ISA_EXT_SIMPLE_CONFIG(svnapot, SVNAPOT); > KVM_ISA_EXT_SIMPLE_CONFIG(svpbmt, SVPBMT); > +KVM_ISA_EXT_SIMPLE_CONFIG(zacas, ZACAS); > KVM_ISA_EXT_SIMPLE_CONFIG(zba, ZBA); > KVM_ISA_EXT_SIMPLE_CONFIG(zbb, ZBB); > KVM_ISA_EXT_SIMPLE_CONFIG(zbc, ZBC); > @@ -987,6 +990,7 @@ struct vcpu_reg_list *vcpu_configs[] = { > &config_svinval, > &config_svnapot, > &config_svpbmt, > + &config_zacas, > &config_zba, > &config_zbb, > &config_zbc, > -- > 2.34.1 > Reviewed-by: Andrew Jones