2 * Jailhouse, a Linux-based partitioning hypervisor
4 * Minimal configuration for PCI demo inmate:
5 * 1 CPU, 1 MB RAM, serial ports, 1 Intel HDA PCI device
7 * Copyright (c) Siemens AG, 2014
10 * Jan Kiszka <jan.kiszka@siemens.com>
12 * This work is licensed under the terms of the GNU GPL, version 2. See
13 * the COPYING file in the top-level directory.
16 #include <jailhouse/types.h>
17 #include <jailhouse/cell-config.h>
20 struct jailhouse_cell_desc cell;
22 struct jailhouse_memory mem_regions[3];
23 struct jailhouse_pio pio_regions[1]; /* ttyS0 is host -> ttyS1 */
24 struct jailhouse_pci_device pci_devices[1];
25 struct jailhouse_pci_capability pci_caps[1];
26 } __attribute__((packed)) config = {
28 .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
29 .revision = JAILHOUSE_CONFIG_REVISION,
30 .name = "agl-pci-demo",
31 .flags = JAILHOUSE_CELL_PASSIVE_COMMREG |
32 JAILHOUSE_CELL_VIRTUAL_CONSOLE_PERMITTED,
34 .cpu_set_size = sizeof(config.cpus),
35 .num_memory_regions = ARRAY_SIZE(config.mem_regions),
37 .num_pio_regions = ARRAY_SIZE(config.pio_regions),
38 .num_pci_devices = ARRAY_SIZE(config.pci_devices),
39 .num_pci_caps = ARRAY_SIZE(config.pci_caps),
43 .type = JAILHOUSE_CON_TYPE_8250,
44 .flags = JAILHOUSE_CON_ACCESS_PIO,
55 .phys_start = 0x26f00000,/*to 0x27000000| apic-demo @0x26e00000-@0x26f00000 */
58 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
59 JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE,
61 /* communication region */ {
62 .virt_start = 0x00100000,
64 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
65 JAILHOUSE_MEM_COMM_REGION,
68 .phys_start = 0xfebd4000,
69 .virt_start = 0xfebd4000,
71 .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE,
77 PIO_RANGE(0x2f8, 8), /* serial 2 */
78 //PIO_RANGE(0x3f8, 8), /* serial 1 */
79 PIO_RANGE(0xe010, 8), /* OXPCIe952 serial2 */
84 { /* Intel HDA @00:1b.0 */
85 .type = JAILHOUSE_PCI_TYPE_DEVICE,
96 { /* Intel HDA @00:1b.0 */
100 .flags = JAILHOUSE_PCICAPS_WRITE,