Thread (16 messages) 16 messages, 2 authors, 2017-02-24
DORMANTno replies
Revisions (7)
  1. rfc [diff vs current]
  2. rfc current
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v1 [diff vs current]
  7. v1 [diff vs current]

[RFC PATCH 00/13] arm64/kvm: use common sysreg definitions

From: mark.rutland@arm.com (Mark Rutland)
Date: 2017-02-24 12:16:27
Also in: kvmarm

On Fri, Feb 24, 2017 at 11:16:50AM +0100, Christoffer Dall wrote:
Hi Mark,

On Tue, Jan 31, 2017 at 06:05:38PM +0000, Mark Rutland wrote:
quoted
Whenever we add new functionality involving new system registers, we need to
add sys_reg() definitions so that we can access the registers regardless of
whether the toolchain can assemble them. At the same time, we have to add
duplicate definitions of the register encodings to KVM's sysreg tables, so that
we can handle any configurable traps. This redundancy is unfortunate, and
defining the encodings directly in the sysreg tables can make those tables
difficult to read.

This series attempts to address both of these issues by allowing us to use
common sys_reg() mnemonics in <asm/sysreg.h> to initialise KVM's sysreg tables.
To that end, this series tries to make <asm/sysreg.h> the canonical location
for common sysreg encodings.
I did not do a full in-depth review, but I really like this overall
change and the changes to KVM look great to me.
Cool; I'll respin+repost this once rc1's out.

I'll have to prepare a prize for whoever's willing to verify the
encodings. ;)

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help