Message ID | 20200924123731.268177-3-alexandru.elisei@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | KVM: arm64: Documentation updates | expand |
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>
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 ======= ======================================================
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(-)