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>
16 #define JAILHOUSE_CELL_ID_NAMELEN 31
18 struct jailhouse_cell_create {
24 struct jailhouse_preload_image {
31 struct jailhouse_cell_id {
34 char name[JAILHOUSE_CELL_ID_NAMELEN + 1];
37 struct jailhouse_cell_load {
38 struct jailhouse_cell_id cell_id;
39 __u32 num_preload_images;
41 struct jailhouse_preload_image image[];
44 #define JAILHOUSE_CELL_ID_UNUSED (-1)
46 #define JAILHOUSE_ENABLE _IOW(0, 0, void *)
47 #define JAILHOUSE_DISABLE _IO(0, 1)
48 #define JAILHOUSE_CELL_CREATE _IOW(0, 2, struct jailhouse_cell_create)
49 #define JAILHOUSE_CELL_LOAD _IOW(0, 3, struct jailhouse_cell_load)
50 #define JAILHOUSE_CELL_START _IOW(0, 4, struct jailhouse_cell_id)
51 #define JAILHOUSE_CELL_DESTROY _IOW(0, 5, struct jailhouse_cell_id)