Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4560616rwb; Tue, 8 Aug 2023 10:08:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMArkBaetsVYpfmcotfqy4aH6C1lydk+Px0Fi34xA45GoLhUyqEOjr8eBVBMjYjIRg16hq X-Received: by 2002:a17:906:32d4:b0:99b:4bab:2839 with SMTP id k20-20020a17090632d400b0099b4bab2839mr160438ejk.55.1691514538269; Tue, 08 Aug 2023 10:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691514538; cv=none; d=google.com; s=arc-20160816; b=gptqn4LpU3SzNock7awjfw9lI3ThWTyH8ZbDQkwE9YQARRd/ot4htyC7mhe14inm/b XALYKraKWRBmoWTLSfTOlDKxUpdcmKgjloRmN6lzJNcmNR1JSG8RITv18ydNCFjDrBV4 vIjEMiYZ6ULpCJ80A9vvqfGjfkwX+8c8dpqIn5txC7X8EDpKNRPPp6GoG+AcIWZ3LhCF Ba6Aq36JjssBYLArBPkHUYppyGeYAP263rLIZyCLs2WU3N720oJLkGtYRQGOPerPg6G8 08eFTcssGFM8te9av51p/fKgSQ4BctsPJAaHn46URdh62L7Q/+DkuBTdGzAprH3g5ACP q+Kw== 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 :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=wNymjethWCXUoPztL38e7AvYc4GJ36v196iITJQz2Ug=; fh=+o7GObUG2cDSVdExYZKlyH02PamcIM6g+thXFhLiIWY=; b=TVQAjoi+wJ1o4TJEcfNSlbrHGozl6vT2ta3HNbqKO7GvsVPAv+n8C9IVgddw0xzKxF JNwM5X419vE0VIjCjksGhAinGaM4Be6RcGoSF3wOH6TmiZ3kweeo8tpPFd2rIqE+q3NY K+F/o11gQ6sDxolAONsBSkUHvyCQDKvEHIqBA0Q75KNr0i/Bbm/196rLyDid4wzgbJHI DSetQSASw0eCh+o+LinAVQzZFevjIap5CRCTW16ZwTXgKCU1ht+n4tvQ+YoyvRxTZHw1 JfSCMq8iVQCe9frmlkehQZFE2IO/QEkZJC1jD08fUAdhO3L1qYofWDVo2+vE2nd+w10w ftIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pac1+sdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a1709066dc600b0099b445b4f45si3853978ejt.389.2023.08.08.10.08.31; Tue, 08 Aug 2023 10:08:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pac1+sdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233990AbjHHRBp (ORCPT + 99 others); Tue, 8 Aug 2023 13:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233828AbjHHRBB (ORCPT ); Tue, 8 Aug 2023 13:01:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8768681; Tue, 8 Aug 2023 09:00:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 396B8624C2; Tue, 8 Aug 2023 11:12:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B77C433C7; Tue, 8 Aug 2023 11:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691493129; bh=1QMm2qYYenzfqrS9JtfJhviMwybOhFCTNjTSNEl8Uq4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Pac1+sdY1mCBsPtQKAp6KfSZke3+ZBoIRZKAq4FOZYbRqr3J1FmN1eYHV24JD+vWP 8rXqfnrUS7PT+9ReDUlUeSB3dy8aNma2jcigPfN1Xc7fVYYRfv0ja/Ce83eULQnwpb XViufpw39qsVaOpRvFR8jsCujgepLFVxZ+Su+ULX8NTvV/OGwHjSvwsrKjv5tERC+X BmvFyy5T3jDSNAh6afNl3pVM3QRaYoA+s5iqziwsiQjlcxAHGyso1yzzbzqNGvIa3i n77zRhws7zWBAx27h8GEQwAmQE0Ss/XkGz1YXHZuN2REA6IA8apT+hhHu6ElBm+Csk hrRwlqbGY3yjw== Received: from [104.132.45.110] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qTKdC-00377i-VX; Tue, 08 Aug 2023 12:12:07 +0100 Date: Tue, 08 Aug 2023 12:12:13 +0100 Message-ID: <87y1ilpz3m.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Cc: oliver.upton@linux.dev, xiaobo55x@gmail.com, ajones@ventanamicro.com, seanjc@google.com, Paolo Bonzini , Jonathan Corbet , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Shuah Khan , James Morse , Suzuki K Poulose , Zenghui Yu , Ricardo Koller , Vishal Annapurve , Like Xu , Vipin Sharma , David Matlack , Colton Lewis , kvm@vger.kernel.org, Haibo Xu , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v6 00/13] RISCV: Add KVM_GET_REG_LIST API In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 104.132.45.110 X-SA-Exim-Rcpt-To: anup@brainfault.org, oliver.upton@linux.dev, xiaobo55x@gmail.com, ajones@ventanamicro.com, seanjc@google.com, pbonzini@redhat.com, corbet@lwn.net, atishp@atishpatra.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, shuah@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, ricarkol@google.com, vannapurve@google.com, likexu@tencent.com, vipinsh@google.com, dmatlack@google.com, coltonlewis@google.com, kvm@vger.kernel.org, haibo1.xu@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Mon, 07 Aug 2023 04:48:33 +0100, Anup Patel wrote: >=20 > Hi Marc, Hi Oliver, >=20 > On Tue, Jul 25, 2023 at 2:05=E2=80=AFPM Haibo Xu wr= ote: > > > > KVM_GET_REG_LIST will dump all register IDs that are available to > > KVM_GET/SET_ONE_REG and It's very useful to identify some platform > > regression issue during VM migration. > > > > Patch 1-7 re-structured the get-reg-list test in aarch64 to make some > > of the code as common test framework that can be shared by riscv. > > > > Patch 8 move reject_set check logic to a function so as to check for > > different errno for different registers. > > Patch 9 move finalize_vcpu back to run_test so that riscv can implement > > its specific operation. > > Patch 10 change to do the get/set operation only on present-blessed lis= t. > > Patch 11 add the skip_set facilities so that riscv can skip set operati= on > > on some registers. > > Patch 12 enabled the KVM_GET_REG_LIST API in riscv. > > patch 13 added the corresponding kselftest for checking possible > > register regressions. > > > > The get-reg-list kvm selftest was ported from aarch64 and tested with > > Linux v6.5-rc3 on a Qemu riscv64 virt machine. > > > > --- > > Changed since v5: > > * Rebase to v6.5-rc3 > > * Minor fix for Andrew's comments > > > > Andrew Jones (7): > > KVM: arm64: selftests: Replace str_with_index with strdup_printf > > KVM: arm64: selftests: Drop SVE cap check in print_reg > > KVM: arm64: selftests: Remove print_reg's dependency on vcpu_config > > KVM: arm64: selftests: Rename vcpu_config and add to kvm_util.h > > KVM: arm64: selftests: Delete core_reg_fixup > > KVM: arm64: selftests: Split get-reg-list test code > > KVM: arm64: selftests: Finish generalizing get-reg-list > > > > Haibo Xu (6): > > KVM: arm64: selftests: Move reject_set check logic to a function > > KVM: arm64: selftests: Move finalize_vcpu back to run_test > > KVM: selftests: Only do get/set tests on present blessed list > > KVM: selftests: Add skip_set facility to get_reg_list test > > KVM: riscv: Add KVM_GET_REG_LIST API support > > KVM: riscv: selftests: Add get-reg-list test >=20 > Are you okay for this series to go through the KVM RISC-V tree ? Sure, seems fine from my point of view. But please put it on an immutable topic branch so that we can also merge it in the arm64 tree, should we need to resolve any conflicts. Thanks, M. --=20 Without deviation from the norm, progress is not possible.