-
Notifications
You must be signed in to change notification settings - Fork 0
/
jailhouse.h
50 lines (43 loc) · 1.21 KB
/
jailhouse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Jailhouse, a Linux-based partitioning hypervisor
*
* Copyright (c) Siemens AG, 2013
*
* Authors:
* Jan Kiszka <jan.kiszka@siemens.com>
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*/
#include <linux/ioctl.h>
#include <linux/types.h>
#include <jailhouse/cell-config.h>
struct jailhouse_cell_create {
__u64 config_address;
__u32 config_size;
__u32 padding;
};
struct jailhouse_preload_image {
__u64 source_address;
__u64 size;
__u64 target_address;
__u64 padding;
};
struct jailhouse_cell_id {
__s32 id;
__u32 padding;
char name[JAILHOUSE_CELL_NAME_MAXLEN+1];
};
struct jailhouse_cell_load {
struct jailhouse_cell_id cell_id;
__u32 num_preload_images;
__u32 padding;
struct jailhouse_preload_image image[];
};
#define JAILHOUSE_CELL_ID_UNUSED (-1)
#define JAILHOUSE_ENABLE _IOW(0, 0, struct jailhouse_system)
#define JAILHOUSE_DISABLE _IO(0, 1)
#define JAILHOUSE_CELL_CREATE _IOW(0, 2, struct jailhouse_cell_create)
#define JAILHOUSE_CELL_LOAD _IOW(0, 3, struct jailhouse_cell_load)
#define JAILHOUSE_CELL_START _IOW(0, 4, struct jailhouse_cell_id)
#define JAILHOUSE_CELL_DESTROY _IOW(0, 5, struct jailhouse_cell_id)