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.
127 lines
11 KiB
JSON
127 lines
11 KiB
JSON
# native_alias_8_1: 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"}
|
|
{"gpa": "0x40044000", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40044004", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40044008", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x4004400c", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x40044010", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x40044014", "hex": "0d000180", "op": "mem"}
|
|
{"gpa": "0x40044018", "hex": "0e000180", "op": "mem"}
|
|
{"gpa": "0x4004401c", "hex": "0f000180", "op": "mem"}
|
|
{"gpa": "0x40044020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x40044024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40044028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x4004402c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40040000", "hex": "11000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024010", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024020", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024030", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024040", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024050", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024060", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024070", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024080", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40024090", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400240a0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400240b0", "hex": "00800000000000000800000001000000", "op": "mem"}
|
|
{"gpa": "0x400240c0", "hex": "00400000000000000a00000001000000", "op": "mem"}
|
|
{"gpa": "0x4006c000", "hex": "12000180", "op": "mem"}
|
|
{"gpa": "0x4006c004", "hex": "13000180", "op": "mem"}
|
|
{"gpa": "0x4006c008", "hex": "14000180", "op": "mem"}
|
|
{"gpa": "0x4006c00c", "hex": "15000180", "op": "mem"}
|
|
{"gpa": "0x4006c010", "hex": "16000180", "op": "mem"}
|
|
{"gpa": "0x4006c014", "hex": "17000180", "op": "mem"}
|
|
{"gpa": "0x4006c018", "hex": "18000180", "op": "mem"}
|
|
{"gpa": "0x4006c01c", "hex": "19000180", "op": "mem"}
|
|
{"gpa": "0x4006c020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x4006c024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x4006c028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x4006c02c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40068000", "hex": "1b000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x4004c000", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x4004c010", "hex": "00400000000000000a0000000100010000000000000000000000000000000000010101040000000000000000004000000000000000010000000000004000000040000000010000000100000000000000000000000203460040000000400000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x4004c090", "hex": "00400000000000000b00000001000000", "op": "mem"}
|
|
{"gpa": "0x4004c0a0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x4004c0b0", "hex": "00400000000000000800000001000000", "op": "mem"}
|
|
{"gpa": "0x4004c0c0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x4004c0d0", "hex": "00400000000000000900000001000000", "op": "mem"}
|
|
{"gpa": "0x40094000", "hex": "1c000180", "op": "mem"}
|
|
{"gpa": "0x40094004", "hex": "1d000180", "op": "mem"}
|
|
{"gpa": "0x40094008", "hex": "1e000180", "op": "mem"}
|
|
{"gpa": "0x4009400c", "hex": "1f000180", "op": "mem"}
|
|
{"gpa": "0x40094010", "hex": "20000180", "op": "mem"}
|
|
{"gpa": "0x40094014", "hex": "21000180", "op": "mem"}
|
|
{"gpa": "0x40094018", "hex": "22000180", "op": "mem"}
|
|
{"gpa": "0x4009401c", "hex": "23000180", "op": "mem"}
|
|
{"gpa": "0x40094020", "hex": "04000180", "op": "mem"}
|
|
{"gpa": "0x40094024", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40094028", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x4009402c", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40090000", "hex": "25000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40074000", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074010", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074020", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074030", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074040", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074050", "hex": "00400000000000000b00000001000000", "op": "mem"}
|
|
{"gpa": "0x40074060", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074070", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074080", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40074090", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400740a0", "hex": "00010000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x400740b0", "hex": "00800000000000000900000001000000", "op": "mem"}
|
|
{"gpa": "0x40008400", "hex": "380000001c0000000100000012000000000003000000000010000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1c"}
|
|
{"ge": "0x1", "gpa": "0x40008000", "label": "define task 9", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40020000", "hex": "00000000000000000000000001100000004000000000000001100000104000000000000001100000204000000000000001100000304000000000000001100000404000000000000001100000504000000000000001100000604000000000000001100000704000000000000001100000804000000000000001100000904000000000000001100000a04000000000000001100000b04000000000000001100000c040000000000000", "op": "mem"}
|
|
{"gpa": "0x4000841c", "hex": "3300000018000000020000000900000000000000a8000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
|
|
{"ge": "0x2", "gpa": "0x40008000", "label": "object list of task 9", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008434", "hex": "380000001c000000030000005600000000000300000000001a000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x50"}
|
|
{"ge": "0x3", "gpa": "0x40008000", "label": "define task 43", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40048000", "hex": "00000000000000000000000001100000004000000000000002740000104000000000000001100000904000000000000001100000a04000000000000001100000b04000000000000001100000c04000000000000001100000d040000000000000", "op": "mem"}
|
|
{"gpa": "0x40008450", "hex": "3300000018000000040000002b0000000000000060000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x68"}
|
|
{"ge": "0x4", "gpa": "0x40008000", "label": "object list of task 43", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008468", "hex": "380000001c0000000500000044000000000003000000000024000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x84"}
|
|
{"ge": "0x5", "gpa": "0x40008000", "label": "define task 34", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40070000", "hex": "00000000000000000000000001100000004000000000000001100000104000000000000001100000204000000000000001100000304000000000000001100000404000000000000001100000504000000000000001100000604000000000000001100000704000000000000001100000804000000000000001100000904000000000000001100000a04000000000000001100000b040000000000000", "op": "mem"}
|
|
{"gpa": "0x40008484", "hex": "33000000180000000600000022000000000000009c000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x9c"}
|
|
{"ge": "0x6", "gpa": "0x40008000", "label": "object list of task 34", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40058000", "hex": "6c00000002000000410100006400000002000000000000002000000000000000030000000000000001000000000000001d0000000000000030000000000000000000000000000000919090909090c03fd9d8d8d8d8d8d83fb5b4b4b4b4b4e43f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x4000849c", "hex": "4300000030000000070000002b0000000100000001000000020000000200000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xcc"}
|
|
{"ge": "0x7", "gpa": "0x40008000", "label": "write 0: task 43, 2", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40030000", "hex": "280000000200000032010000200000000c000000803a00000000000000040000000000007a000000", "op": "mem"}
|
|
{"gpa": "0x400084cc", "hex": "4300000030000000080000000900000001000000010000000c0000000200000000000100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xfc"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "write 1: task 9, 12", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40058000", "hex": "6c0000000200000041010000640000000200000000000000160000000000000029000000000000000100000000000000200000000000000002000000000000000000000000000000d2d1d1d1d1d1d13fbbbababababaea3fd9d8d8d8d8d8d83f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x400084fc", "hex": "4300000030000000090000002b0000000100000001000000020000000200000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x12c"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "write 2: task 43, 2", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40080000", "hex": "280000000200000032010000200000000c00000040490000000000004000000000000000a0000000", "op": "mem"}
|
|
{"gpa": "0x4000852c", "hex": "43000000300000000a0000002200000001000000010000000c0000000200000000000100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x15c"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "write 3: task 34, 12", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40010000", "label": "before the suspend", "len": "0x10000", "op": "diff"}
|
|
{"name": "willSuspend", "op": "api"}
|
|
{"gpa": "0x40010000", "label": "after willSuspend", "len": "0x10000", "op": "diff"}
|
|
{"name": "finishSuspend", "op": "api", "slot": "s"}
|
|
{"gpa": "0x40010000", "label": "after finishSuspend", "len": "0x10000", "op": "diff"}
|
|
{"label": "end", "op": "events"}
|