2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Copyright (c) Siemens AG, 2013
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 #include <linux/ioctl.h>
14 #include <linux/types.h>
15 #include <jailhouse/cell-config.h>
17 struct jailhouse_cell_create {
23 struct jailhouse_preload_image {
30 struct jailhouse_cell_id {
33 char name[JAILHOUSE_CELL_NAME_MAXLEN+1];
36 struct jailhouse_cell_load {
37 struct jailhouse_cell_id cell_id;
38 __u32 num_preload_images;
40 struct jailhouse_preload_image image[];
43 #define JAILHOUSE_CELL_ID_UNUSED (-1)
45 #define JAILHOUSE_ENABLE _IOW(0, 0, struct jailhouse_system)
46 #define JAILHOUSE_DISABLE _IO(0, 1)
47 #define JAILHOUSE_CELL_CREATE _IOW(0, 2, struct jailhouse_cell_create)
48 #define JAILHOUSE_CELL_LOAD _IOW(0, 3, struct jailhouse_cell_load)
49 #define JAILHOUSE_CELL_START _IOW(0, 4, struct jailhouse_cell_id)
50 #define JAILHOUSE_CELL_DESTROY _IOW(0, 5, struct jailhouse_cell_id)