Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2915839lqt; Tue, 23 Apr 2024 05:48:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXD5qTU8FJGLHGxAV7rz9jwYVXRE18I5NAKHEq/N4AwtJ7PojRekR+WvqNTqNdcRa5jQW1xms3XA4PqR2AqqVs7wArNQWKxvpHXmyxX0A== X-Google-Smtp-Source: AGHT+IE3tzAl4ipxQPjgMTEhYgge+iEYZ2+N4gWF4DCm7moN++PKTQwQiyLixgaHCjXUwLMVd1Cg X-Received: by 2002:a05:6a20:728a:b0:1aa:a6cc:39c5 with SMTP id o10-20020a056a20728a00b001aaa6cc39c5mr19852249pzk.7.1713876530657; Tue, 23 Apr 2024 05:48:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713876530; cv=pass; d=google.com; s=arc-20160816; b=kXM4Cs8QPYSfKV4Oxpn4LQrdFisYMbWLIGjYBVNhtIvDPz46D1pvmhBnnV6WatTLvQ Csn725nyNmkFPHctHT8z576FLgOex9ZcogmXAMI3rk/UhK+97BInrAx3C9Sdqrh9H3xJ IkgAmpWoc3UVI2xOp2sO3TVebYly3F/46pWwPefktCx4E4/d87Db/cxKtHOb8uhl4ipQ VIJit0l/qasM4I3Aa5/uRRenR01Mpt3Lpax31pKhdvsWDxUGvcNvTlZ7qA3WTUW5Nag/ x3zRGlDGGKpyZ1DfsR4fvLmAbABOmOYwitWMNif4To3gDFKVuzjnWU32o11cLJIM1cP9 kUVA== 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=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; fh=0R+YqgD6KjRSv6gYxvqnUhHoZdxY5DE2YQSE9UGZBnw=; b=SKbkWV/9vUqU04XqMLt8r+l8m3XswIwSg2/vi5xZ64hpwIwXTjNpyat3JnQAAUrq3j 497hHWn5CvNE5LWeBbCSXL5xAG277Pr/bAsyGCkZT9YSFpYeTpVmKXtDGMvE2zsIj6w9 20gDSje6gPR6XZwTC318TkIBAu0PKkUyCqxS8V1gejnmwgyLNN8OJ9Wh5Ir0+2PC+nln 9ffV0SfMPwOfIdH7Jqw2WiJDax0AcJo3w9xvZiLkszXkKm0sf8VgZ+ygAw5TADWaTkgc u6igIN8jq3p4nYIi4ey8PyUJQyp2kThr5Fk7a6QJaq98srKq/5+ygD2I3a40rFnqjF9B XtIQ==; 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="c0HJG/46"; 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-155206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155206-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l27-20020a63ba5b000000b005f7d3d4bd6bsi7842100pgu.476.2024.04.23.05.48.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="c0HJG/46"; 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-155206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155206-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 383B5285A20 for ; Tue, 23 Apr 2024 12:47:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C179613C69D; Tue, 23 Apr 2024 12:43:58 +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="c0HJG/46" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.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 77C9E137752 for ; Tue, 23 Apr 2024 12:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713876237; cv=none; b=i3HY7bSoje1sL8IwAsIW85s6ViKMTF4uFEHWMf6SwJ8sLKI40USb6PwoysoLlzXPdsgbT19XzJcy1Dg8in8Lw8RglgMugUlZyujq6yLp/igWJAfk52lbd0PyUwFWqj4dAthq3Ru61iu+fb6Fx5rq+33rpuVBTYlKh2LuRNVdKEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713876237; c=relaxed/simple; bh=x/hf7mR8S0PaebbZDXn5tmxtag3p7rdZEs+HYwpAhAM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XL+YkpoRJ5M771R5ePLCykeOEOXzGAymewO/eHwXreJH2Sq66FA+dUnRnlUdHwBTL2CcR8EwsxTXZhY9KJruKKkChLCUXNCAZ4J5uSRLoWbTQuuP8tRh9f6brcfEgHkPiTr50zOoBUJSYeTr6GlhNaOy/iQOqs6s0hM9hfr818M= 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=c0HJG/46; arc=none smtp.client-ip=209.85.221.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-wr1-f43.google.com with SMTP id ffacd0b85a97d-34b39ecbcccso320562f8f.2 for ; Tue, 23 Apr 2024 05:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713876234; x=1714481034; 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=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; b=c0HJG/46UEBYR5Z0n65OufLseuB50Uz2AZvU3SEDbWCQGScxpvbo5Vmnas64iByAr5 RBydDyNgdl2o1oUbrEKCRSmfIryW8X3h1DvjJwcIlJ01+CMxl/i/tVk2U63pVjq8LAAx 8viQNdeECkLLHJGUr2F8GIDCyEL0Mf11BWYx/ObTBe5/ukE0o9SrhQjQpSvgPkKm+CuC ijTeTPLpb1r/RVP26LNIGlW3Eo1h5Lbk73T7o5m5h3e+Z5kMBRl0GRmjFePSnhssOXEu HQoE49DXfuROY24ftH5Vv4zsRl8mUibu+BLoua2RZijgo3q3+jIoarDvlnM0ihqfpzgQ U19g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713876234; x=1714481034; 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=OClMR/8Jm3sCmLbe455uZIaBUTeeLegIVNx5rAADYDc=; b=wwT9wXz+N9bu8fMObjaicjf2h4nqiib4MV/snkQrqSl6hNfPO/41VDuPI8pVrI6aTM FLyo7mOR3ERow3zvcDHbHqmNXmhROruilKwzbny4QSIp7+QEUXmVqAK6OJUUASWSkVNg tAt67QRxMFjhlxDKavKAbPiI0Wh8SSC3YZo4NayEdfey3mhPmPLMhoSX7FK1DnsjFr5+ i9w2zaE0SxjwL5FQ2Y36I5fsU4BCKp+cr0nKvJO8CWQ1/I0Od1Z6CYYXYhUGHVnaeBFo jheTljqzJZnu04J/+/R8Z3oDkOIrCnoq7qi3SOEAhn5oMLUXQK+eCjO5MAUIvL4THKa1 VD0A== X-Forwarded-Encrypted: i=1; AJvYcCWVG8QeFQ/ruRjZ+tKJ3gVIaFPLaT2uTgSVQAPs5b68MjekTIsifA6tjXm0R8U8Gace5w0PGwmmT7ZHImL/4wjbco/FtF12IzIApM3h X-Gm-Message-State: AOJu0YwtUM04Ezc/2fhrT1XGUOCNzXPZhNvhxdlAQuSKxVon7Te/u1f3 TYk7RyA+sQJJmG5F+b4KPxxEUugyzOCOJMSvGVsCWWmKrfd6YAXqwE78NHHrq5I= X-Received: by 2002:a05:600c:1c27:b0:41a:c4fe:b0a6 with SMTP id j39-20020a05600c1c2700b0041ac4feb0a6mr1112594wms.4.1713876233977; Tue, 23 Apr 2024 05:43:53 -0700 (PDT) Received: from carbon-x1.. ([2a01:e0a:999:a3a0:71cb:1f75:7053:849c]) by smtp.gmail.com with ESMTPSA id v10-20020a05600c470a00b00418a386c059sm19975709wmo.42.2024.04.23.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:43:52 -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 v3 11/11] KVM: riscv: selftests: Add Zcmop extension to get-reg-list test Date: Tue, 23 Apr 2024 14:43:25 +0200 Message-ID: <20240423124326.2532796-12-cleger@rivosinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240423124326.2532796-1-cleger@rivosinc.com> References: <20240423124326.2532796-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 Zcmop extension for Guest/VM so add this extension to get-reg-list test. Signed-off-by: Clément Léger Reviewed-by: Anup Patel Acked-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 61cad4514197..9604c8ece787 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -59,6 +59,7 @@ bool filter_reg(__u64 reg) case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZCB: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZCD: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZCF: + case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZCMOP: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFA: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFH: case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZFHMIN: @@ -429,6 +430,7 @@ static const char *isa_ext_single_id_to_str(__u64 reg_off) KVM_ISA_EXT_ARR(ZCB), KVM_ISA_EXT_ARR(ZCD), KVM_ISA_EXT_ARR(ZCF), + KVM_ISA_EXT_ARR(ZCMOP), KVM_ISA_EXT_ARR(ZFA), KVM_ISA_EXT_ARR(ZFH), KVM_ISA_EXT_ARR(ZFHMIN), @@ -957,6 +959,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(zca, ZCA), KVM_ISA_EXT_SIMPLE_CONFIG(zcb, ZCB), KVM_ISA_EXT_SIMPLE_CONFIG(zcd, ZCD), KVM_ISA_EXT_SIMPLE_CONFIG(zcf, ZCF), +KVM_ISA_EXT_SIMPLE_CONFIG(zcmop, ZCMOP); KVM_ISA_EXT_SIMPLE_CONFIG(zfa, ZFA); KVM_ISA_EXT_SIMPLE_CONFIG(zfh, ZFH); KVM_ISA_EXT_SIMPLE_CONFIG(zfhmin, ZFHMIN); @@ -1017,6 +1020,7 @@ struct vcpu_reg_list *vcpu_configs[] = { &config_zcb, &config_zcd, &config_zcf, + &config_zcmop, &config_zfa, &config_zfh, &config_zfhmin, -- 2.43.0