KVM: arm64: add SYS_DESC()
authorMark Rutland <mark.rutland@arm.com>
Fri, 13 Jan 2017 17:25:11 +0000 (17:25 +0000)
committerMark Rutland <mark.rutland@arm.com>
Wed, 22 Mar 2017 18:37:36 +0000 (18:37 +0000)
commit8db5d8f141db8c05d7e4ff44e15fedf142511fc9
tree06d3f535ad01516efc2eff462303c9ab690d4eb0
parent4dc529257d9dd6a2c930c794ed8077cdd6e843ce
KVM: arm64: add SYS_DESC()

This patch adds a macro enabling us to initialise sys_reg_desc
structures based on common sysreg encoding definitions in
<asm/sysreg.h>. Subsequent patches will use this to simplify the KVM
code.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: kvmarm@lists.cs.columbia.edu
arch/arm64/kvm/sys_regs.h