]> rtime.felk.cvut.cz Git - jailhouse.git/blob - hypervisor/arch/arm/include/asm/cell.h
arm: Use full bitmap to manage per-cell interrupt access
[jailhouse.git] / hypervisor / arch / arm / include / asm / cell.h
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) Siemens AG, 2013-2016
5  *
6  * Authors:
7  *  Jan Kiszka <jan.kiszka@siemens.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_CELL_H
14 #define _JAILHOUSE_ASM_CELL_H
15
16 #include <jailhouse/types.h>
17 #include <asm/smp.h>
18 #include <asm/spinlock.h>
19
20 #ifndef __ASSEMBLY__
21
22 #include <jailhouse/cell-config.h>
23 #include <jailhouse/paging.h>
24 #include <jailhouse/hypercall.h>
25
26 /** ARM-specific cell states. */
27 struct arch_cell {
28         struct paging_structures mm;
29         struct smp_ops *smp;
30
31         spinlock_t caches_lock;
32         bool needs_flush;
33
34         u32 irq_bitmap[1024/32];
35
36         unsigned int last_virt_id;
37 };
38
39 /** PCI-related cell states. */
40 struct pci_cell {
41 };
42
43 #endif /* !__ASSEMBLY__ */
44 #endif /* !_JAILHOUSE_ASM_CELL_H */