Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5252209rwb; Wed, 9 Aug 2023 00:41:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtrOu2qC2FLUhZbJ36GofsKQ/FZ8YA9R0iA6dxEHiw52sRfea+e0xGRvYskJOhli/J+Bqu X-Received: by 2002:a17:907:761a:b0:99b:c8bf:3f06 with SMTP id jx26-20020a170907761a00b0099bc8bf3f06mr2265736ejc.24.1691566889280; Wed, 09 Aug 2023 00:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691566889; cv=none; d=google.com; s=arc-20160816; b=YTL6JByqnczUxguREsToAAvFlyB+TEnTkdWSfahOQFz6Qh6aedWCp27kMIvN2iTeDC NdjlCCBABHyYqOV7DdhkSM8YlfmXbP2L6cdnDZSxPj5kikKrWXeamBdiY1yymQn9Mnk2 LvaZjdcX9OXZneQYlJDSgvsoy60r2h5Ie/lqRP9lFhZ4LNPhHcMLV7cA/UOwnVOP1b1W 0VYy5h+wfxgcWga7R30hFdh38MAOutePtEFfv4adMG6JK3QyfjRopHlW3Kss/RO63TeU 8iUyn/+RwluuHYqpPUWpG6tMIi0P0ay6gFVU4lZCbV2Mf/RHtTAJyHaxNxLueMuWGh/R Dgzw== 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=j6b8QaOxHHxr0nsnmybM/OZmFkMm6krciNhVPEUkLHM=; fh=8gsRpmsLkxHgKbNGbJMqxC68EFS41rLqxcFbRvllWjQ=; b=pKN1+7b8+ADuSwkO4JbHXB5A6Rc0yXGlSNGqWbdR/OhcGGYpXxAgrtCpOp2ZUGXG8R xDvGWlZ5hfoCa48tBNq3zOdsHxw+o26CxxGz7ZnGatYv5fxqjepfhz2a54alFM5kBDRF t/t3OKBYKz1yhjQ644Mi0hoCPrfHOBrnvPQh5jSZ6dLUXIwmDRdHJumpNe69p+/m7QQU crDid564oeeQumdmdX4fNXpDYfx+i/VUHaw+U/wgjU9XbGpjx9tpPutn5Fr+duTCupEf 66oocxVumDqomK7dXfxSGerqtz97RzbX2Sa9Wc8K2JumTUIK9ta6zXRjv3b5aImdMnTH BI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fhVs64I4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170906724a00b009926928d482si2980150ejk.447.2023.08.09.00.41.03; Wed, 09 Aug 2023 00:41:28 -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=@gmail.com header.s=20221208 header.b=fhVs64I4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbjHIFDN (ORCPT + 99 others); Wed, 9 Aug 2023 01:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjHIFDM (ORCPT ); Wed, 9 Aug 2023 01:03:12 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580E51736; Tue, 8 Aug 2023 22:03:11 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9c66e2e36so6250201fa.1; Tue, 08 Aug 2023 22:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691557389; x=1692162189; 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=j6b8QaOxHHxr0nsnmybM/OZmFkMm6krciNhVPEUkLHM=; b=fhVs64I4ddYpd00JLct4M5DXmmqZVvjx/PM5IA0btlXqhs7iDUEO3VxkEF91BxP6Dz WJgiF9XR5y4uvxG6IWoY7NHCRglOoZAYWJVo6VGrKhNNaTIDWbKOUU3WRiGAXIqGsDSE DK44YS7nhYYxRjSy2NhsWwdbvYRxD6x/XguExxEaFacDNw496QL+DfrN0JlS0HPz1ZLI UOLAUlPdagmdXrFv1r2hojgA2g+RVPCvAV8BiMueulCJhnlfNSHOo6YBR6FliCSnwNe5 XJuhSf8r3sDdpjILN7XbNSBRB+K08tZWxAyUsK9+h6eNtxkVWvNujrFcPD6CM4BfmhGi 8/Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691557389; x=1692162189; 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=j6b8QaOxHHxr0nsnmybM/OZmFkMm6krciNhVPEUkLHM=; b=bS2wViS578mmLY3f71K19zH8nTcmwHHbJ0NyRUb94twiV+/V2VO6X+ykpIXC/4X75D xic65tsSAloeZCf5ZD9+91XRUzKXBwMUmjLWYFhQeJgJiRPFkuRa6DWNd/ZenjE4tp1+ sbds8j1+DI6dsyuTQHfzG7eakWi+ByWLw6a531VVPvhD07mQg2JGBprU12c99e8u/vzI AXBZZC+mw4GYhJZHIhHxzhbmLkjJ58mjj10NANa7L6KnYsrTrIdwkCbxACuMsnIEdtSI 4k+4WxJ7rxCx9XoiroSGoJTY9dcWQWZGSulTBWayP6RbkpeVqDIKBUKgOjyq53FgNxUT Tk9A== X-Gm-Message-State: AOJu0YzuqlC/O0TKqdepo+OSas+RmlQtgmK0f7rEYl87pIJ86SeB12uA ufF4cwIkkUBjdlaDrghfygl/AzIgCED7TeQL+bs= X-Received: by 2002:a05:651c:1713:b0:2b9:d0bf:a3c5 with SMTP id be19-20020a05651c171300b002b9d0bfa3c5mr3997983ljb.14.1691557389258; Tue, 08 Aug 2023 22:03:09 -0700 (PDT) MIME-Version: 1.0 References: <87y1ilpz3m.wl-maz@kernel.org> In-Reply-To: From: Haibo Xu Date: Wed, 9 Aug 2023 13:02:57 +0800 Message-ID: Subject: Re: [PATCH v6 00/13] RISCV: Add KVM_GET_REG_LIST API To: Anup Patel 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Wed, Aug 9, 2023 at 11:48=E2=80=AFAM Anup Patel wr= ote: > > On Wed, Aug 9, 2023 at 8:56=E2=80=AFAM Haibo Xu wro= te: > > > > On Tue, Aug 8, 2023 at 7:12=E2=80=AFPM Marc Zyngier wr= ote: > > > > > > 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 platfor= m > > > > > 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 imp= lement > > > > > its specific operation. > > > > > Patch 10 change to do the get/set operation only on present-bless= ed list. > > > > > Patch 11 add the skip_set facilities so that riscv can skip set o= peration > > > > > 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_print= f > > > > > KVM: arm64: selftests: Drop SVE cap check in print_reg > > > > > KVM: arm64: selftests: Remove print_reg's dependency on vcpu_co= nfig > > > > > 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 functio= n > > > > > 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. > Cool! Thanks for your help! > Regards, > Anup > > > > > Regards, > > Haibo > > > > > Thanks, > > > > > > M. > > > > > > -- > > > Without deviation from the norm, progress is not possible.