Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5465339rdb; Wed, 13 Dec 2023 09:19:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvQgbmXyO+eNLjGyu21LTBtJVBPyfgCb6wuzzFiTziDrY2VpNa9yEKycNGCH1tygyR9+vX X-Received: by 2002:a17:902:6502:b0:1d0:6ffd:6119 with SMTP id b2-20020a170902650200b001d06ffd6119mr7549251plk.59.1702487994874; Wed, 13 Dec 2023 09:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702487994; cv=none; d=google.com; s=arc-20160816; b=ACrKcW0oxodfy/Js1ptrI9MGRPzKYzWODFyaiPYyu4qv+hutTPbIHRShvKyWCZDbTm h6vdabglgnich1b+96lH7Ds0WOcuDbsbnKOy/VRw3UnvDPPB7Q4rKA7OoJEN3vnf15wl eKxnkQjBpc3Janss4xYhyk8XTGH8ML/Nn8BFW1L8qb8zLrbkCJc106a/gRp810lQaTyC dan71+eJDaQKadED9wzkgHza4d+cxLy9oOP/9J4mNr8JxQrX0gmNuGZ5/pWrHeWjcEak cnH7Bq5hvFOMmtEk9Yj4qfdMFNExCLa+yLZGeMGFqWJZJAPZ9OzcdJ+TTavXFWqYM5mi Jn+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W3BG24W610lJuKV/MW/fbLfcOspFMJtOeERiQaIiRWM=; fh=o6arb0Oc7YD+PvuJ4vL1hcJ9BbY4qApGHA0NMp2kZgY=; b=jrApnbTCkI/cs0gP39snJmYTmgxsWNkn9czOv9xdrKRxP0yYSY/4S1mnRDD+uFeJV8 QtuuUhqqkdCr6YLzgaEP+PQ2LNwdWDIBsW94Vj4+knw+yKTpEKkNuA5zTZiH7dXyQdNi sqDu+WCg3L/i798X5KyBAgqSn4v/GNvJ0j4YHwcurrgBUpx8iVZ0ikNjf0kBTtpqtaAT 0LBk4qqAEraxNmaDPd4penO7Xf97gEMkBjdzEERax1eUBrY4jxQkQpz3ZLrtRU5k8xhb N4pYIRRADFMKY25kE6cE6EKNLjfd+yGZi1WHxcjcvhmaC9PcbtNMh8y5119pzNcSTSOj uazA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=D0KAKx8N; 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 b6-20020a170902bd4600b001d00c80f3b3si9639253plx.280.2023.12.13.09.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:19:54 -0800 (PST) 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=D0KAKx8N; 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 8851B802FB9D; Wed, 13 Dec 2023 09:19:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233722AbjLMRTk (ORCPT + 99 others); Wed, 13 Dec 2023 12:19:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbjLMRTe (ORCPT ); Wed, 13 Dec 2023 12:19:34 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C6A5129 for ; Wed, 13 Dec 2023 09:19:40 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40c3fe6c08fso48132725e9.1 for ; Wed, 13 Dec 2023 09:19:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1702487978; x=1703092778; 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=W3BG24W610lJuKV/MW/fbLfcOspFMJtOeERiQaIiRWM=; b=D0KAKx8N4MOccXzvsRUZwfL8OuCPtt3k7XEY9o9U6Ih3o+HdBLv6i4JjXRresI2HZ+ wanjfnLKZVo68KteA3Zw+i7+NbBdBjEJJEE9vSdH3EUFIkSz+QBF8q/s/jdm7kcHU8R/ gXPfscw1sWibuwuqwo2lwqQxJbXz6M3BIsEVuBJqb79Lqe1LrGNOFebPQ+r3IC7POhRX MK4Wrx23J5YbUz386TcdmtUd318S1eQEvV8IoyskZ3UqEjuI239KKX4WJCQ0mIcLMoVv MUJ9U/QgfjVAndSoKONembXEsWkpKqW9RsiaoVANQgOTkXM47AH4sjS11iY/ItjloGWk cUjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702487978; x=1703092778; 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=W3BG24W610lJuKV/MW/fbLfcOspFMJtOeERiQaIiRWM=; b=K0pi91urBsVu5u2SrftoWsXxG1Zfqunj1do1FpR9yciMU6TCgFC8V+8Kti6TzmCSUk BIKgp/rMBoltwSruW2T4YnVEDmYtS4fSqfuLx4Lqpe43PUKIPV3fdMMLeAVxBhNGQJB1 RXNHK3tH5sjXfik0C3CpbF9dGwn5wU0a/3Ptv5dyYoFSZNV7T/Nz6kBatDchVHVpYuc0 lMWO/uzZQFNpOekXaFOjdos9jqX3hmpUBTcoyT7Ub1b5In6ORwmbFwkIdtjfEMSm3nM9 7XyKS3R6xO5nKFqzD/3Ltgy43lQjeYCfM5iFJRSdLxayJyAEcw81yzw54MYTrEq3xcq4 DdOA== X-Gm-Message-State: AOJu0YyA0FWXTbHs4kbgimBbuWHTfWwNrMbHxt+cpmfDwySjj13gTN5w GnkMMH46LtZSrW+vAV9dWtnkEQ== X-Received: by 2002:a05:600c:4749:b0:40c:a11:19df with SMTP id w9-20020a05600c474900b0040c0a1119dfmr2878247wmo.180.1702487978245; Wed, 13 Dec 2023 09:19:38 -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 r20-20020a05600c459400b0040b349c91acsm23318063wmo.16.2023.12.13.09.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:19:37 -0800 (PST) Date: Wed, 13 Dec 2023 18:19:37 +0100 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Shuah Khan , Anup Patel , 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 Subject: Re: [PATCH 03/15] KVM: riscv: selftests: Add Zbc extension to get-reg-list test Message-ID: <20231213-1082f104e8ba65ee3db6aa3a@orel> References: <20231128145357.413321-1-apatel@ventanamicro.com> <20231128145357.413321-4-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231128145357.413321-4-apatel@ventanamicro.com> 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,T_SCC_BODY_TEXT_LINE 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]); Wed, 13 Dec 2023 09:19:53 -0800 (PST) On Tue, Nov 28, 2023 at 08:23:45PM +0530, Anup Patel wrote: > The KVM RISC-V allows Zbc 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 b6b4b6d7dacd..4b75b011f2d8 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -44,6 +44,7 @@ bool filter_reg(__u64 reg) > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_SVPBMT: > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZBA: > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZBB: > + case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZBC: Assuming this gets rebased on [1] then this line becomes case KVM_REG_RISCV_ISA_EXT | KVM_REG_RISCV_ISA_SINGLE | KVM_RISCV_ISA_EXT_ZBC: [1] https://lore.kernel.org/linux-riscv/20231213170951.93453-8-ajones@ventanamicro.com/ > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZBS: > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZICBOM: > case KVM_REG_RISCV_ISA_EXT | KVM_RISCV_ISA_EXT_ZICBOZ: > @@ -361,6 +362,7 @@ static const char *isa_ext_id_to_str(const char *prefix, __u64 id) > KVM_ISA_EXT_ARR(SVPBMT), > KVM_ISA_EXT_ARR(ZBA), > KVM_ISA_EXT_ARR(ZBB), > + KVM_ISA_EXT_ARR(ZBC), > KVM_ISA_EXT_ARR(ZBS), > KVM_ISA_EXT_ARR(ZICBOM), > KVM_ISA_EXT_ARR(ZICBOZ), > @@ -739,6 +741,7 @@ KVM_ISA_EXT_SIMPLE_CONFIG(svnapot, SVNAPOT); > KVM_ISA_EXT_SIMPLE_CONFIG(svpbmt, SVPBMT); > KVM_ISA_EXT_SIMPLE_CONFIG(zba, ZBA); > KVM_ISA_EXT_SIMPLE_CONFIG(zbb, ZBB); > +KVM_ISA_EXT_SIMPLE_CONFIG(zbc, ZBC); > KVM_ISA_EXT_SIMPLE_CONFIG(zbs, ZBS); > KVM_ISA_EXT_SUBLIST_CONFIG(zicbom, ZICBOM); > KVM_ISA_EXT_SUBLIST_CONFIG(zicboz, ZICBOZ); > @@ -761,6 +764,7 @@ struct vcpu_reg_list *vcpu_configs[] = { > &config_svpbmt, > &config_zba, > &config_zbb, > + &config_zbc, > &config_zbs, > &config_zicbom, > &config_zicboz, > -- > 2.34.1 > Reviewed-by: Andrew Jones