Files
reims-vgpu/tests/suite/generated/native_alias/native_alias_3_1.jsonl
T
Anees Iqbal 98fe2a3bd5 🆕 Replace the tree with libreims_vgpu and its C API
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.
2026-10-11 20:27:17 +03:00

131 lines
12 KiB
JSON

# native_alias_3_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"}
{"gpa": "0x4003c000", "hex": "06000180", "op": "mem"}
{"gpa": "0x4003c004", "hex": "07000180", "op": "mem"}
{"gpa": "0x4003c008", "hex": "08000180", "op": "mem"}
{"gpa": "0x4003c00c", "hex": "09000180", "op": "mem"}
{"gpa": "0x4003c010", "hex": "0a000180", "op": "mem"}
{"gpa": "0x4003c014", "hex": "0b000180", "op": "mem"}
{"gpa": "0x4003c018", "hex": "0c000180", "op": "mem"}
{"gpa": "0x4003c01c", "hex": "0d000180", "op": "mem"}
{"gpa": "0x4003c020", "hex": "04000180", "op": "mem"}
{"gpa": "0x4003c024", "hex": "05000180", "op": "mem"}
{"gpa": "0x40038000", "hex": "0f000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x4001c000", "hex": "00400000000000000800000001000000", "op": "mem"}
{"gpa": "0x40064000", "hex": "10000180", "op": "mem"}
{"gpa": "0x40064004", "hex": "11000180", "op": "mem"}
{"gpa": "0x40064008", "hex": "12000180", "op": "mem"}
{"gpa": "0x4006400c", "hex": "13000180", "op": "mem"}
{"gpa": "0x40064010", "hex": "14000180", "op": "mem"}
{"gpa": "0x40064014", "hex": "15000180", "op": "mem"}
{"gpa": "0x40064018", "hex": "16000180", "op": "mem"}
{"gpa": "0x4006401c", "hex": "17000180", "op": "mem"}
{"gpa": "0x40064020", "hex": "04000180", "op": "mem"}
{"gpa": "0x40064024", "hex": "05000180", "op": "mem"}
{"gpa": "0x40060000", "hex": "19000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40044000", "hex": "00010000000000000800000000000000", "op": "mem"}
{"gpa": "0x40044010", "hex": "00010000000000000800000000000000", "op": "mem"}
{"gpa": "0x40044020", "hex": "00800000000000000800000001000000", "op": "mem"}
{"gpa": "0x4008c000", "hex": "1a000180", "op": "mem"}
{"gpa": "0x4008c004", "hex": "1b000180", "op": "mem"}
{"gpa": "0x4008c008", "hex": "1c000180", "op": "mem"}
{"gpa": "0x4008c00c", "hex": "1d000180", "op": "mem"}
{"gpa": "0x4008c010", "hex": "1e000180", "op": "mem"}
{"gpa": "0x4008c014", "hex": "1f000180", "op": "mem"}
{"gpa": "0x4008c018", "hex": "20000180", "op": "mem"}
{"gpa": "0x4008c01c", "hex": "21000180", "op": "mem"}
{"gpa": "0x4008c020", "hex": "04000180", "op": "mem"}
{"gpa": "0x4008c024", "hex": "05000180", "op": "mem"}
{"gpa": "0x40088000", "hex": "23000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x4006c000", "hex": "0040000000000000090000000100010000000000000000000000000000000000010101040000000000000000000400000000000080000000000000002000000008000000010000000100000000000000000000000203460020000000080000000100000001000100010020000000000000000000", "op": "mem"}
{"gpa": "0x40008400", "hex": "380000001c000000010000001000000000800200000000000e000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1c"}
{"ge": "0x1", "gpa": "0x40008000", "label": "define task 8", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40018000", "hex": "000000000000000000000000011000000040000000000000", "op": "mem"}
{"gpa": "0x4000841c", "hex": "330000001800000002000000080000000000000018000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
{"ge": "0x2", "gpa": "0x40008000", "label": "object list of task 8", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008434", "hex": "380000001c000000030000001a000000008002000000000018000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x50"}
{"ge": "0x3", "gpa": "0x40008000", "label": "define task 13", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40040000", "hex": "000000000000000000000000011000000040000000000000011000001040000000000000011000002040000000000000", "op": "mem"}
{"gpa": "0x40008450", "hex": "3300000018000000040000000d0000000000000030000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x68"}
{"ge": "0x4", "gpa": "0x40008000", "label": "object list of task 13", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008468", "hex": "380000001c0000000500000026000000008002000000000022000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x84"}
{"ge": "0x5", "gpa": "0x40008000", "label": "define task 19", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40068000", "hex": "000000000000000000000000027400000040000000000000", "op": "mem"}
{"gpa": "0x40008484", "hex": "330000001800000006000000130000000000000018000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x9c"}
{"ge": "0x6", "gpa": "0x40008000", "label": "object list of task 19", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "28000000020000003201000020000000030000004049000000000000000100000000000028000000", "op": "mem"}
{"gpa": "0x4000849c", "hex": "4300000030000000070000000d0000000100000001000000030000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xcc"}
{"ge": "0x7", "gpa": "0x40008000", "label": "write 0: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x400084cc", "hex": "3500000018000000080000000d0000000100000003000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xe4"}
{"ge": "0x8", "gpa": "0x40008000", "label": "synchronize 3 of task 13", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "2800000002000000320100002000000001000000400a00000000000040000000000000002d000000", "op": "mem"}
{"gpa": "0x400084e4", "hex": "430000003000000009000000080000000100000001000000010000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x114"}
{"ge": "0x9", "gpa": "0x40008000", "label": "write 1: task 8, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "2800000002000000320100002000000003000000800700000000000040000000000000004e000000", "op": "mem"}
{"gpa": "0x40008514", "hex": "43000000300000000a0000000d0000000100000001000000030000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x144"}
{"ge": "0xa", "gpa": "0x40008000", "label": "write 2: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "2800000002000000320100002000000001000000803e000000000000800100000000000053000000", "op": "mem"}
{"gpa": "0x40008544", "hex": "43000000300000000b000000080000000100000001000000010000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x174"}
{"ge": "0xb", "gpa": "0x40008000", "label": "write 3: task 8, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "2800000002000000320100002000000001000000400f000000000000000100000000000066000000", "op": "mem"}
{"gpa": "0x40008574", "hex": "43000000300000000c000000080000000100000001000000010000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1a4"}
{"ge": "0xc", "gpa": "0x40008000", "label": "write 4: task 8, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "2800000002000000320100002000000001000000c03f000000000000400000000000000079000000", "op": "mem"}
{"gpa": "0x400085a4", "hex": "43000000300000000d000000080000000100000001000000010000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1d4"}
{"ge": "0xd", "gpa": "0x40008000", "label": "write 5: task 8, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "2800000002000000320100002000000001000000c02d00000000000000040000000000008c000000", "op": "mem"}
{"gpa": "0x400085d4", "hex": "43000000300000000e000000080000000100000001000000010000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x204"}
{"ge": "0xe", "gpa": "0x40008000", "label": "write 6: task 8, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "2800000002000000320100002000000003000000c00f0000000000000004000000000000ad000000", "op": "mem"}
{"gpa": "0x40008604", "hex": "43000000300000000f0000000d0000000100000001000000030000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x234"}
{"ge": "0xf", "gpa": "0x40008000", "label": "write 7: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "280000000200000032010000200000000300000080560000000000000001000000000000c0000000", "op": "mem"}
{"gpa": "0x40008634", "hex": "4300000030000000100000000d0000000100000001000000030000000200000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x264"}
{"ge": "0x10", "gpa": "0x40008000", "label": "write 8: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "280000000200000032010000200000000300000080280000000000000001000000000000d3000000", "op": "mem"}
{"gpa": "0x40008664", "hex": "4300000030000000110000000d0000000100000001000000030000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x294"}
{"ge": "0x11", "gpa": "0x40008000", "label": "write 9: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "280000000200000032010000200000000300000040620000000000000001000000000000e6000000", "op": "mem"}
{"gpa": "0x40008694", "hex": "4300000030000000120000000d0000000100000001000000030000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x2c4"}
{"ge": "0x12", "gpa": "0x40008000", "label": "write 10: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40050000", "hex": "280000000200000032010000200000000300000080240000000000000004000000000000f9000000", "op": "mem"}
{"gpa": "0x400086c4", "hex": "4300000030000000130000000d0000000100000001000000030000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x2f4"}
{"ge": "0x13", "gpa": "0x40008000", "label": "write 11: task 13, 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40078000", "hex": "6c0000000200000041010000640000000100000000000000090000000000000004000000000000000100000000000000050000000000000003000000000000000000000000000000e0dfdfdfdfdfef3f5f5f5f5f5f5fef3fdfdededededeee3f000000000000f03f46000000", "op": "mem"}
{"gpa": "0x400086f4", "hex": "430000003000000014000000130000000100000001000000010000000200000000000100000000006c00000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x324"}
{"ge": "0x14", "gpa": "0x40008000", "label": "write 12: task 19, 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40010000", "label": "before the suspend", "len": "0x8000", "op": "diff"}
{"name": "willSuspend", "op": "api"}
{"gpa": "0x40010000", "label": "after willSuspend", "len": "0x8000", "op": "diff"}
{"name": "finishSuspend", "op": "api", "slot": "s"}
{"gpa": "0x40010000", "label": "after finishSuspend", "len": "0x8000", "op": "diff"}
{"label": "end", "op": "events"}