2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Copyright (c) Siemens AG, 2014-2015
7 * Jan Kiszka <jan.kiszka@siemens.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
13 #ifndef _JAILHOUSE_DRIVER_CELL_H
14 #define _JAILHOUSE_DRIVER_CELL_H
16 #include <linux/cpumask.h>
17 #include <linux/list.h>
18 #include <linux/kobject.h>
19 #include <linux/uaccess.h>
21 #include "jailhouse.h"
23 #include <jailhouse/cell-config.h>
27 struct list_head entry;
29 cpumask_t cpus_assigned;
30 u32 num_memory_regions;
31 struct jailhouse_memory *memory_regions;
34 struct jailhouse_pci_device *pci_devices;
35 #endif /* CONFIG_PCI */
38 extern struct cell *root_cell;
40 void jailhouse_cell_kobj_release(struct kobject *kobj);
43 jailhouse_cell_create(const struct jailhouse_cell_desc *cell_desc);
44 void jailhouse_cell_register(struct cell *cell);
45 void jailhouse_cell_delete(struct cell *cell);
47 int jailhouse_cell_prepare_root(const struct jailhouse_cell_desc *cell_desc);
48 void jailhouse_cell_register_root(void);
49 void jailhouse_cell_delete_root(void);
51 void jailhouse_cell_delete_all(void);
53 int jailhouse_cmd_cell_create(struct jailhouse_cell_create __user *arg);
54 int jailhouse_cmd_cell_load(struct jailhouse_cell_load __user *arg);
55 int jailhouse_cmd_cell_start(const char __user *arg);
56 int jailhouse_cmd_cell_destroy(const char __user *arg);
58 #endif /* !_JAILHOUSE_DRIVER_CELL_H */