2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Minimal configuration for demo inmates, 1 CPU, 1 MB RAM, 1 serial port
6 * Copyright (c) Siemens AG, 2013
9 * Jan Kiszka <jan.kiszka@siemens.com>
11 * This work is licensed under the terms of the GNU GPL, version 2. See
12 * the COPYING file in the top-level directory.
15 #include <linux/types.h>
16 #include <jailhouse/cell-config.h>
18 #define ALIGN __attribute__((aligned(1)))
19 #define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
22 struct jailhouse_cell_desc ALIGN cell;
24 struct jailhouse_memory ALIGN mem_regions[1];
25 __u8 ALIGN pio_bitmap[0x2000];
30 .cpu_set_size = sizeof(config.cpus),
31 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
33 .pio_bitmap_size = ARRAY_SIZE(config.pio_bitmap),
43 .phys_start = 0x3bf00000,
46 .access_flags = JAILHOUSE_MEM_READ |
47 JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_EXECUTE,
52 [ 0/8 ... 0x3f7/8] = -1,
53 [ 0x3f8/8 ... 0x3ff/8] = 0, /* serial1 */
54 [ 0x400/8 ... 0x407/8] = -1,
55 [ 0x408/8 ... 0x40f/8] = 0xf0, /* PM-timer H700 */
56 [ 0x410/8 ... 0x1807/8] = -1,
57 [0x1808/8 ... 0x180f/8] = 0xf0, /* PM-timer H87I-PLUS */
58 [0x1810/8 ... 0xb007/8] = -1,
59 [0xb008/8 ... 0xb00f/8] = 0xf0, /* PM-timer QEMU */
60 [0xb010/8 ... 0xe00f/8] = -1,
61 [0xe010/8 ... 0xe017/8] = 0, /* OXPCIe952 serial1 */
62 [0xe018/8 ... 0xffff/8] = -1,