]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 28 Jan 2016 13:44:07 +0000 (13:44 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:18 +0000 (18:34 +0000)
In order to be able to move code outside of kvm/hyp, we need to make
the global hyp.h file accessible from a standard location.

include/asm/kvm_hyp.h seems good enough.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_hyp.h [moved from arch/arm64/kvm/hyp/hyp.h with 100% similarity]
arch/arm64/kvm/hyp/debug-sr.c
arch/arm64/kvm/hyp/s2-setup.c
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/hyp/sysreg-sr.c
arch/arm64/kvm/hyp/timer-sr.c
arch/arm64/kvm/hyp/tlb.c
arch/arm64/kvm/hyp/vgic-v2-sr.c
arch/arm64/kvm/hyp/vgic-v3-sr.c

index c9c1e97501a90df6449acf51eafdea87f34f92c1..053cf8b057c19d556c8fccacd41374abe0fc449f 100644 (file)
@@ -19,9 +19,7 @@
 #include <linux/kvm_host.h>
 
 #include <asm/kvm_asm.h>
-#include <asm/kvm_mmu.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 #define read_debug(r,n)                read_sysreg(r##n##_el1)
 #define write_debug(v,r,n)     write_sysreg(v, r##n##_el1)
index 17e8cc09a1d8b8753542f17d459ae64cefe7e808..bfc54fd82797b08322b99b1cb6f553c5762b8dd4 100644 (file)
@@ -18,8 +18,7 @@
 #include <linux/types.h>
 #include <asm/kvm_arm.h>
 #include <asm/kvm_asm.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 void __hyp_text __init_stage2_translation(void)
 {
index ecf5b05d1e16c82338b69d1f0153952631dfa6ad..7b81e56111abd7051dff8a78ce349ba8028abba3 100644 (file)
@@ -17,8 +17,7 @@
 
 #include <linux/types.h>
 #include <asm/kvm_asm.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 static bool __hyp_text __fpsimd_enabled_nvhe(void)
 {
index 74b5f81678c2fb52c8b6f78aed48608593d73238..0f7c40eb3f53f9014ad43f16963cf426611bdeb7 100644 (file)
@@ -19,9 +19,7 @@
 #include <linux/kvm_host.h>
 
 #include <asm/kvm_asm.h>
-#include <asm/kvm_mmu.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 /* Yes, this does nothing, on purpose */
 static void __hyp_text __sysreg_do_nothing(struct kvm_cpu_context *ctxt) { }
index f276d9e7441180bd4200a6e7596db2652f615ff7..ea00d69e7078ccfaa8420c13a98a0c54b698b243 100644 (file)
@@ -19,9 +19,7 @@
 #include <linux/compiler.h>
 #include <linux/kvm_host.h>
 
-#include <asm/kvm_mmu.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 /* vcpu is already in the HYP VA space */
 void __hyp_text __timer_save_state(struct kvm_vcpu *vcpu)
index 2a7e0d838698d2dff2822bad23865932ce72e3aa..be8177cdd3bf8ef3d2d03a580e494080c88f4029 100644 (file)
@@ -15,7 +15,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 static void __hyp_text __tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa)
 {
index e71761238cfce431ba859bfcfdd35e9751bd9c7d..9514a7d90d7155276f1d9a54336b3b029ead5c0d 100644 (file)
@@ -19,9 +19,7 @@
 #include <linux/irqchip/arm-gic.h>
 #include <linux/kvm_host.h>
 
-#include <asm/kvm_mmu.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 /* vcpu is already in the HYP VA space */
 void __hyp_text __vgic_v2_save_state(struct kvm_vcpu *vcpu)
index 5dd2a26444ec116cd46d51f118c62ddcd78752ae..0035b2d3fb6d6a6549326233950b9c0ce08a0443 100644 (file)
@@ -19,9 +19,7 @@
 #include <linux/irqchip/arm-gic-v3.h>
 #include <linux/kvm_host.h>
 
-#include <asm/kvm_mmu.h>
-
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 #define vtr_to_max_lr_idx(v)           ((v) & 0xf)
 #define vtr_to_nr_pri_bits(v)          (((u32)(v) >> 29) + 1)