Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp862956rdb; Fri, 20 Oct 2023 01:16:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9SBAcVB+67CakJ5SXl7wrd/Z7KIU4ClgB4CKaJPzegnuXMBqSByl1DR7ri5o1dyJs5asW X-Received: by 2002:a17:90a:fa8f:b0:268:2658:3b01 with SMTP id cu15-20020a17090afa8f00b0026826583b01mr1050988pjb.39.1697789766642; Fri, 20 Oct 2023 01:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697789766; cv=none; d=google.com; s=arc-20160816; b=eMCcYPZjrQgUBNO6b+0XNdzq5fUbuZPeRPNSPeAD9Oh+y1h/GZXVkrqje1txYEAFYf U1StWqOyTDzvtU6/ljl/SAsktT/z13KnzNPLgOIHqHW4ZnuFJWJ3R0oYDAw3C+4rmopU WUFBcE8GQBJLQkvcya0m9sDH4DCkqneQN1v9Hwwcj7u3hP0unDAeBPkXpAVvsdnZtfOI FxHqh3KOfJiiUZ2fv3e8Jj4QXZ3zCeeL2SBgOjCe/mzNTT1N5BoMUCKDZYxBpOzNBno5 c+YKIKykDzIb5mlCXYqxJWbtpfmGxIoIwU1yy/4nkVJfuUuV3wqH7114ef7KVTIoFaiS g8ew== 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=I9mLk3QRlIYO5dYhhdXhtQWG8pCu0/EaP/qTEbU6WOs=; fh=HphsaL+YRSr8xSEjXKGEGNHhmBU1p3niIw2svRX7Lek=; b=IgIfNmVV5ggZOv2afLeAZjzvk1R/tIVCrs6q/PVkOZlOOjBQGKwSsYkFwOmjnw/2Ar r57KKfbxvKHKvrYfFPi/VuWIlD26ux1p6QIg6w6FGnUb7IlenM+F/jZPVPF0W9J+TZYp g839Qtb5BdyM7AwvZP6d952yUOKHvnyAOuXY8h7t5+5F8epd/js5T+eLLQb0YTcGTR1I Y7JUiD2mV0onG9bWAfPHBYRizZL4Y4bTaVnwxanglEcfYpPzeb4qJ1kvx6BU8gbPKrQ9 BuHmajO4AUKaZVO1ecTa2FvawSTCVg6tDFJ8BrIfYWjmYv4zdnL7fWFXCOx/WGjfckpY zcGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=or4kQJYH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id on15-20020a17090b1d0f00b002684bc84493si1532521pjb.131.2023.10.20.01.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=or4kQJYH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 088658083A8C; Fri, 20 Oct 2023 01:15:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235682AbjJTIPN (ORCPT + 99 others); Fri, 20 Oct 2023 04:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235663AbjJTIPM (ORCPT ); Fri, 20 Oct 2023 04:15:12 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DA0119 for ; Fri, 20 Oct 2023 01:15:09 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53de8fc1ad8so697083a12.0 for ; Fri, 20 Oct 2023 01:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1697789708; x=1698394508; 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=I9mLk3QRlIYO5dYhhdXhtQWG8pCu0/EaP/qTEbU6WOs=; b=or4kQJYHBDCG6v6ilXxgAtz/QWahpgm8w3WD6dliDwJT6rl7XyPisP+SdbR6HOXOO6 QCJ6OkaA/d4SvjkcBibK1R39AzHOVEL+gZMEvCZikXGVBnBBiPh8K+t7zju1UbwFgkA2 W1Y/S4LiGQmtprW7ecf/LGKykJAUa9tJRLXLNBFxr2LYnJwbVcc6OMzReC0+oIaH/Zug UmnDjQyvdAHFU9QW2Dr2xiw4amF08b8S167KzAr0dgc7Yky8SwwMz6pWhV5UAXtHk87K m3Bk4DoZGbQZn9VMRt0vsF7INoLyIAJh9yrlBGsVP4RtwwrOah2qiUsamlIA2R6NkYEE DXvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697789708; x=1698394508; 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=I9mLk3QRlIYO5dYhhdXhtQWG8pCu0/EaP/qTEbU6WOs=; b=gKHtpS7fwL8BDpBtdmOWd9wwYboqx0QttxI0T1dBivq0u7apdc+rczmgwwP/FWfUGJ ooG4DAKUMmAq2nM2jnmQbILGyv1ZxhdtX1Ft4WkJA+VnY+jDBJCvXedjXzqIDm5E2vuZ ICh5+RQuscIqTKWwiq6B+SykNbBmg1uZ5nH50Kfjc/LTeTfTT+bRu742KBxwgSGaI9CM HNCNsEdj+uAPhXng9J3lIiawIw34i7IrrC4ItwTPDM/ztk5VGTtW8hDfqUtgFJ5lpSHb i331SxDd5/I0hWwMF01yNcfsPFPRYo3kzgpgulPWI+20DF5edns5Z4pF1MS9kwXCUMS4 pO4w== X-Gm-Message-State: AOJu0Yy7jfWZ7iqaFjy3G6wlHSNoiVjJdZH4Jl8HXhhiIM8gRL1I8Ksa IbzduujklHkGamDQvU/irzV6hQ== X-Received: by 2002:a17:906:ef0e:b0:9b2:bb02:a543 with SMTP id f14-20020a170906ef0e00b009b2bb02a543mr922414ejs.74.1697789707967; Fri, 20 Oct 2023 01:15:07 -0700 (PDT) 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 h25-20020a170906261900b0099cc36c4681sm994192ejc.157.2023.10.20.01.15.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:15:07 -0700 (PDT) Date: Fri, 20 Oct 2023 10:15:06 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/9] KVM: riscv: selftests: Add SBI DBCN extension to get-reg-list test Message-ID: <20231020-825e5e2e7d355330a93f1194@orel> References: <20231020072140.900967-1-apatel@ventanamicro.com> <20231020072140.900967-6-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231020072140.900967-6-apatel@ventanamicro.com> X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:15:51 -0700 (PDT) On Fri, Oct 20, 2023 at 12:51:36PM +0530, Anup Patel wrote: > We have a new SBI debug console (DBCN) extension supported by in-kernel > KVM 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 | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/testing/selftests/kvm/riscv/get-reg-list.c b/tools/testing/selftests/kvm/riscv/get-reg-list.c > index 234006d035c9..6bedaea95395 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -394,6 +394,7 @@ static const char *sbi_ext_single_id_to_str(__u64 reg_off) > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_PMU), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_EXPERIMENTAL), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_VENDOR), > + KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_DBCN), > }; > > if (reg_off >= ARRAY_SIZE(kvm_sbi_ext_reg_name)) > @@ -567,6 +568,7 @@ static __u64 base_regs[] = { > KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | KVM_RISCV_SBI_EXT_PMU, > KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | KVM_RISCV_SBI_EXT_EXPERIMENTAL, > KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | KVM_RISCV_SBI_EXT_VENDOR, > + KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | KVM_RISCV_SBI_EXT_DBCN, > KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_MULTI_EN | 0, > KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_MULTI_DIS | 0, > }; > -- > 2.34.1 > Reviewed-by: Andrew Jones