summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/hyp/hyp.h
diff options
context:
space:
mode:
authorMarc Zyngier2016-01-02 16:09:54 +0100
committerMarc Zyngier2016-02-29 19:34:13 +0100
commit1d58d2cbf723704e070d560507787b9912b63839 (patch)
treef8da6533b1d7029c35a867c8881de179aca90da1 /arch/arm/kvm/hyp/hyp.h
parentARM: KVM: Add system register accessor macros (diff)
downloadkernel-qcow2-linux-1d58d2cbf723704e070d560507787b9912b63839.tar.gz
kernel-qcow2-linux-1d58d2cbf723704e070d560507787b9912b63839.tar.xz
kernel-qcow2-linux-1d58d2cbf723704e070d560507787b9912b63839.zip
ARM: KVM: Add TLB invalidation code
Convert the TLB invalidation code to C, hooking it into the build system whilst we're at it. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm/hyp/hyp.h')
-rw-r--r--arch/arm/kvm/hyp/hyp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/kvm/hyp/hyp.h b/arch/arm/kvm/hyp/hyp.h
index 727089f0ddb6..5808bbd38c5f 100644
--- a/arch/arm/kvm/hyp/hyp.h
+++ b/arch/arm/kvm/hyp/hyp.h
@@ -42,4 +42,9 @@
})
#define read_sysreg(...) __read_sysreg(__VA_ARGS__)
+#define VTTBR __ACCESS_CP15_64(6, c2)
+#define ICIALLUIS __ACCESS_CP15(c7, 0, c1, 0)
+#define TLBIALLIS __ACCESS_CP15(c8, 0, c3, 0)
+#define TLBIALLNSNHIS __ACCESS_CP15(c8, 4, c3, 4)
+
#endif /* __ARM_KVM_HYP_H__ */