]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - configs/pci-demo.c
jailhouse: inmates: bench: Add -R option -- repeats count.
[jailhouse.git] / configs / pci-demo.c
index b0ca65f0a47f1ac613a945cd5e4c914ea2cccfae..85fd5b2f0c099019d6361d3dc001513b938dea25 100644 (file)
@@ -24,8 +24,10 @@ struct {
        struct jailhouse_memory mem_regions[3];
        __u8 pio_bitmap[0x2000];
        struct jailhouse_pci_device pci_devices[1];
+       struct jailhouse_pci_capability pci_caps[1];
 } __attribute__((packed)) config = {
        .cell = {
+               .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
                .name = "pci-demo",
                .flags = JAILHOUSE_CELL_PASSIVE_COMMREG,
 
@@ -34,6 +36,7 @@ struct {
                .num_irqchips = 0,
                .pio_bitmap_size = ARRAY_SIZE(config.pio_bitmap),
                .num_pci_devices = ARRAY_SIZE(config.pci_devices),
+               .num_pci_caps = ARRAY_SIZE(config.pci_caps),
        },
 
        .cpus = {
@@ -42,7 +45,7 @@ struct {
 
        .mem_regions = {
                /* RAM */ {
-                       .phys_start = 0x3be00000,
+                       .phys_start = 0x3f100000,
                        .virt_start = 0,
                        .size = 0x00100000,
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
@@ -74,8 +77,20 @@ struct {
                { /* Intel HDA @00:1b.0 */
                        .type = JAILHOUSE_PCI_TYPE_DEVICE,
                        .domain = 0x0000,
-                       .bus = 0x00,
-                       .devfn = 0xd8,
+                       .bdf = 0x00d8,
+                       .caps_start = 0,
+                       .num_caps = 1,
+                       .num_msi_vectors = 1,
+                       .msi_64bits = 1,
+               },
+       },
+
+       .pci_caps = {
+               { /* Intel HDA @00:1b.0 */
+                       .id = 0x5,
+                       .start = 0x60,
+                       .len = 14,
+                       .flags = JAILHOUSE_PCICAPS_WRITE,
                },
        },
 };