Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5218919rwb; Wed, 9 Aug 2023 00:01:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSpn0LEhoVuVAxrxIya50pgHHCPW5iYahnR4WA2LqFoODBfrkz00Auhr/2NafmOp4EoNWL X-Received: by 2002:a05:6402:1c8e:b0:522:aad4:aae0 with SMTP id cy14-20020a0564021c8e00b00522aad4aae0mr10470350edb.3.1691564494709; Wed, 09 Aug 2023 00:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691564494; cv=none; d=google.com; s=arc-20160816; b=YeZZ49mMSVqGBNZgtdlndY7iamLk8tlxLdDzStS8uItZVYVi3+y+y2iknTLnNRwlLD j6Cv1pj5G8l9GhRkaCKthlTkL9w11zs0nYnoJcqjLA015j1gGfF5lgLhJ5M2Mo6RNX8H ob1u8OFd8kDeB19Ei8wH3pLitY4IXdSz8o0dWJrrdXBPkGwKqggmGH1h9Wq3+9cNw3Dw BRopGRE85sk2YP9HwUe8CXeY998rVSt1vs/blMtvk13veZy9tAoNuw0uVCsCVz9ew0H9 4AZ3GQUrCXHltr9ZcohE8F9VG++1mP6Q6UV1J/8guulRgzwo/PlBSHc0UllrO0wqaVx9 YFZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wcsclxtm27Oz1sDHzPRuy+Izl0iwle6aRoNm7chV/mE=; fh=UpD9R3muWfEMe72D/5ZhnxJkF8cGINFy+TJoFO36yBc=; b=GJBrPnFVatLghyElM/WJA4TTS77DGQWRAZaNdcMn1m5yuCQH9uZFfikWJ9l5tvbRXv V9Sb5xkiv7C/Ya0ejkBe5Pc4Vwr1F81ngC/4RvytsGJuZfuOsEJx7RLPt/SnNonnn9sv lEzGXnRjkPuYsszvvXF6G1JHZ+sgYRdo1y/eg2z9PgAr3PFi48/Qs7D3keBPb0XMxRtC GnBbwtiullEEfNJadynekoUTvpMDLAiFWcJodkylXiTku9ow/TQ9ghxh2jJ4MWQ1z3iW GBEZxg+sRof90O9dRenyT5L56aGqPmegWtoeospsiViTx4kyjjBH/LxWUDTNRAo+Upwf cOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20221208.gappssmtp.com header.s=20221208 header.b=EAu5utSg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020aa7d641000000b005222c5636cesi2424699edr.40.2023.08.09.00.01.10; Wed, 09 Aug 2023 00:01:34 -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=@brainfault-org.20221208.gappssmtp.com header.s=20221208 header.b=EAu5utSg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229504AbjHIDs0 (ORCPT + 99 others); Tue, 8 Aug 2023 23:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjHIDsZ (ORCPT ); Tue, 8 Aug 2023 23:48:25 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADAD10DC for ; Tue, 8 Aug 2023 20:48:24 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-52256241c66so1001837a12.1 for ; Tue, 08 Aug 2023 20:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20221208.gappssmtp.com; s=20221208; t=1691552903; x=1692157703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wcsclxtm27Oz1sDHzPRuy+Izl0iwle6aRoNm7chV/mE=; b=EAu5utSgSArNbjdpW2PWgXWxU171HGHts/s7dBkm0zVj5aCYmQgRY1eVDfdx5vr8cA uGKn7OVjBlH4x+6LdBhrQT6Lg9LhLj1yy1RH2qqx1h5mvCbwLwDTmi/MZ0ikszErkW7A c2wgoyYGmr5Xx1SM2v4R30bMVFeofVKHtC6o0RiWqEd1AY94fkLRImRdySpiVfKzCHyP 2nptFLeLbD+hH2/FAjLldDdYM1xVC0YQevFNuibuhkBMw35KddsaCG7bR1RVsurPGN57 4zXG/WD6m3xLx9dq37bTRRVaAPx+TLrhm8T5caUwPW3f4koGnwh0i2q7yp3JZqW5SBBb uphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691552903; x=1692157703; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wcsclxtm27Oz1sDHzPRuy+Izl0iwle6aRoNm7chV/mE=; b=gpHyOUXwgpKYyhyywltN+8YAow87lgyeWOU1KZPw2tUU24NnPEl8PsQP3Cc/PF50Ms x1ww5Ogc3gPDXpdFXdlLe8W9cbPRAtxXYYemXQPOZP+GflGEhjXQBKpTsyr8IGlujcBW XsM74IqlPFRzWl7Ltw1yF1WzcoOhgiRWkeL+WsvPkxLo/K1B9LWEt+4rV1RU3fvMgBpZ 5D2WDEiT80ylAUXOpFWP+E+V1ecWv199IQpZKnnWaPPC68YJyajPwZLdkHiGbIPhI6np cPxYgOvpGbO/mG5k48Wg9p/bkxQ6jgAjdoAS7AQN+/aw/0UG5kdydE/JJn9+hshq9toH Dajg== X-Gm-Message-State: AOJu0Yz/NsX9KJ5yZY6An3b9YsWZa0n/rHzWNzh04sXJxr+ZvcdW+oSu MmJYMPrR3JE4lHUOD0Bh82M/tgYSNT2W2gtiWHw4ng== X-Received: by 2002:a05:6402:3587:b0:51f:ef58:da87 with SMTP id y7-20020a056402358700b0051fef58da87mr14581549edc.2.1691552902500; Tue, 08 Aug 2023 20:48:22 -0700 (PDT) MIME-Version: 1.0 References: <87y1ilpz3m.wl-maz@kernel.org> In-Reply-To: From: Anup Patel Date: Wed, 9 Aug 2023 09:18:09 +0530 Message-ID: Subject: Re: [PATCH v6 00/13] RISCV: Add KVM_GET_REG_LIST API To: Haibo Xu Cc: Marc Zyngier , oliver.upton@linux.dev, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Wed, Aug 9, 2023 at 8:56=E2=80=AFAM Haibo Xu wrote= : > > On Tue, Aug 8, 2023 at 7:12=E2=80=AFPM Marc Zyngier wrot= e: > > > > On Mon, 07 Aug 2023 04:48:33 +0100, > > Anup Patel wrote: > > > > > > Hi Marc, Hi Oliver, > > > > > > On Tue, Jul 25, 2023 at 2:05=E2=80=AFPM Haibo Xu wrote: > > > > > > > > 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 so= me > > > > 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 fo= r > > > > different errno for different registers. > > > > Patch 9 move finalize_vcpu back to run_test so that riscv can imple= ment > > > > its specific operation. > > > > Patch 10 change to do the get/set operation only on present-blessed= list. > > > > Patch 11 add the skip_set facilities so that riscv can skip set ope= ration > > > > 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 wi= th > > > > 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_conf= ig > > > > 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 > > > > > > 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. > > > > Hi Marc, > > Thanks for your review! > > Which topic branch do you prefer or suggest to use? > I can do a rebase on it and fix any potential conflicts. I will share a branch with a stable commit history. I have already resolved conflicts at my end. Regards, Anup > > Regards, > Haibo > > > Thanks, > > > > M. > > > > -- > > Without deviation from the norm, progress is not possible.