This repository now holds libreims_vgpu, a Rust library that is the host side of the paravirtualized GPU macOS guests drive, in place of Apple's ParavirtualizedGraphics.framework: the library and its C API (reims_vgpu.h), the PCI device's option ROM, QEMU's apple-gfx on that API (vendor/qemu), the behaviour-lock suite that drives the C API as QEMU does, and reims-ctl, the VM manager users run. README.md says what it is and how it is laid out, and AGENTS.md how to change it. Every file of the earlier tree is replaced. vendor/qemu moves to the steelbrain/reims-vgpu branch of the same public repository.
162 lines
17 KiB
JSON
162 lines
17 KiB
JSON
# native_alias_12_2: Dirty resources over one another's guest memory, then a suspend (pgtest/alias_util.py): the alias generator's programs at fixed seeds. Two or three tasks, with IDs drawn from 1-47, map their data pages to one pool of guest pages; each task's private buffers and textures lie on pages of their own, which the other tasks' resources share. Execs write them on the GPU, most under invalidateGuest (their guest copies go stale), some without it, some synchronized (53) or discarded (63) after. rvg_device_will_suspend flushes every task: in ascending task ID, each task's stale resources written back and waited for before the next task's. Where resources of two tasks overlap, the pool's bytes after the flush say which task's flush came last; rvg_device_finish_suspend then finds nothing stale. Every setup runs: in the service buffers are detach resources over guest memory (their writes land at once, nothing of theirs is flushed) and textures are paged as in-process. Resources of one task that alias one another are left out: their write-backs share one blit encoder, which Metal runs concurrently, so their bytes interleave differently on every run (alias_util's measurement).
|
|
{"op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_gpa": "0x40008000", "stamp_slots": 2, "watchdog_s": 30}
|
|
{"off": "0x1034", "op": "mmio_w", "val": "0xf5"}
|
|
{"off": "0x101c", "op": "mmio_w", "val": "0x10001"}
|
|
{"off": "0x1030", "op": "mmio_w", "val": "0x10002"}
|
|
{"off": "0x1004", "op": "mmio_w", "val": "0x8000"}
|
|
{"off": "0x1010", "op": "mmio_w", "val": "0x400"}
|
|
{"off": "0x1000", "op": "mmio_w", "val": "0x1"}
|
|
{"byte": 64, "gpa": "0x40010000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 65, "gpa": "0x40014000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 66, "gpa": "0x40018000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 67, "gpa": "0x4001c000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 68, "gpa": "0x40020000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 69, "gpa": "0x40024000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 70, "gpa": "0x40028000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 71, "gpa": "0x4002c000", "len": "0x4000", "op": "fill"}
|
|
{"byte": 72, "gpa": "0x40030000", "len": "0x4000", "op": "fill"}
|
|
{"gpa": "0x40058000", "hex": "0d000180", "op": "mem"}
|
|
{"gpa": "0x40058004", "hex": "0e000180", "op": "mem"}
|
|
{"gpa": "0x40058008", "hex": "0f000180", "op": "mem"}
|
|
{"gpa": "0x4005800c", "hex": "10000180", "op": "mem"}
|
|
{"gpa": "0x40058010", "hex": "11000180", "op": "mem"}
|
|
{"gpa": "0x40058014", "hex": "12000180", "op": "mem"}
|
|
{"gpa": "0x40058018", "hex": "13000180", "op": "mem"}
|
|
{"gpa": "0x4005801c", "hex": "14000180", "op": "mem"}
|
|
{"gpa": "0x40058020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x40058024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40058028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x4005802c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40058030", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40058034", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40058038", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x4005803c", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x40058040", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x40054000", "hex": "16000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40038000", "hex": "00400000000000000f0000000100010000000000000000000000000000000000010101040000000000000000004000000000000000010000000000004000000040000000010000000100000000000000000000000203460040000000400000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40038080", "hex": "0040000000000000100000000100010000000000000000000000000000000000010101040000000000000000000400000000000040000000000000001000000010000000010000000100000000000000000000000203460010000000100000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40080000", "hex": "17000180", "op": "mem"}
|
|
{"gpa": "0x40080004", "hex": "18000180", "op": "mem"}
|
|
{"gpa": "0x40080008", "hex": "19000180", "op": "mem"}
|
|
{"gpa": "0x4008000c", "hex": "1a000180", "op": "mem"}
|
|
{"gpa": "0x40080010", "hex": "1b000180", "op": "mem"}
|
|
{"gpa": "0x40080014", "hex": "1c000180", "op": "mem"}
|
|
{"gpa": "0x40080018", "hex": "1d000180", "op": "mem"}
|
|
{"gpa": "0x4008001c", "hex": "1e000180", "op": "mem"}
|
|
{"gpa": "0x40080020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x40080024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40080028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x4008002c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40080030", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40080034", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40080038", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x4008003c", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x40080040", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x4007c000", "hex": "20000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40060000", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060010", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060020", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060030", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060040", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060050", "hex": "00400000000000000a0000000100010000000000000000000000000000000000010101040000000000000000000400000000000040000000000000001000000010000000010000000100000000000000000000000203460010000000100000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x400600d0", "hex": "0040000000000000080000000100010000000000000000000000000000000000010101040000000000000000001000000000000000010000000000004000000010000000010000000100000000000000000000000203460040000000100000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40060150", "hex": "00400000000000000b00000001000000", "op": "mem"}
|
|
{"gpa": "0x40060160", "hex": "00800000000000000e00000001000000", "op": "mem"}
|
|
{"gpa": "0x40060170", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40060180", "hex": "00400000000000000900000001000000", "op": "mem"}
|
|
{"gpa": "0x40060190", "hex": "00400000000000001000000001000000", "op": "mem"}
|
|
{"gpa": "0x400601a0", "hex": "00800000000000000c00000001000000", "op": "mem"}
|
|
{"gpa": "0x400a8000", "hex": "21000180", "op": "mem"}
|
|
{"gpa": "0x400a8004", "hex": "22000180", "op": "mem"}
|
|
{"gpa": "0x400a8008", "hex": "23000180", "op": "mem"}
|
|
{"gpa": "0x400a800c", "hex": "24000180", "op": "mem"}
|
|
{"gpa": "0x400a8010", "hex": "25000180", "op": "mem"}
|
|
{"gpa": "0x400a8014", "hex": "26000180", "op": "mem"}
|
|
{"gpa": "0x400a8018", "hex": "27000180", "op": "mem"}
|
|
{"gpa": "0x400a801c", "hex": "28000180", "op": "mem"}
|
|
{"gpa": "0x400a8020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x400a8024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x400a8028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x400a802c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x400a8030", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x400a8034", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x400a8038", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x400a803c", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x400a8040", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x400a4000", "hex": "2a000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40088000", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40088010", "hex": "00400000000000000c0000000100010000000000000000000000000000000000010101040000000000000000004000000000000000010000000000004000000040000000010000000100000000000000000000000203460040000000400000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40088090", "hex": "00400000000000000e00000001000000", "op": "mem"}
|
|
{"gpa": "0x400880a0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400880b0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400880c0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400880d0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400880e0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400880f0", "hex": "00400000000000000d0000000100010000000000000000000000000000000000010101040000000000000000000400000000000080000000000000002000000008000000010000000100000000000000000000000203460020000000080000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008400", "hex": "380000001c000000010000003e000000004004000000000015000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1c"}
|
|
{"ge": "0x1", "gpa": "0x40008000", "label": "define task 31", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40034000", "hex": "000000000000000000000000027400000040000000000000027400008040000000000000", "op": "mem"}
|
|
{"gpa": "0x4000841c", "hex": "3300000018000000020000001f0000000000000024000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
|
|
{"ge": "0x2", "gpa": "0x40008000", "label": "object list of task 31", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008434", "hex": "380000001c000000030000004400000000400400000000001f000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x50"}
|
|
{"ge": "0x3", "gpa": "0x40008000", "label": "define task 34", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4005c000", "hex": "00000000000000000000000001100000004000000000000001100000104000000000000001100000204000000000000001100000304000000000000001100000404000000000000002740000504000000000000002740000d04000000000000001100000504100000000000001100000604100000000000001100000704100000000000001100000804100000000000001100000904100000000000001100000a041000000000000", "op": "mem"}
|
|
{"gpa": "0x40008450", "hex": "3300000018000000040000002200000000000000a8000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x68"}
|
|
{"ge": "0x4", "gpa": "0x40008000", "label": "object list of task 34", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008468", "hex": "380000001c000000050000000e000000004004000000000029000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x84"}
|
|
{"ge": "0x5", "gpa": "0x40008000", "label": "define task 7", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40084000", "hex": "00000000000000000000000001100000004000000000000002740000104000000000000001100000904000000000000001100000a04000000000000001100000b04000000000000001100000c04000000000000001100000d04000000000000001100000e04000000000000002740000f040000000000000", "op": "mem"}
|
|
{"gpa": "0x40008484", "hex": "330000001800000006000000070000000000000078000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x9c"}
|
|
{"ge": "0x6", "gpa": "0x40008000", "label": "object list of task 7", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4006c000", "hex": "2800000002000000320100002000000008000000803800000000000000040000000000004b000000", "op": "mem"}
|
|
{"gpa": "0x4000849c", "hex": "430000003000000007000000220000000100000001000000080000000000000000000100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xcc"}
|
|
{"ge": "0x7", "gpa": "0x40008000", "label": "write 0: task 34, 8", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400084cc", "hex": "350000001800000008000000220000000100000008000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xe4"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "synchronize 8 of task 34", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40044000", "hex": "d00000000200000041010000640000000100000000000000110000000000000008000000000000000100000000000000130000000000000029000000000000000000000000000000979696969696c63ff1f0f0f0f0f0e03f3c3c3c3c3c3cec3f000000000000f03f46000000410100006400000002000000000000000200000000000000040000000000000001000000000000000e00000000000000070000000000000000000000000000001a1a1a1a1a1aca3f949393939393e33f101010101010903f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x400084e4", "hex": "4300000038000000090000001f0000000200000001000000010000000200000002000000020000000000010000000000d000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x11c"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "write 1: task 31, 1, 2", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40044000", "hex": "d000000002000000410100006400000002000000000000000a000000000000000200000000000000010000000000000000000000000000000e000000000000000000000000000000d2d1d1d1d1d1d13fbbbababababaea3fd9d8d8d8d8d8d83f000000000000f03f4600000041010000640000000100000000000000260000000000000007000000000000000100000000000000050000000000000030000000000000000000000000000000101010101010d03f181818181818e83f101010101010d03f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x4000851c", "hex": "43000000380000000a0000001f0000000200000001000000020000000000000001000000020000000000010000000000d000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x154"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "write 2: task 31, 2, 1", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40094000", "hex": "8c000000020000004101000064000000020000000000000037000000000000000c00000000000000010000000000000008000000000000001e000000000000000000000000000000979696969696d63f1c1c1c1c1c1cac3f585858585858e83f000000000000f03f460000003201000020000000030000000032000000000000000e00000000000061000000", "op": "mem"}
|
|
{"gpa": "0x40008554", "hex": "43000000380000000b0000000700000002000000010000000200000002000000030000000200000000000100000000008c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x18c"}
|
|
{"ge": "0xb", "gpa": "0x40008000", "label": "write 3: task 7, 2, 3", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40044000", "hex": "6c000000020000004101000064000000020000000000000005000000000000000500000000000000010000000000000008000000000000000a0000000000000000000000000000005b5b5b5b5b5bdb3fd2d1d1d1d1d1d13f919090909090c03f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x4000858c", "hex": "43000000300000000c0000001f0000000100000001000000020000000200000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1bc"}
|
|
{"ge": "0xc", "gpa": "0x40008000", "label": "write 4: task 31, 2", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4006c000", "hex": "8c00000002000000410100006400000007000000000000000c00000000000000040000000000000001000000000000000c0000000000000003000000000000000000000000000000747474747474e43f3d3d3d3d3d3ded3f989797979797c73f000000000000f03f46000000320100002000000009000000807a0000000000000004000000000000b1000000", "op": "mem"}
|
|
{"gpa": "0x400085bc", "hex": "43000000380000000d0000002200000002000000010000000700000002000000090000000200000000000100000000008c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1f4"}
|
|
{"ge": "0xd", "gpa": "0x40008000", "label": "write 5: task 34, 7, 9", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40094000", "hex": "f00000000200000041010000640000000900000000000000060000000000000001000000000000000100000000000000170000000000000007000000000000000000000000000000999898989898e83f131313131313d33f9b9a9a9a9a9aea3f000000000000f03f46000000410100006400000002000000000000000100000000000000220000000000000001000000000000003e000000000000001c000000000000000000000000000000727272727272e23f373737373737e73ffcfbfbfbfbfbeb3f000000000000f03f46000000320100002000000003000000403e000000000000c0010000000000009a000000", "op": "mem"}
|
|
{"gpa": "0x400085f4", "hex": "43000000400000000e0000000700000003000000010000000900000002000000020000000200000003000000020000000000010000000000f000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x234"}
|
|
{"ge": "0xe", "gpa": "0x40008000", "label": "write 6: task 7, 9, 2, 3", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40044000", "hex": "6c0000000200000041010000640000000100000000000000080000000000000034000000000000000100000000000000180000000000000007000000000000000000000000000000f4f3f3f3f3f3e33fbcbbbbbbbbbbeb3f1b1b1b1b1b1bbb3f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x40008634", "hex": "43000000300000000f0000001f0000000100000001000000010000000200000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x264"}
|
|
{"ge": "0xf", "gpa": "0x40008000", "label": "write 7: task 31, 1", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4006c000", "hex": "280000000200000032010000200000000b000000400c0000000000004000000000000000f8000000", "op": "mem"}
|
|
{"gpa": "0x40008664", "hex": "4300000030000000100000002200000001000000010000000b0000000000000000000100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x294"}
|
|
{"ge": "0x10", "gpa": "0x40008000", "label": "write 8: task 34, 11", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40010000", "label": "before the suspend", "len": "0x24000", "op": "diff"}
|
|
{"name": "willSuspend", "op": "api"}
|
|
{"gpa": "0x40010000", "label": "after willSuspend", "len": "0x24000", "op": "diff"}
|
|
{"name": "finishSuspend", "op": "api", "slot": "s"}
|
|
{"gpa": "0x40010000", "label": "after finishSuspend", "len": "0x24000", "op": "diff"}
|
|
{"label": "end", "op": "events"}
|