From: Christoffer Dall <christoffer.dall@linaro.org>
To: Pavel Fedin <p.fedin@samsung.com>
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org,
Peter Maydell <peter.maydell@linaro.org>,
Marc Zyngier <marc.zyngier@arm.com>,
Andre Przywara <andre.przywara@arm.com>
Subject: Re: [PATCH v4 3/7] KVM: arm/arm64: Fix the documentation
Date: Wed, 7 Oct 2015 22:04:39 +0200 [thread overview]
Message-ID: <20151007200439.GC14315@cbox> (raw)
In-Reply-To: <5b6b8e9e002bc6a9cc5e6a881032d6b930830e74.1443451687.git.p.fedin@samsung.com>
On Mon, Sep 28, 2015 at 06:27:30PM +0300, Pavel Fedin wrote:
> During refactoring we noticed some mistakes in the documentation.
> Correct them.
>
> Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
> ---
> Documentation/virtual/kvm/devices/arm-vgic.txt | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/virtual/kvm/devices/arm-vgic.txt b/Documentation/virtual/kvm/devices/arm-vgic.txt
> index 3fb9054..4727829 100644
> --- a/Documentation/virtual/kvm/devices/arm-vgic.txt
> +++ b/Documentation/virtual/kvm/devices/arm-vgic.txt
> @@ -44,28 +44,29 @@ Groups:
> Attributes:
> The attr field of kvm_device_attr encodes two values:
> bits: | 63 .... 40 | 39 .. 32 | 31 .... 0 |
> - values: | reserved | cpu id | offset |
> + values: | reserved | cpu idx | offset |
why should this be changed to cpu idx?
>
> All distributor regs are (rw, 32-bit)
>
> The offset is relative to the "Distributor base address" as defined in the
> GICv2 specs. Getting or setting such a register has the same effect as
> - reading or writing the register on the actual hardware from the cpu
> - specified with cpu id field. Note that most distributor fields are not
> - banked, but return the same value regardless of the cpu id used to access
> - the register.
> + reading or writing the register on the actual hardware from the cpu whose
> + index is specified with cpu idx field. Note that most distributor fields
> + are not banked, but return the same value regardless of the cpu idx used to
> + access the register.
> Limitations:
> - Priorities are not implemented, and registers are RAZ/WI
> - Currently only implemented for KVM_DEV_TYPE_ARM_VGIC_V2.
> Errors:
> - -ENODEV: Getting or setting this register is not yet supported
> + -ENXIO: Getting or setting this register is not yet supported
> -EBUSY: One or more VCPUs are running
> + -EINVAL: Invalid CPU index supplied
>
> KVM_DEV_ARM_VGIC_GRP_CPU_REGS
> Attributes:
> The attr field of kvm_device_attr encodes two values:
> bits: | 63 .... 40 | 39 .. 32 | 31 .... 0 |
> - values: | reserved | cpu id | offset |
> + values: | reserved | cpu idx | offset |
>
> All CPU interface regs are (rw, 32-bit)
>
> @@ -91,8 +92,9 @@ Groups:
> - Priorities are not implemented, and registers are RAZ/WI
> - Currently only implemented for KVM_DEV_TYPE_ARM_VGIC_V2.
> Errors:
> - -ENODEV: Getting or setting this register is not yet supported
> + -ENXIO: Getting or setting this register is not yet supported
> -EBUSY: One or more VCPUs are running
> + -EINVAL: Invalid CPU index supplied
>
> KVM_DEV_ARM_VGIC_GRP_NR_IRQS
> Attributes:
> --
> 2.4.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-10-07 20:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 15:27 [PATCH v4 0/7] KVM: arm64: Implement API for vGICv3 live migration Pavel Fedin
2015-09-28 15:27 ` [PATCH v4 1/7] KVM: arm/arm64: Move endianness conversion out of vgic_attr_regs_access() Pavel Fedin
2015-09-28 15:27 ` [PATCH v4 2/7] KVM: arm/arm64: Refactor vGIC attributes handling code Pavel Fedin
2015-09-28 15:27 ` [PATCH v4 3/7] KVM: arm/arm64: Fix the documentation Pavel Fedin
2015-10-07 20:04 ` Christoffer Dall [this message]
2015-10-08 6:52 ` Pavel Fedin
2015-10-08 8:24 ` Christoffer Dall
2015-10-12 7:16 ` Pavel Fedin
2015-10-12 11:56 ` Christoffer Dall
2015-09-28 15:27 ` [PATCH v4 4/7] KVM: arm64: Implement vGICv3 distributor and redistributor access from userspace Pavel Fedin
2015-10-07 20:07 ` Christoffer Dall
2015-09-28 15:27 ` [PATCH v4 5/7] KVM: arm64: Refactor system register handlers Pavel Fedin
2015-09-28 15:27 ` [PATCH v4 6/7] KVM: arm64: Introduce find_reg_by_id() Pavel Fedin
2015-09-28 15:27 ` [PATCH v4 7/7] Implement vGICv3 CPU interface access Pavel Fedin
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=20151007200439.GC14315@cbox \
--to=christoffer.dall@linaro.org \
--cc=andre.przywara@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=marc.zyngier@arm.com \
--cc=p.fedin@samsung.com \
--cc=peter.maydell@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).