From patchwork Thu Sep 24 12:37:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 11797193 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6D5759D for ; Thu, 24 Sep 2020 12:38:11 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8CE9C21D24 for ; Thu, 24 Sep 2020 12:38:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nSt83DwA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CE9C21D24 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=Wi2VTqxUf+8nix0SpbUKVRaNtgjXvxQmiDnBiLtCyM8=; b=nSt83DwAPQdWC+FKICp7Iczl/w EEXnR3ogWCFhrxQjIVdR2jVEQn1gDbE9xrptJrLBwMiCF2TGyWaQck7R0OQ03QAhJWupqFaawma0V XB8w7orwc1ajT35//87n2KiaqIRz6IKHJmt0+vA7j8LF/V5OlqtNBxn5c2XYi4y1yTaY8PYXHvlSj AQFbkgZuCTLoR8jo98mnnWmhzIkbmLUTRpgDf7lGnive5v89Y6xCWmgQdyDJcudI5W919GDzx5azN ZrktvmV5wuYg42Xw2Hh+MDSHjfB134IrqXdJhJz2JMONCup7ZILGyv7iGo0uGwFd2YvPEx9ynG/in iehYySXQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLQUH-0003Ew-Dz; Thu, 24 Sep 2020 12:36:37 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLQUE-0003Dt-Dz for linux-arm-kernel@lists.infradead.org; Thu, 24 Sep 2020 12:36:35 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C3FC1113E; Thu, 24 Sep 2020 05:36:33 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBBDC3F73B; Thu, 24 Sep 2020 05:36:32 -0700 (PDT) From: Alexandru Elisei To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 0/2] KVM: arm64: Documentation updates Date: Thu, 24 Sep 2020 13:37:29 +0100 Message-Id: <20200924123731.268177-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200924_083634_578525_9BB7BF7C X-CRM114-Status: GOOD ( 12.46 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: maz@kernel.org, drjones@redhat.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org I noticed some discrepancies between the error codes returned by KVM PMU emulation and the documentation, this is my attempt at fixing them. The code is from the original implementation of KVM PMU, and I thought it would be more prudent to modify the documentation to match the code instead of the other way around. Changes since v1: - Added Reviewed-by from Andrew Jones for #1. Thank you! - Changed -ENXIO description for KVM_ARM_VCPU_PMU_V3_IRQ in #2 to take into account the case where KVM_GET_DEVICE_ATTR is called and the irq number is not set. Alexandru Elisei (2): KVM: arm64: Add undocumented return values for PMU device control group KVM: arm64: Match PMU error code descriptions with error conditions Documentation/virt/kvm/devices/vcpu.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)