Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5114345rwb; Tue, 8 Aug 2023 21:31:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2Ng5M4CaCONQ3njBfryh2LR+trDIiMV0t40whOkW1W5bA8h0FkC2xhlZ3BqP58wokGjmE X-Received: by 2002:a05:6512:3416:b0:4fe:55ba:d541 with SMTP id i22-20020a056512341600b004fe55bad541mr1075134lfr.50.1691555519552; Tue, 08 Aug 2023 21:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691555519; cv=none; d=google.com; s=arc-20160816; b=BVoBO2YqMa6NU5kWnoNhTT0Ortdtj10SCo+B0mZwrLEYz2mE88la4T4jFYJgyTHvQp NC0ghOj/a+daOqM1B02HD8mQzTFIAgIxv15ZfcVm5orYvuUSBAUWiE2qr7KBAWeNjMgR SgxCsarUc8cg7VXZ7dNCUfyOLBGRfCdBpxUGsWdvEUm9GBCz28bpHAkdaKXIKppjScPs EhyxnVVjFqo5T2WP+/9X7BqpcztCPCZX9ZP6T1W/9ID+Ze0c8f7SLFS3luw7jIMsZFlk 1qbysxz0FvgSgXonUrEelHNTabMU2PtdWzVsmjDMZXj6BlCxeBaMrAOIHcoQZpNaudBg tiGQ== 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=bDtqmE5WaBwuWbcG5niee6vR0Dh8gvhaHzvoiNOQiws=; fh=D26IidwB7D6qqBjzMULpONzblNTwhbNTl/h2w4AG/B8=; b=SMi+5BvVhjwIkh9ntERwp1LSPzQPyqlVoo6yuwCEGEwxd3R5qRqB+zLQVyOyNU0agq Ii9xATazEobFnoDvR3M7Dx1VPkS4d+gKsPYizwqrzRMmiCUoz2uZiK0YF+tbNwUEZnR7 qpbt6b9yRpMJ92+koicejz/LC97L3an7fkcUj/Ucnxp+Ul5oF7YWMdgsvGIDu3Lql+wT Pj9JPWFmSB8+tiN5fTJx424hQ2K6kbkBqFd3MN2DhoXnl1btJvu1BfB0bwwexDALC3J0 HLdXG10TjpyxN4/Lr9snwt7eEWwItFW/3V0XNEUcSmGalEyLKfNHTc6WabKLrNu21Igl DE/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=owAHMA78; 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 r3-20020aa7d143000000b0052336e17244si1945291edo.646.2023.08.08.21.31.34; Tue, 08 Aug 2023 21:31:59 -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=owAHMA78; 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 S230444AbjHID0y (ORCPT + 99 others); Tue, 8 Aug 2023 23:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbjHID0v (ORCPT ); Tue, 8 Aug 2023 23:26:51 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1D2C1BF7; Tue, 8 Aug 2023 20:26:50 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fe1489ced6so10518207e87.0; Tue, 08 Aug 2023 20:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691551609; x=1692156409; 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=bDtqmE5WaBwuWbcG5niee6vR0Dh8gvhaHzvoiNOQiws=; b=owAHMA78RpdKw7tQgsXJuS/elEyAp7vSGAzfHHJ5z4MmckA+NQrtCeJ+W8B7PUvc2D I/WpHW66G3aWUjJpuletY1j0z6aKy1xgec4upQFXMpwU9ycs+tCk/ePKYCi6Nbx+Tq5H Qy6MPyf/gtpxrwP1m2i9XoznQjE+jLj5ZwBSTijY/98bVmFXY24MFJCymc8ScA3Nxj2n fSOujTjvaaQVXxt/vcJYEAVtUVvyYiN2uWpHFHiII9KFwlpZWIDhDRw8t4Y/QmWWdq4T tB+UNi3v3GnHUI0r44M6p5HgP9APdJozCrZvNY2C87aDLO+gxiwTpgoEZWh+gs2IkgG7 f6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691551609; x=1692156409; 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=bDtqmE5WaBwuWbcG5niee6vR0Dh8gvhaHzvoiNOQiws=; b=YAPzH0E9wW5eOLhFONLzj3NjuA1GbLh8coHraIWzzmI8MN6XdCVgDphPv7esgF2cuX xeIHHiOf5HRX84sEUpmrw9PoZwm6AKyJxiyCKrRsCNPriz8iY/yIB1l8vHjTK5jCbCbU eXmY6qoh5vvyeW8yAVigzPZBbw41yJx3jFhho/PSnbS439fBPmHPYU+uOy/esBNDDUMc bseUIhDKWgw7i1NRg42zp60EM2poC723KCSr2yRB2sDA1tMpViboL7rx2MpDrtbJnqEK bLYxy9y2GNoksKI5WSYb072TZLyeMAMjnM9dXAtk5EMdurmyf4BDFgvjzira/HrWOteu OhJQ== X-Gm-Message-State: AOJu0Yz36D/G9SLz91zSBk7JIu7GUwTJ/QZugUz5+3R/CaJvtQFtA2Bb FXLaeEO+goUqBDpIy5yI0aL/7Qx+F6cLe2+P51g= X-Received: by 2002:a2e:a16e:0:b0:2b5:9d78:213e with SMTP id u14-20020a2ea16e000000b002b59d78213emr935818ljl.22.1691551608635; Tue, 08 Aug 2023 20:26:48 -0700 (PDT) MIME-Version: 1.0 References: <87y1ilpz3m.wl-maz@kernel.org> In-Reply-To: <87y1ilpz3m.wl-maz@kernel.org> From: Haibo Xu Date: Wed, 9 Aug 2023 11:26:36 +0800 Message-ID: Subject: Re: [PATCH v6 00/13] RISCV: Add KVM_GET_REG_LIST API To: Marc Zyngier Cc: Anup Patel , 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_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 Tue, Aug 8, 2023 at 7:12=E2=80=AFPM Marc Zyngier wrote: > > 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 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 impleme= nt > > > its specific operation. > > > Patch 10 change to do the get/set operation only on present-blessed l= ist. > > > Patch 11 add the skip_set facilities so that riscv can skip set opera= tion > > > 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 > > > > 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. Regards, Haibo > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible.