Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp576662rdb; Tue, 19 Sep 2023 04:27:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx9lBXpz/20dWG4tM5eKuBuShSQudJh2eqW6TvkA/15ODGJjyqo+TGmTKBwXOD/uqYur/l X-Received: by 2002:a05:6a20:1592:b0:153:7515:9919 with SMTP id h18-20020a056a20159200b0015375159919mr14905753pzj.21.1695122879554; Tue, 19 Sep 2023 04:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695122879; cv=none; d=google.com; s=arc-20160816; b=NN1KkAwjlTxayn5n2ANR3UQ2WnTUHHtXEL87E1tanebyA1dDTjJtMmWSGCvJeQDsUE GOwFZY4ghzVRwmrQDXEXs0KoGAeoNDnxOH17gxNrW8i6DzVwTiRorBAjXBfjYwhWBn36 UH24N9Dq/HGIha4UUhJmJIswrMSxDvOb1m4j7RTXl9khqjFvc0I+APXjeKkXGk19Zxpe RjUkGF7xdvsHO4NA4ds44Bt6AeuqLaEJpNJgY4GldSduff7G24aS+SUmL81pC/d/8Bkn I7hHj7Ex97dROAxxiOrhKOE2Jye3SG8PenXFZcFhHFgxSEtsccmfq//1UUVe7tGYbmkz JsNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F8aNxqk/Fio7uz5AQcGG5V7O/R7HCZdIqvfTNBjv5gM=; fh=Nnw/Dw3prVIT5KLOVQO3DcS15zu3mo0yAEjXPL5Uo9Q=; b=zNvpnXStJL+k7Z9fRki8PZAqZDbbleb+etXG56QoJI+2bru2omL2l/e7HyadUCo7go Nwp3/CAN440ZOFNgHg0qnqP9kI/SiXqP7ALuxMZ2S18jz9WRNL9ANg+WdapvJG9/BXav fpCznL1IB76eaNYxnXFxN6HwLiXJdlWSde8/asrGfnvXCKuRg2ofU2j/ywTWu4qz6OZ5 gzv8Yt2ErESdFGiqaTr3ZzZmdHo0+kAsLzcZcwMeQZ3g7HuHYuTG4SSSXxYmdO2FwFz9 7UYlbVw+OYKk2YmxsoxnD2plyDcQx3ncw18AWaleG2ahst2nYgFP4OwFwr7cePofNb38 sS/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=R53BJzpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v16-20020a17090ad59000b00263eb5054f2si9258927pju.105.2023.09.19.04.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:27:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=R53BJzpD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 43A03819A696; Mon, 18 Sep 2023 20:55:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbjISDzQ (ORCPT + 99 others); Mon, 18 Sep 2023 23:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbjISDzD (ORCPT ); Mon, 18 Sep 2023 23:55:03 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF9CE41 for ; Mon, 18 Sep 2023 20:54:41 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-274928c74b0so3167847a91.3 for ; Mon, 18 Sep 2023 20:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695095679; x=1695700479; 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=F8aNxqk/Fio7uz5AQcGG5V7O/R7HCZdIqvfTNBjv5gM=; b=R53BJzpDqdwq9Yn3bRu7+0S41nDwtisEOCg6gjrqHqMHW/D42vT3W7QBctOF27UdL6 28F/YKFsFRiz5erDk+2Xfq9TT/fxF7gkllP2zhr2Tbh2Cte4DXMBz9NzdIDZ2nBwhDgf rSk7knd9TFK0h6fvHeGEkTVdNwS6ohLqE87n3K21ynnN47gcRbBtKUImSXWjrAK/+a3L PLZO/r1B5x/Ffk12pusWO8Y39GTLks0r5+j+T+/5K71XCdGmgD4tw5X6vEo27ZI9riIs EWWv5KoOd+tNasPpgtFLTVrAaZk2+HFF0ZHpikj5TbC8ig1/GUlogT84NcmlAP0zMwRR 8wqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695095679; x=1695700479; 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=F8aNxqk/Fio7uz5AQcGG5V7O/R7HCZdIqvfTNBjv5gM=; b=OGls+KAdoyNRRRivO9ow0I6sa/rimH9PbKephqbYzZ1ZjJW/GgZfaUUSgc0+hOyAYi A9reVNfOObOlizQL8/kAGHIPF/gcfGv3aXi/SZS5cltsHt8drB0pdjtfrrtI/6lh0dv5 CcxuhA5Ji9oIzmaD0r5vhGObKza4XNtItX8anYWQUbMe7uz48+2Aeh5UO2b48nkF9eEv tTNZUe9KzRdLA9IeTJ2y4nU/Up+7jk67SWiPCGUCd+hgkW5OUIpQ/FAl77xjOW1ZVMAa qL0UEJXUqSRslbcxHGGD+i8ZvE6F8WVpdGCoudogWQTohBDSFSWhbsc0zMUYmdpkFxlD x0yw== X-Gm-Message-State: AOJu0Yxi5/GGfKFsrAJlCCpdJdt85rTgmkBgdV9SLbBZ9h9Y6KY3KkCd 1USESo3ANUyGgS8lLeEjiaRTog== X-Received: by 2002:a17:90a:5901:b0:268:b7a2:62e8 with SMTP id k1-20020a17090a590100b00268b7a262e8mr10313711pji.7.1695095678874; Mon, 18 Sep 2023 20:54:38 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a034300b00273fc850342sm4000802pjf.20.2023.09.18.20.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 20:54:38 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Shuah Khan Cc: Andrew Jones , Mayuresh Chitale , devicetree@vger.kernel.org, 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 7/7] KVM: riscv: selftests: Add condops extensions to get-reg-list test Date: Tue, 19 Sep 2023 09:23:43 +0530 Message-Id: <20230919035343.1399389-8-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230919035343.1399389-1-apatel@ventanamicro.com> References: <20230919035343.1399389-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 20:55:16 -0700 (PDT) We have a new conditional operations related ISA extensions so let us add these extensions 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 9f464c7996c6..4ad4bf87fa78 100644 --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c @@ -50,6 +50,8 @@ bool filter_reg(__u64 reg) case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZIFENCEI: case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZIHPM: case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_SMSTATEEN: + case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_XVENTANACONDOPS: + case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZICOND: return true; /* AIA registers are always available when Ssaia can't be disabled */ case KVM_REG_RISCV_CSR | KVM_REG_RISCV_CSR_AIA | KVM_REG_RISCV_CSR_AIA_REG(siselect): @@ -360,6 +362,8 @@ static const char *isa_ext_id_to_str(__u64 id) "KVM_RISCV_ISA_EXT_ZIFENCEI", "KVM_RISCV_ISA_EXT_ZIHPM", "KVM_RISCV_ISA_EXT_SMSTATEEN", + "KVM_RISCV_ISA_EXT_XVENTANACONDOPS", + "KVM_RISCV_ISA_EXT_ZICOND", }; if (reg_off >= ARRAY_SIZE(kvm_isa_ext_reg_name)) { -- 2.34.1