]> rtime.felk.cvut.cz Git - jailhouse.git/blob - driver/cell.h
0d780895a9e19f97fe2806fbd81225f848829089
[jailhouse.git] / driver / cell.h
1 /*
2  * Jailhouse, a Linux-based partitioning hypervisor
3  *
4  * Copyright (c) Siemens AG, 2014-2015
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_DRIVER_CELL_H
14 #define _JAILHOUSE_DRIVER_CELL_H
15
16 #include <linux/cpumask.h>
17 #include <linux/list.h>
18 #include <linux/kobject.h>
19
20 #include <jailhouse/cell-config.h>
21
22 struct cell {
23         struct kobject kobj;
24         struct list_head entry;
25         unsigned int id;
26         cpumask_t cpus_assigned;
27         u32 num_memory_regions;
28         u32 num_pci_devices;
29         struct jailhouse_memory *memory_regions;
30         struct jailhouse_pci_device *pci_devices;
31 };
32
33 #endif /* !_JAILHOUSE_DRIVER_CELL_H */