]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 28 Jan 2016 14:31:37 +0000 (14:31 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:18 +0000 (18:34 +0000)
In order to be able to use the code located in virt/kvm/arm/hyp,
we need to make the global hyp.h file accessible from include/asm,
similar to what we did for arm64.

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

index d02dc804f611e3eebcbcf6097168135dfd39ea53..111bda8cdebdc7e59789103838087920aedf0efe 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 __asm__(".arch_extension     virt");
 
index 732abbc34bd0afd97fa1d5cce93e02a2db2b5929..c4782812714cf4cbdbd532c8b975cd5cd20ee4cf 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 static u64 *cp15_64(struct kvm_cpu_context *ctxt, int idx)
 {
index f5f49c53be2856245eee4ba58fa1482eb752d242..7be39af2ed6cb7905112db6824c31cbc80dbe9bc 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 f11ede159080cd26945bdf75c8704fada2145a99..b13caa90cd44a55d8dfc60f0405ee514ecfd2dff 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include <asm/kvm_asm.h>
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 __asm__(".arch_extension     virt");
 
index d7535fd0784ea0fa36968279b7b3aae74c338086..2bb0c926e01c8a1fb64590eb65351b83058bc969 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 82958b8f6a74f263b14ec3074e361be774123486..a2636001e616b70836dcea74b4d1486709282df3 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hyp.h"
+#include <asm/kvm_hyp.h>
 
 /**
  * Flush per-VMID TLBs
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)