From patchwork Mon Sep 18 18:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 14179 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3068757vqi; Mon, 18 Sep 2023 18:38:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiuuencYD53nvxNqeOZOKPkXjyUB/cyrAT4gMLC7bsToyJml32pW5Bk7XdIFEG3+I7kEvy X-Received: by 2002:a17:90a:7483:b0:273:f584:40ca with SMTP id p3-20020a17090a748300b00273f58440camr7944944pjk.16.1695087507178; Mon, 18 Sep 2023 18:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695087507; cv=none; d=google.com; s=arc-20160816; b=gnxEeWoQergWl5O4RtJOET6Xo2wu9v2kchAPeBGexBZJyFsE9VLgry4aHquUgbDxLc aho7+dolhSnN264bv+DX8Lb+5WkjtiSGTxjq9SwSTPMo/jFvRplUHcNIodGUm2vsyfCU JnZCvvSloOlqLdjcmtctN18fkuTgvYC575Dgn40WeqsRtw+wfiOu2BlX11luNBIq6uIA hF43drRRC+4D2cEL1IStVsvlfqL5LGTMLGAkIPw39B0PbnNwoMuNcJyBkEveyaxbkU2O BelqUN79EBif6pvck+4r1RKU2wF37CpJDJFOxUsUWKVtaeMfsF1ZIZB/Mx/x3+V6ZdMt SJcQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FCpDJhkkPZXZzEKCkdvjugeVs9PL39Lrqr1o9f4MEek=; fh=2S+54NKBCousR9yNCeiEbYlRCvnfU9LmKXxbaD6jKe8=; b=AomfgD8AvRt8j+LUv8hyCkHIU/mmznLGhJMK0GoF7VfM51xxubfLPh11sY41IXXMW/ sDREeHO/5xb7V0jvoPPofd08tHgTmmajNhf/yJK6P5pE34QOUq84nHfbSVrIW3P/qaQv wdK6cUoHTz9uHMW7B2dHfE+PNYRFB0bTLxwYLHcpYhjvALslJIVHYAB/bsoahI6j9CjE /pJHS+ke/NxiXRbCe6f0k+Eu++5BBuyJRsJt3j8m+YvDUj+E0qiMoI/SNN4Izvj8ODPp d+PXtyFmircxtq2/4H+jQCr0TWT/g4182/xPLMRXqQCkcpNVv0aaR9KHlfamd/qc4Ot4 ebdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=V6c+qLIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id na2-20020a17090b4c0200b0026c198d8182si50613pjb.105.2023.09.18.18.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=V6c+qLIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D41D08233529; Mon, 18 Sep 2023 11:07:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229503AbjIRSHE (ORCPT + 25 others); Mon, 18 Sep 2023 14:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjIRSHC (ORCPT ); Mon, 18 Sep 2023 14:07:02 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5930112 for ; Mon, 18 Sep 2023 11:06:56 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1bf55a81eeaso34994735ad.0 for ; Mon, 18 Sep 2023 11:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695060416; x=1695665216; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FCpDJhkkPZXZzEKCkdvjugeVs9PL39Lrqr1o9f4MEek=; b=V6c+qLIj4CeTwuFa7HO3owk+o5WNKQ0S12szjj/z/FR5Lrmsm6OJ+fEpdY1KXxKX0K k0GuI6BWfaKDC5hstYn0K9i0OXimZHh59kPQeaaQ8k5RemA8770tAFyWHN1eRWEHYsDr ubA2VAj0KBlizJXuE86WzwtxBGkkAc9/zDDApHVQFPTPmcABcBIk5olrwjzKRJIRn9Q5 C2MjiG4lNx5L+slMpOI/XxvfODL9ilhAqMCgvxeKPUQ11cTxYPzX5T+iiLttyOPJlW7Z QtfpFKFy7g0g+y0V2xXEWgM2ZJt262TbYwXwXONc975kmv97hWKouB3Od6FMgdnTgG3p b+Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060416; x=1695665216; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FCpDJhkkPZXZzEKCkdvjugeVs9PL39Lrqr1o9f4MEek=; b=nS2gYvmA9mL0RFl7Cj20qO8TXdT58QLfGzX2rjg6t9VspaWJoAneOmdgwHueHfjs1R JP8wuEbioYCFZCO43oitIAB0/58N5XU4oLUAgnLEguGAQRi3415IItX7lhnfhgfWxAIO fXTaip1RoaTLDrmfnhtWNneFJzBXzREOVMws8Q7hFPE0tfoljUq9ixGEM19eAzr2jop9 XNOCRWFdq1XJT8m6vkDV6DRErNMpeNzK/o2A68RTyXN3QRtFdhffyCdImGgkTPgQHE+a 1qYrO0OB6LDwZBS6N/IpD7h2AVAwC2u3igqv1bS4AAbQ2kgzku/xrQLYReCqFRr+Q5FD jlgA== X-Gm-Message-State: AOJu0YyfXS8SVp02RN+AetYQtAb44sykjF9HUA5zH+ev9fnHaFLOQRWw K3xhi8jqgkfVWYUpfVJO/TcW1Q== X-Received: by 2002:a17:903:120e:b0:1c1:fe97:bf34 with SMTP id l14-20020a170903120e00b001c1fe97bf34mr10291276plh.24.1695060415995; Mon, 18 Sep 2023 11:06:55 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id h7-20020a170902704700b001aaf2e8b1eesm8556720plt.248.2023.09.18.11.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:06:55 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra , Shuah Khan Cc: Palmer Dabbelt , Paul Walmsley , Andrew Jones , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Anup Patel Subject: [PATCH 0/4] KVM RISC-V fixes for ONE_REG interface Date: Mon, 18 Sep 2023 23:36:42 +0530 Message-Id: <20230918180646.1398384-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:07:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777428077887410698 X-GMAIL-MSGID: 1777428077887410698 This series includes few assorted fixes for KVM RISC-V ONE_REG interface and KVM_GET_REG_LIST API. These patches can also be found in riscv_kvm_onereg_fixes_v1 branch at: https://github.com/avpatel/linux.git Anup Patel (4): RISC-V: KVM: Fix KVM_GET_REG_LIST API for ISA_EXT registers RISC-V: KVM: Fix riscv_vcpu_get_isa_ext_single() for missing extensions KVM: riscv: selftests: Fix ISA_EXT register handling in get-reg-list KVM: riscv: selftests: Selectively filter-out AIA registers arch/riscv/kvm/vcpu_onereg.c | 7 ++- .../selftests/kvm/riscv/get-reg-list.c | 58 ++++++++++++++----- 2 files changed, 47 insertions(+), 18 deletions(-)