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_system header;
21 struct jailhouse_memory mem_regions[6];
22 struct jailhouse_irqchip irqchips[1];
23 } __attribute__((packed)) config = {
25 .hypervisor_memory = {
26 .phys_start = 0xa0000000,
27 .size = 0x4000000 - 0x2000,
30 .name = "VExpress Linux",
32 .cpu_set_size = sizeof(config.cpus),
33 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
44 .phys_start = 0x1c020000,
45 .virt_start = 0x1c020000,
47 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
51 .phys_start = 0x1c070000,
52 .virt_start = 0x1c070000,
54 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
58 .phys_start = 0x1c060000,
59 .virt_start = 0x1c060000,
61 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
65 .phys_start = 0x1c090000,
66 .virt_start = 0x1c090000,
68 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
71 /* Redistributors (ignore the mmio traps)*/ {
72 .phys_start = 0x2f100000,
73 .virt_start = 0x2f100000,
75 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
79 .phys_start = 0x80000000,
80 .virt_start = 0x80000000,
82 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
83 JAILHOUSE_MEM_EXECUTE,
88 .address = 0x2f000000,
89 .pin_bitmap = 0xffffffffffffffff,