2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Copyright (c) ARM Limited, 2014
7 * Jean-Philippe Brucker <jean-philippe.brucker@arm.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/types.h>
14 #include <jailhouse/cell-config.h>
16 #define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])
19 struct jailhouse_cell_desc cell;
21 struct jailhouse_memory mem_regions[2];
22 struct jailhouse_irqchip irqchips[1];
23 } __attribute__((packed)) config = {
25 .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
27 .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
29 .cpu_set_size = sizeof(config.cpus),
30 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
42 .phys_start = 0x1c0c0000,
43 .virt_start = 0x1c090000,
45 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
49 .phys_start = 0xa6000000,
50 .virt_start = 0x00000000,
52 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
53 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
59 .address = 0x2f000000, /* GIC v2: 0x2f001000 */