Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5585575rwb; Wed, 9 Aug 2023 06:29:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECGYTwVYQOGDiCsmqQKqBi3Euxu6SI0Z64TyEZrwDF0qkQ2O2JBDLgFM/RuVFdcGeqnaiP X-Received: by 2002:aa7:da51:0:b0:522:27ea:58b with SMTP id w17-20020aa7da51000000b0052227ea058bmr2131825eds.39.1691587758939; Wed, 09 Aug 2023 06:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691587758; cv=none; d=google.com; s=arc-20160816; b=SiR0eEgjnDFHUijrWxEUKgpS3LT63ulWQ4U4XgozP7JHlUeekLXxlUnsIH8aMdYj/n E8u4kSL5Hh6UZJXY3bwvdPHv+CDka5PGv9yRvk/9Am/kRjdUwGzblMqtu4YQrb9hA3Rd v1hHz+OmRiBT6t2AHvMz4ZXLK9uQQ8t7aXKBZhyYH6Fdc1gJ46ft7hVUNMfWmXGnb5jK SylZ82G0Qv7oExcsKM5j5RpJ9kR1Mn41e/GpUs73BcK12rim1HKZdvobbw62GzjyKgS/ T9EtjQH6udhK016Hjqi9HSZn9eWLOY0sJKhgO3PY37YhX4J+gqGsVDnmpo5H0WgvVKwc yfVw== 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=gse4lQ89R/swNYJYWFRKmfEvRYWCgDAQeQk+i+FC3Qc=; fh=wssLHluNw8C9u8UiqXvv9ZpQ2ec6yJiIbkM4EvIrJKs=; b=JA8K0dppfD858/cVA5sSzzYkimEDu2fBk8fqj1n2FtfoDfE+sajrjFNVr4J7Fy24Qp tWbv+F0jbered8aG31j6crw3SkATPNA5s61qis2C4Y8fmhtJ7oZ/5WwvDflobG+rf0f4 CQ04VbFQkXyqzYf69+SrHzc1cpVlhNooN3qd3vgy2eSF2d9BT9SC1Z7vEkqur4xdOiU5 sIcvoKoJC7W8BIjCLsHb1s7xmyFOCloms6RRb7Ds+yraRMKva1h+2oWJrcI7Fas6lIJM QfJ2Zr47yx8EMOmmBf3U3cn1Ch1wMPhfvABWAtsv4IeA5WJjjksPDnYyRAMHUc/DtzOh ZeoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20221208.gappssmtp.com header.s=20221208 header.b=z4Z49MED; 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 v14-20020a056402184e00b0052348f48fffsi2288217edy.330.2023.08.09.06.28.54; Wed, 09 Aug 2023 06:29:18 -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=z4Z49MED; 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 S232231AbjHIMV7 (ORCPT + 99 others); Wed, 9 Aug 2023 08:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232248AbjHIMV5 (ORCPT ); Wed, 9 Aug 2023 08:21:57 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C8811FD4 for ; Wed, 9 Aug 2023 05:21:55 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-52307552b03so9235111a12.0 for ; Wed, 09 Aug 2023 05:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20221208.gappssmtp.com; s=20221208; t=1691583714; x=1692188514; 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=gse4lQ89R/swNYJYWFRKmfEvRYWCgDAQeQk+i+FC3Qc=; b=z4Z49MED7B2iO1P22Sflcd12HqFoBF5yfCPEmSnPuw92T8YnUDH2KmdmqK/zmm3Hsv Y1A4Myz/vjPMCMyAiAMJtrC215szsuavogK4ztLxqkGSQO7aPAZzUkD1Ozkyv7H3dSaL qsE22vwvMjFkqhjUQQdHhf2t+Y2yF2VZL5Bid1o6X2mZ0zwKa1F0dMm02EOtwX7YI8oZ kQr4IP0wXNHwqQREssTv7kAUZWMAwp8PYn9E03Y7mqOyy+xa2JAZIQ2g56zk0jeEXZhW kRD0s2bF7FjY+mFqcKXFd8fyuF9dqKo3ka5wJ+o55aO6bmVU6NblI+YE2iiYmI3rXl30 +XNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691583714; x=1692188514; 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=gse4lQ89R/swNYJYWFRKmfEvRYWCgDAQeQk+i+FC3Qc=; b=DnEvNccW5NIJUior0onpAlPFyiQd+moNd5WamL6bJjigaXazTmW2dCCdQipuO8DQhj yFHAZrHIiu3gWG0He5jSvLnYKAk0MnUVx4ZrGjtibd/wF6DvnVVf5fO1cX5sUI0AaXyG N+qKADaVCgIlgFMSoy6x/eKXLG/g+2PdJDukjUByCBj6iG8e7L9Hqp+p7uPv3l4X9XJK 8L5TSqDtMKsqUbOagCxJG/sJOTiQ7NDT6W75vVMJMiHVnM6/t/xBio57stxI9rMle1dy hRM0LthKDdO7w7p6b7c5q1flq1aKHQNA0xFETmhyIhupHB3vHu9E2NefpMdXP4Y5LPSp j/Cw== X-Gm-Message-State: AOJu0Yzt+XzeaJtlGgsh5p5i545VN6m97cFzBGo8RpxSjJiOPTs0ftZC kWjNVDoMgEoKMHxlO+LlOFFUMelu+Vi7OQPalMrU0w== X-Received: by 2002:aa7:d912:0:b0:522:1e2f:99db with SMTP id a18-20020aa7d912000000b005221e2f99dbmr2557441edr.5.1691583713714; Wed, 09 Aug 2023 05:21:53 -0700 (PDT) MIME-Version: 1.0 References: <87y1ilpz3m.wl-maz@kernel.org> In-Reply-To: <87y1ilpz3m.wl-maz@kernel.org> From: Anup Patel Date: Wed, 9 Aug 2023 17:51:41 +0530 Message-ID: Subject: Re: [PATCH v6 00/13] RISCV: Add KVM_GET_REG_LIST API To: Marc Zyngier 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 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_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Hi Marc, On Tue, Aug 8, 2023 at 4:42=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. I have created topic branch riscv_kvm_get_reg_list in the KVM RISC-V repo https://github.com/kvm-riscv/linux.git. This branch is based upon Linux-6.5-rc5 and also merged into the riscv_kvm_next branch for the upcoming merge window. Regards, Anup