]> rtime.felk.cvut.cz Git - jailhouse.git/blob - hypervisor/arch/arm/include/asm/control.h
arm: GICv3: filter the guests' SGIs
[jailhouse.git] / hypervisor / arch / arm / include / asm / control.h
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) ARM Limited, 2014
5  *
6  * Authors:
7  *  Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  */
12
13 #ifndef _JAILHOUSE_ASM_CONTROL_H
14 #define _JAILHOUSE_ASM_CONTROL_H
15
16 #include <asm/cell.h>
17 #include <asm/percpu.h>
18
19 #define SGI_INJECT      0
20
21 #ifndef __ASSEMBLY__
22
23 int arch_mmu_cell_init(struct cell *cell);
24 int arch_mmu_cpu_cell_init(struct per_cpu *cpu_data);
25 void arch_handle_sgi(struct per_cpu *cpu_data, u32 irqn);
26 void arch_handle_trap(struct per_cpu *cpu_data, struct registers *guest_regs);
27 void arch_handle_exit(struct per_cpu *cpu_data, struct registers *guest_regs);
28
29 #endif /* !__ASSEMBLY__ */
30
31 #endif /* !_JAILHOUSE_ASM_CONTROL_H */