Skip to content

Commit

Permalink
arm/arm64: KVM: Consolidate the PSCI include files
Browse files Browse the repository at this point in the history
As we're about to update the PSCI support, and because I'm lazy,
let's move the PSCI include file to include/kvm so that both
ARM architectures can find it.

Acked-by: Christoffer Dall <[email protected]>
Tested-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
  • Loading branch information
Marc Zyngier authored and ctmarinas committed Feb 6, 2018
1 parent f5115e8 commit 1a2fb94
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 34 deletions.
27 changes: 0 additions & 27 deletions arch/arm/include/asm/kvm_psci.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arm/kvm/handle_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <asm/kvm_emulate.h>
#include <asm/kvm_coproc.h>
#include <asm/kvm_mmu.h>
#include <asm/kvm_psci.h>
#include <kvm/arm_psci.h>
#include <trace/events/kvm.h>

#include "trace.h"
Expand Down
3 changes: 2 additions & 1 deletion arch/arm64/kvm/handle_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
#include <linux/kvm.h>
#include <linux/kvm_host.h>

#include <kvm/arm_psci.h>

#include <asm/esr.h>
#include <asm/exception.h>
#include <asm/kvm_asm.h>
#include <asm/kvm_coproc.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_mmu.h>
#include <asm/kvm_psci.h>
#include <asm/debug-monitors.h>
#include <asm/traps.h>

Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/include/asm/kvm_psci.h → include/kvm/arm_psci.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __ARM64_KVM_PSCI_H__
#define __ARM64_KVM_PSCI_H__
#ifndef __KVM_ARM_PSCI_H__
#define __KVM_ARM_PSCI_H__

#define KVM_ARM_PSCI_0_1 1
#define KVM_ARM_PSCI_0_2 2

int kvm_psci_version(struct kvm_vcpu *vcpu);
int kvm_psci_call(struct kvm_vcpu *vcpu);

#endif /* __ARM64_KVM_PSCI_H__ */
#endif /* __KVM_ARM_PSCI_H__ */
2 changes: 1 addition & 1 deletion virt/kvm/arm/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/irqbypass.h>
#include <trace/events/kvm.h>
#include <kvm/arm_pmu.h>
#include <kvm/arm_psci.h>

#define CREATE_TRACE_POINTS
#include "trace.h"
Expand All @@ -46,7 +47,6 @@
#include <asm/kvm_mmu.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_coproc.h>
#include <asm/kvm_psci.h>
#include <asm/sections.h>

#ifdef REQUIRES_VIRT
Expand Down
3 changes: 2 additions & 1 deletion virt/kvm/arm/psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

#include <asm/cputype.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_psci.h>
#include <asm/kvm_host.h>

#include <kvm/arm_psci.h>

#include <uapi/linux/psci.h>

/*
Expand Down

0 comments on commit 1a2fb94

Please sign in to comment.