2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Configuration for bench inmate, 1 CPU, 64 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 ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
21 struct jailhouse_cell_desc cell;
23 struct jailhouse_memory mem_regions[2];
24 struct jailhouse_cache cache_regions[1];
25 __u8 pio_bitmap[0x2000];
26 } __attribute__((packed)) config = {
28 .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
31 .cpu_set_size = sizeof(config.cpus),
32 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
33 .num_cache_regions = ARRAY_SIZE(config.cache_regions),
35 .pio_bitmap_size = ARRAY_SIZE(config.pio_bitmap),
45 .phys_start = 0x3b600000,
48 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
49 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_DMA |
50 JAILHOUSE_MEM_LOADABLE,
52 /* communication region */ {
53 .virt_start = 0x3F900000,
55 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
56 JAILHOUSE_MEM_COMM_REGION,
64 .type = JAILHOUSE_CACHE_L3,
69 [ 0/8 ... 0x3f7/8] = -1,
70 [ 0x3f8/8 ... 0x3ff/8] = 0, /* serial1 */
71 [ 0x400/8 ... 0xe00f/8] = -1,
72 [0xe010/8 ... 0xe017/8] = -1, /* OXPCIe952 serial1 */
73 [0xe018/8 ... 0xffff/8] = -1,