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 } __attribute__((packed)) config = {
25 .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
27 .cpu_set_size = sizeof(config.cpus),
28 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
40 .phys_start = 0x1c0b0000,
41 .virt_start = 0x1c090000,
43 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
47 .phys_start = 0xfbff0000,
50 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
51 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,