]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - configs/apic-demo.c
configs: Add cache region to x86 demo cells
[jailhouse.git] / configs / apic-demo.c
index 1351496e7659373ce6a9a19489d1ba2559a57fd2..af338c6a1b04dbac26d10a6b922f68b149c30cc1 100644 (file)
@@ -21,6 +21,7 @@ struct {
        struct jailhouse_cell_desc cell;
        __u64 cpus[1];
        struct jailhouse_memory mem_regions[2];
+       struct jailhouse_cache cache_regions[1];
        __u8 pio_bitmap[0x2000];
 } __attribute__((packed)) config = {
        .cell = {
@@ -29,6 +30,7 @@ struct {
 
                .cpu_set_size = sizeof(config.cpus),
                .num_memory_regions = ARRAY_SIZE(config.mem_regions),
+               .num_cache_regions = ARRAY_SIZE(config.cache_regions),
                .num_irqchips = 0,
                .pio_bitmap_size = ARRAY_SIZE(config.pio_bitmap),
                .num_pci_devices = 0,
@@ -54,6 +56,14 @@ struct {
                },
        },
 
+       .cache_regions = {
+               {
+                       .start = 0,
+                       .size = 2,
+                       .type = JAILHOUSE_CACHE_L3,
+               },
+       },
+
        .pio_bitmap = {
                [     0/8 ...  0x3f7/8] = -1,
                [ 0x3f8/8 ...  0x3ff/8] = 0, /* serial1 */