Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13720a56 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

arm64: KVM: Move kvm/hyp/hyp.h to include/asm/kvm_hyp.h



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: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 1f364c8c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)
+1 −2
Original line number Diff line number Diff line
@@ -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)
{
+1 −2
Original line number Diff line number Diff line
@@ -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)
{
+1 −3
Original line number Diff line number Diff line
@@ -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) { }
Loading