From patchwork Wed Sep 20 15:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1837337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Z2ylh7jz; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.a=rsa-sha256 header.s=google header.b=YlRfkr6k; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RrNDm6Ks7z1ynX for ; Thu, 21 Sep 2023 01:46:32 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q960zGxTmIBAZh7z/IDraqU7xCmAwMPRqHNnBmKad8w=; b=Z2ylh7jzSETn6x hJ07jWkwQ7vlIVx6aeklWAuxoRuNVt1J1eQZU+KvqhouOQ2Zfx87D6a4x2VM8SalMx8dsZct+yq5G KuViRT8mFcfEJahkRq+M3ZsQyYcThHtflnHf8AQyNWp6bonuPbQ8G3BRy4ztp41fTJWXtqC1AMShy VdJ2NtEPRgDfopn+0fS/M/N2BLCb9TgxpshapNfgDQu7dQjO46zKOCvRXLiL7zc4aeSzgBHGt4h2x S/Uyj0yZVAwBH+5T8h+Fhct3kFSz8iTqeJZFYnZh3KYHEubnyrMB2hRuoZPdOR54c7sSA7mLMF4AW dMdiCMGdRfxt4YeZIegA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qizPJ-003Xkw-1s; Wed, 20 Sep 2023 15:46:29 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qizPF-003XiT-2b for kvm-riscv@lists.infradead.org; Wed, 20 Sep 2023 15:46:28 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c44c0f9138so36638715ad.2 for ; Wed, 20 Sep 2023 08:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695224784; x=1695829584; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HIC1z+Y5X7nE4BXr1975QA3QvmpInOTVPTiyv7G4DQk=; b=YlRfkr6korfvSLurd3+Cl2+ZONeEyeHZAId8Uuafb3yLT2zTrMD5vqpzJ8upm9wXNz kNXwKdcrtZ3StmyBXm1PcHmKrM/IpSncQDkxiwG2N9lrsPnZdOfusrSXHylcnviCnnu4 C3ObkAKCluAIyyIaTEAWQKQc25uMK+RkyO4mC+lhhLNz9/ArMcplke/O3O/VGoy+p8pC e6uBWJC7Z+7+iGHU6b4b1qeHwEP9yE2rdsc7rXCMYN1DAUPaN1kY0wuwMZEdPmZxrgev yLHv3gj35MQnfNovEZTerJH9UxkLcKqX+VaQZNNTmGupWzZQkmFMmbnaH0GhC6VrBDRC H7MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695224784; x=1695829584; 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=HIC1z+Y5X7nE4BXr1975QA3QvmpInOTVPTiyv7G4DQk=; b=mgsulhQj36lRhS2rNTnGxMw3a8+iOzlBgMI1OWO9P9SiOTlZlMPtccDG9Ew2pguanX HgRGHYCS2ifff403PQuuwL6ezdQSsoRTuqDdw8xrCVP8RFhX0gisYQNmu2NCxQdA73p4 gUWN9llNFh/QAoP5Ptimmg0ovh7qHL4xGsZQ14fwPH/3AP5UyLFkUn0KVC1TxGNGLs1g NZgSMy0CYPo3jUsIfo/KkS7kvV2/YzO32+EFjQHEcx448chXMpm4b21IdoG0i6JZdn0M bvChbadp/19aPyNjMwy2rUYVYouh2eEefJEB+OOwaWsMnnNdI14iUzHYaqCIxXGyTPYs +azQ== X-Gm-Message-State: AOJu0YzZ6l2vb3ppARTpAwGMioT1FBShYx3sNShVcGTZKIyLdu4FDS4d lHl1hCotP81FLj7lMsX7E+bPJQ== X-Google-Smtp-Source: AGHT+IH3EjLrv/byDVEUBKjQ6K2VTEFNBFwq6oAb2NPMTHvNIVpZJ/QjFXRiSyjLYbNycwjvDS1j2g== X-Received: by 2002:a17:902:dad2:b0:1c4:c92:2320 with SMTP id q18-20020a170902dad200b001c40c922320mr3107163plx.31.1695224783665; Wed, 20 Sep 2023 08:46:23 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.85.109]) by smtp.gmail.com with ESMTPSA id m7-20020a170902db0700b001c0de73564dsm11995153plx.205.2023.09.20.08.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:46:22 -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 v2 0/4] KVM RISC-V fixes for ONE_REG interface Date: Wed, 20 Sep 2023 21:16:04 +0530 Message-Id: <20230920154608.1447057-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_084625_843453_FD1DBEF3 X-CRM114-Status: UNSURE ( 6.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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_v2 branch at: https://github.com/avpatel/linux.git Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:62f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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_v2 branch at: https://github.com/avpatel/linux.git Changes since v1: - Addressed Drew's comments in PATCH4 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(-)