]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
arm64: KVM: Turn system register numbers to an enum
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 25 Oct 2015 19:57:11 +0000 (19:57 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:43 +0000 (11:30 +0000)
commit9d8415d6c148a16b6d906a96f0596851d7e4d607
tree7102eaf44dbf1007d4b05509ab27420e9b1c9b5a
parent1ea66d27e7b01086669ff2abdc3ac89dc90eae51
arm64: KVM: Turn system register numbers to an enum

Having the system register numbers as #defines has been a pain
since day one, as the ordering is pretty fragile, and moving
things around leads to renumbering and epic conflict resolutions.

Now that we're mostly acessing the sysreg file in C, an enum is
a much better type to use, and we can clean things up a bit.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
12 files changed:
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_mmio.h
arch/arm64/kernel/asm-offsets.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/hyp/debug-sr.c
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/sysreg-sr.c
arch/arm64/kvm/sys_regs.c
virt/kvm/arm/vgic-v3.c