From: christoffer.dall@linaro.org (Christoffer Dall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] KVM: arm/arm64: Add VGICv3 save/restore API documentation
Date: Fri, 20 May 2016 16:11:06 +0200 [thread overview]
Message-ID: <20160520141106.GA10370@cbox> (raw)
In-Reply-To: <5735ED2F.4030104@arm.com>
Hi Marc,
[turns out I did have a few questions]
On Fri, May 13, 2016 at 04:05:19PM +0100, Marc Zyngier wrote:
> On 13/05/16 15:43, Christoffer Dall wrote:
[...]
> > +
> > + KVM_DEV_ARM_VGIC_CPU_SYSREGS
> > + Attributes:
> > + The attr field of kvm_device_attr encodes two values:
> > + bits: | 63 .... 32 | 31 .... 16 | 15 .... 0 |
> > + values: | mpidr | RES | instr |
> > +
> > + The mpidr field encodes the CPU ID based on the affinity information in the
> > + architecture defined MPIDR, and the field is encoded as follows:
> > + | 63 .... 56 | 55 .... 48 | 47 .... 40 | 39 .... 32 |
> > + | Aff3 | Aff2 | Aff1 | Aff0 |
> > +
> > + The instr field encodes the system register to access based on the fields
> > + defined in the A64 instruction set encoding for system register access
> > + (RES means the bits are reserved for future use and should be zero):
>
> Should we call this field RES0 in order to match the various
> architecture documents?
>
I define this below, so I don't think this is hugely important. If you
think it clarifies things, I can fix it.
> > +
> > + | 15 ... 14 | 13 ... 11 | 10 ... 7 | 6 ... 3 | 2 ... 0 |
> > + | Op 0 | Op1 | CRn | CRm | Op2 |
> > +
> > + All system regs accessed through this API are (rw, 64-bit) and
> > + kvm_device_attr.addr points to a __u64 value.
> > +
> > + KVM_DEV_ARM_VGIC_CPU_SYSREGS accesses the CPU interface registers for the
> > + CPU specified by the mpidr field.
> > +
> > +
> > + Limitations:
> > + - Priorities are not implemented, and registers are RAZ/WI
>
> Is that still true? We should also document the lack of Group0 support.
>
The priorities limiation must go out. Not sure why we need to document
the lack of Group0 support on the user api? Isn't that a strictly
internal limitation, but unlrelated to getting/setting the userspace
state?
Thanks,
-Christoffer
next prev parent reply other threads:[~2016-05-20 14:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-13 14:43 [PATCH v3] KVM: arm/arm64: Add VGICv3 save/restore API documentation Christoffer Dall
2016-05-13 15:05 ` Marc Zyngier
2016-05-18 17:04 ` Christoffer Dall
2016-05-20 14:11 ` Christoffer Dall [this message]
2016-05-13 15:28 ` Peter Maydell
2016-05-18 17:03 ` Christoffer Dall
2016-05-19 10:44 ` Peter Maydell
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=20160520141106.GA10370@cbox \
--to=christoffer.dall@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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).