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 = {
24 .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
26 .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
28 .cpu_set_size = sizeof(config.cpus),
29 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
41 .phys_start = 0x1c0a0000,
42 .virt_start = 0x1c090000,
44 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
48 .phys_start = 0xfbfe0000,
51 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
52 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,