forked from siemens/jailhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jailhouse.h
39 lines (34 loc) · 922 Bytes
/
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
/*
* 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_preload_image {
__u64 source_address;
__u64 size;
__u64 target_address;
__u64 padding;
};
struct jailhouse_new_cell {
__u64 config_address;
__u32 config_size;
__u32 num_preload_images;
struct jailhouse_preload_image image[];
};
struct jailhouse_cell {
__u64 config_address;
__u32 config_size;
};
#define JAILHOUSE_ENABLE _IOW(0, 0, struct jailhouse_system)
#define JAILHOUSE_DISABLE _IO(0, 1)
#define JAILHOUSE_CELL_CREATE _IOW(0, 2, struct jailhouse_new_cell)
#define JAILHOUSE_CELL_DESTROY _IOW(0, 3, struct jailhouse_cell)