]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - configs/qemu-vm.c
my tries
[jailhouse.git] / configs / qemu-vm.c
index f95b1f64ff650ec2585bd3c8e27ec1a3c8d46c59..5825dfefa6df2f46a165930a270c7448ebf522dd 100644 (file)
@@ -37,7 +37,7 @@ struct {
        struct jailhouse_memory mem_regions[13];
        struct jailhouse_irqchip irqchips[1];
        __u8 pio_bitmap[0x2000];
-       struct jailhouse_pci_device pci_devices[8];
+       struct jailhouse_pci_device pci_devices[9];
        struct jailhouse_pci_capability pci_caps[5];
 } __attribute__((packed)) config = {
        .header = {
@@ -191,7 +191,7 @@ struct {
                [ 0x3b0/8 ...  0x3df/8] = 0, /* VGA */
                [ 0x3e0/8 ...  0x3ef/8] = -1,
                [ 0x3f0/8 ...  0x3f7/8] = 0, /* floppy */
-               [ 0x3f8/8 ...  0x3ff/8] = -1,
+               [ 0x3f8/8 ...  0x3ff/8] = -1/*0*/,
                [ 0x400/8 ...  0x407/8] = 0xfb, /* invalid but accessed by X */
                [ 0x408/8 ... 0x5657/8] = -1,
                [0x5658/8 ... 0x565f/8] = 0xf0, /* vmport */
@@ -249,6 +249,19 @@ struct {
                        .msix_region_size = 0x1000,
                        .msix_address = 0xfebf6000,
                },
+               //added by me ---------------------------------
+               {
+                       .type = JAILHOUSE_PCI_TYPE_IVSHMEM,
+                       .domain = 0x0,
+                       .bdf = (0x08<<3),
+                       .bar_mask = {
+                               0xffffff00, 0xffffffff, 0x00000000,
+                               0x00000000, 0xffffffe0, 0xffffffff,
+                       },
+                       .shmem_region = 11,
+                       .num_msix_vectors = 1,
+               },
+               //--------------------------------------------------
                {
                        .type = JAILHOUSE_PCI_TYPE_IVSHMEM,
                        .domain = 0x0,
@@ -260,6 +273,7 @@ struct {
                        .shmem_region = 12,
                        .num_msix_vectors = 1,
                },
+               
        },
 
        .pci_caps = {