summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/debug-sr.c
diff options
context:
space:
mode:
authorMarc Zyngier2015-10-25 20:57:11 +0100
committerMarc Zyngier2015-12-14 12:30:43 +0100
commit9d8415d6c148a16b6d906a96f0596851d7e4d607 (patch)
tree7102eaf44dbf1007d4b05509ab27420e9b1c9b5a /arch/arm64/kvm/hyp/debug-sr.c
parentarm64: KVM: Move away from the assembly version of the world switch (diff)
downloadkernel-qcow2-linux-9d8415d6c148a16b6d906a96f0596851d7e4d607.tar.gz
kernel-qcow2-linux-9d8415d6c148a16b6d906a96f0596851d7e4d607.tar.xz
kernel-qcow2-linux-9d8415d6c148a16b6d906a96f0596851d7e4d607.zip
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>
Diffstat (limited to 'arch/arm64/kvm/hyp/debug-sr.c')
-rw-r--r--arch/arm64/kvm/hyp/debug-sr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/debug-sr.c b/arch/arm64/kvm/hyp/debug-sr.c
index d071f4591a6c..567a0d6aa1df 100644
--- a/arch/arm64/kvm/hyp/debug-sr.c
+++ b/arch/arm64/kvm/hyp/debug-sr.c
@@ -18,6 +18,7 @@
#include <linux/compiler.h>
#include <linux/kvm_host.h>
+#include <asm/kvm_asm.h>
#include <asm/kvm_mmu.h>
#include "hyp.h"