From: Andrew Jones <drjones@redhat.com>
To: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: maz@kernel.org, linux-arm-kernel@lists.infradead.org,
kvmarm@lists.cs.columbia.edu
Subject: Re: [PATCH v2 2/2] KVM: arm64: Match PMU error code descriptions with error conditions
Date: Thu, 24 Sep 2020 14:59:30 +0200 [thread overview]
Message-ID: <20200924125930.tcoz7g6kcvg4rooj@kamzik.brq.redhat.com> (raw)
In-Reply-To: <20200924123731.268177-3-alexandru.elisei@arm.com>
On Thu, Sep 24, 2020 at 01:37:31PM +0100, Alexandru Elisei wrote:
> Update the description of the PMU KVM_{GET, SET}_DEVICE_ATTR error codes
> to be a better match for the code that returns them.
>
> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
> ---
> Documentation/virt/kvm/devices/vcpu.rst | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/virt/kvm/devices/vcpu.rst b/Documentation/virt/kvm/devices/vcpu.rst
> index 96d6cf77cb1e..8c24411ece2e 100644
> --- a/Documentation/virt/kvm/devices/vcpu.rst
> +++ b/Documentation/virt/kvm/devices/vcpu.rst
> @@ -26,8 +26,9 @@ Returns:
> ======= ========================================================
> -EBUSY The PMU overflow interrupt is already set
> -EFAULT Error reading interrupt number
> - -ENXIO The overflow interrupt not set when attempting to get it
> - -ENODEV PMUv3 not supported
> + -ENXIO PMUv3 not supported or the overflow interrupt not set
> + when attempting to get it
> + -ENODEV KVM_ARM_VCPU_PMU_V3 feature missing from VCPU
> -EINVAL Invalid PMU overflow interrupt number supplied or
> trying to set the IRQ number without using an in-kernel
> irqchip.
> @@ -48,8 +49,8 @@ Returns:
> ======= ======================================================
> -EEXIST Interrupt number already used
> -ENODEV PMUv3 not supported or GIC not initialized
> - -ENXIO PMUv3 not properly configured or in-kernel irqchip not
> - configured as required prior to calling this attribute
> + -ENXIO PMUv3 not supported, missing VCPU feature or interrupt
> + number not set
> -EBUSY PMUv3 already initialized
> ======= ======================================================
>
> --
> 2.28.0
>
Reviewed-by: Andrew Jones <drjones@redhat.com>
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Jones <drjones@redhat.com>
To: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: suzuki.poulose@arm.com, maz@kernel.org, james.morse@arm.com,
linux-arm-kernel@lists.infradead.org,
kvmarm@lists.cs.columbia.edu, julien.thierry.kdev@gmail.com
Subject: Re: [PATCH v2 2/2] KVM: arm64: Match PMU error code descriptions with error conditions
Date: Thu, 24 Sep 2020 14:59:30 +0200 [thread overview]
Message-ID: <20200924125930.tcoz7g6kcvg4rooj@kamzik.brq.redhat.com> (raw)
In-Reply-To: <20200924123731.268177-3-alexandru.elisei@arm.com>
On Thu, Sep 24, 2020 at 01:37:31PM +0100, Alexandru Elisei wrote:
> Update the description of the PMU KVM_{GET, SET}_DEVICE_ATTR error codes
> to be a better match for the code that returns them.
>
> Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
> ---
> Documentation/virt/kvm/devices/vcpu.rst | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/virt/kvm/devices/vcpu.rst b/Documentation/virt/kvm/devices/vcpu.rst
> index 96d6cf77cb1e..8c24411ece2e 100644
> --- a/Documentation/virt/kvm/devices/vcpu.rst
> +++ b/Documentation/virt/kvm/devices/vcpu.rst
> @@ -26,8 +26,9 @@ Returns:
> ======= ========================================================
> -EBUSY The PMU overflow interrupt is already set
> -EFAULT Error reading interrupt number
> - -ENXIO The overflow interrupt not set when attempting to get it
> - -ENODEV PMUv3 not supported
> + -ENXIO PMUv3 not supported or the overflow interrupt not set
> + when attempting to get it
> + -ENODEV KVM_ARM_VCPU_PMU_V3 feature missing from VCPU
> -EINVAL Invalid PMU overflow interrupt number supplied or
> trying to set the IRQ number without using an in-kernel
> irqchip.
> @@ -48,8 +49,8 @@ Returns:
> ======= ======================================================
> -EEXIST Interrupt number already used
> -ENODEV PMUv3 not supported or GIC not initialized
> - -ENXIO PMUv3 not properly configured or in-kernel irqchip not
> - configured as required prior to calling this attribute
> + -ENXIO PMUv3 not supported, missing VCPU feature or interrupt
> + number not set
> -EBUSY PMUv3 already initialized
> ======= ======================================================
>
> --
> 2.28.0
>
Reviewed-by: Andrew Jones <drjones@redhat.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-09-24 12:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 12:37 [PATCH v2 0/2] KVM: arm64: Documentation updates Alexandru Elisei
2020-09-24 12:37 ` Alexandru Elisei
2020-09-24 12:37 ` [PATCH v2 1/2] KVM: arm64: Add undocumented return values for PMU device control group Alexandru Elisei
2020-09-24 12:37 ` Alexandru Elisei
2020-09-24 12:37 ` [PATCH v2 2/2] KVM: arm64: Match PMU error code descriptions with error conditions Alexandru Elisei
2020-09-24 12:37 ` Alexandru Elisei
2020-09-24 12:59 ` Andrew Jones [this message]
2020-09-24 12:59 ` Andrew Jones
2020-09-30 7:31 ` [PATCH v2 0/2] KVM: arm64: Documentation updates Marc Zyngier
2020-09-30 7:31 ` Marc Zyngier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200924125930.tcoz7g6kcvg4rooj@kamzik.brq.redhat.com \
--to=drjones@redhat.com \
--cc=alexandru.elisei@arm.com \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.