Files
reims-vgpu/tests/suite/generated/interplay_memlive/interplay_memlive_held_cmdbuf.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

95 lines
7.4 KiB
JSON

# interplay_memlive_held_cmdbuf: Command-buffer pages rewritten while their execs wait on the gate. Exec 1 (root FIFO) has its segment at VA page 4; exec 2 (worker FIFO, child 2, behind the same gate) has a 40-byte fill segment starting 36 bytes before VA page 6, so only its fill value and padding are in page 6; exec 3 (root FIFO) reads its segment at VA page 5, whose leaf the guest makes read-only. While they wait the guest points page 4's leaf at a page holding another segment and page 6's at a page holding another fill value. Each FIFO copied its command before the barrier, but a command buffer is walked when the exec runs: released, exec 1 runs the other segment, exec 2 runs a segment spliced from two pages (the first page's header and fill fields, the new page's value), and exec 3 runs from the read-only page (a command buffer is only read). The two FIFOs run at once after the gate opens, so the blocks setup's read_memory calls are reported sorted.
{"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"}
{"gpa": "0x40010000", "hex": "0500010000000000", "op": "mem"}
{"gpa": "0x40004400", "hex": "00000000", "op": "mem"}
{"gpa": "0x4000440c", "hex": "0100", "op": "mem"}
{"gpa": "0x40004410", "hex": "04000100", "op": "mem"}
{"gpa": "0x40008400", "hex": "30000000100000000100000001000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x10"}
{"ge": "0x1", "gpa": "0x40008000", "label": "stamp 1 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40018000", "hex": "0700010000000000", "op": "mem"}
{"gpa": "0x40004414", "hex": "00000000", "op": "mem"}
{"gpa": "0x40004420", "hex": "0200", "op": "mem"}
{"gpa": "0x40004424", "hex": "06000100", "op": "mem"}
{"gpa": "0x40008410", "hex": "30000000100000000200000002000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x20"}
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40024000", "hex": "0a000180", "op": "mem"}
{"gpa": "0x40024004", "hex": "0b000180", "op": "mem"}
{"gpa": "0x40024008", "hex": "0c000180", "op": "mem"}
{"gpa": "0x4002400c", "hex": "0d000180", "op": "mem"}
{"gpa": "0x40024010", "hex": "0e000180", "op": "mem"}
{"gpa": "0x40024014", "hex": "0f000180", "op": "mem"}
{"gpa": "0x40024018", "hex": "10000180", "op": "mem"}
{"gpa": "0x4002401c", "hex": "11000180", "op": "mem"}
{"gpa": "0x40024020", "hex": "12000180", "op": "mem"}
{"gpa": "0x40024024", "hex": "13000180", "op": "mem"}
{"gpa": "0x40024028", "hex": "14000180", "op": "mem"}
{"gpa": "0x4002402c", "hex": "15000180", "op": "mem"}
{"gpa": "0x40024030", "hex": "16000180", "op": "mem"}
{"gpa": "0x40024034", "hex": "17000180", "op": "mem"}
{"gpa": "0x40024038", "hex": "18000180", "op": "mem"}
{"gpa": "0x4002403c", "hex": "19000180", "op": "mem"}
{"gpa": "0x40024040", "hex": "1a000180", "op": "mem"}
{"gpa": "0x40024044", "hex": "1b000180", "op": "mem"}
{"gpa": "0x40024048", "hex": "1c000180", "op": "mem"}
{"gpa": "0x4002404c", "hex": "1d000180", "op": "mem"}
{"gpa": "0x40024050", "hex": "1e000180", "op": "mem"}
{"gpa": "0x40024054", "hex": "1f000180", "op": "mem"}
{"gpa": "0x40024058", "hex": "20000180", "op": "mem"}
{"gpa": "0x4002405c", "hex": "21000180", "op": "mem"}
{"gpa": "0x40020000", "hex": "09000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x4002c000", "hex": "00400000000000000800000000000000", "op": "mem"}
{"gpa": "0x40008420", "hex": "380000001c0000000300000002000000000006000000000008000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x3c"}
{"ge": "0x3", "gpa": "0x40008000", "label": "stamp 3 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40028000", "hex": "000000000000000000000000011000000040000000000000", "op": "mem"}
{"gpa": "0x4000843c", "hex": "330000001800000004000000010000000000000018000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x54"}
{"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40038000", "hex": "28000000020000003201000020000000010000000000000000000000200000000000000011000000", "op": "mem"}
{"gpa": "0x4003ffdc", "hex": "280000000200000032010000200000000100000040000000000000002000000000000000", "op": "mem"}
{"gpa": "0x40040000", "hex": "33000000", "op": "mem"}
{"gpa": "0x4003c100", "hex": "28000000020000003201000020000000010000006000000000000000200000000000000055000000", "op": "mem"}
{"gpa": "0x40008454", "hex": "4300010038000000050000000100000001000000010000000100000001000000010000000000000000000100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x8c"}
{"ge": "0x5", "gpa": "0x40008000", "label": "exec 1, page 4: held by the gate", "op": "wait", "timeout_ms": 300}
{"gpa": "0x4001c000", "hex": "43000100380000000100000001000000010000000100000001000000010000000100000000000000dc7f0100000000002800000000000000", "op": "mem"}
{"gpa": "0x40004414", "hex": "38000000", "op": "mem"}
{"off": "0x1020", "op": "mmio_w", "val": "0x2"}
{"gpa": "0x4000848c", "hex": "4300010038000000060000000100000001000000010000000100000001000000010000000000000000410100000000002800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xc4"}
{"ge": "0x6", "gpa": "0x40008000", "label": "exec 3, page 5: held by the gate", "op": "wait", "timeout_ms": 300}
{"gpa": "0x40088000", "hex": "28000000020000003201000020000000010000002000000000000000200000000000000022000000", "op": "mem"}
{"gpa": "0x40024010", "hex": "22000180", "op": "mem"}
{"gpa": "0x4008c000", "hex": "44000000", "op": "mem"}
{"gpa": "0x40024018", "hex": "23000180", "op": "mem"}
{"gpa": "0x40024014", "hex": "0f000100", "op": "mem"}
{"gpa": "0x40014000", "hex": "1e0000000c00000001000000", "op": "mem"}
{"gpa": "0x40004400", "hex": "0c000000", "op": "mem"}
{"off": "0x1020", "op": "mmio_w", "val": "0x1"}
{"ge": "0x1", "gpa": "0x40008004", "label": "the gate opens", "op": "wait", "timeout_ms": 5000}
{"any": [{"ge": "0x5", "gpa": "0x40008000"}, {"mmio": "0x102c", "mmio_eq": "0x1"}], "label": "exec 1: completed (0) or faulted (1)", "op": "wait", "timeout_ms": 5000}
{"label": "exec 1", "off": "0x102c", "op": "mmio_r"}
{"label": "exec 1", "off": "0x103c", "op": "mmio_r"}
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
{"ge": "0x5", "gpa": "0x40008000", "label": "exec 1: stamp", "op": "wait", "timeout_ms": 5000}
{"any": [{"ge": "0x6", "gpa": "0x40008000"}, {"mmio": "0x102c", "mmio_eq": "0x1"}], "label": "exec 3: completed (0) or faulted (1)", "op": "wait", "timeout_ms": 5000}
{"label": "exec 3", "off": "0x102c", "op": "mmio_r"}
{"label": "exec 3", "off": "0x103c", "op": "mmio_r"}
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
{"ge": "0x6", "gpa": "0x40008000", "label": "exec 3: stamp", "op": "wait", "timeout_ms": 5000}
{"ge": "0x1", "gpa": "0x40008008", "label": "exec 2", "op": "wait", "timeout_ms": 5000}
{"label": "the three execs", "op": "events", "sort_blocks": true}
{"gpa": "0x40048000", "label": "fills", "len": "0x80", "op": "dump"}
{"gpa": "0x400084c4", "hex": "20000000100000000700000001000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xd4"}
{"ge": "0x7", "gpa": "0x40008000", "label": "stamp 7 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"label": "end", "op": "events"}