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

172 lines
19 KiB
JSON

# icb_sync: The write-back (W13): an ICB listed with invalidateGuest in an exec is prepared and marked guest-invalid; SynchronizeResources (53) then writes each one's commands back into its guest pages through the service's writable cursor (synchronizeWithCPU and synchronizeIndirect{Render,Compute}CommandBuffer): each command's type, pipeline (by reference, getPipelineRef), buffer binds (reference, GPU address and offset, fillBufferBind; an unbound slot reads ~0), strides, barrier and arguments; a compute slot of type 0 stops after its type, a render one does not; an inheriting ICB writes neither pipeline nor binds; threadgroup memory lengths all land at one offset. An ICB over a read-only page fails "Failed to make cursor for synchronize" and stays as it was. A second 53 finds every guest copy valid and writes nothing. GPU addresses are the host's: keyed by the host.
{"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": "0x40194000", "hex": "05000180", "op": "mem"}
{"gpa": "0x40194004", "hex": "06000180", "op": "mem"}
{"gpa": "0x40194008", "hex": "07000180", "op": "mem"}
{"gpa": "0x4019400c", "hex": "08000180", "op": "mem"}
{"gpa": "0x40194010", "hex": "09000180", "op": "mem"}
{"gpa": "0x40194014", "hex": "0a000180", "op": "mem"}
{"gpa": "0x40194018", "hex": "0b000180", "op": "mem"}
{"gpa": "0x4019401c", "hex": "0c000180", "op": "mem"}
{"gpa": "0x40194020", "hex": "0d000180", "op": "mem"}
{"gpa": "0x40194024", "hex": "0e000180", "op": "mem"}
{"gpa": "0x40194028", "hex": "0f000180", "op": "mem"}
{"gpa": "0x4019402c", "hex": "10000180", "op": "mem"}
{"gpa": "0x40194030", "hex": "11000180", "op": "mem"}
{"gpa": "0x40194034", "hex": "12000180", "op": "mem"}
{"gpa": "0x40194038", "hex": "13000180", "op": "mem"}
{"gpa": "0x4019403c", "hex": "14000180", "op": "mem"}
{"gpa": "0x40194040", "hex": "15000180", "op": "mem"}
{"gpa": "0x40194044", "hex": "16000180", "op": "mem"}
{"gpa": "0x40194048", "hex": "17000180", "op": "mem"}
{"gpa": "0x4019404c", "hex": "18000180", "op": "mem"}
{"gpa": "0x40194050", "hex": "19000180", "op": "mem"}
{"gpa": "0x40194054", "hex": "1a000180", "op": "mem"}
{"gpa": "0x40194058", "hex": "1b000180", "op": "mem"}
{"gpa": "0x4019405c", "hex": "1c000180", "op": "mem"}
{"gpa": "0x40194060", "hex": "1d000180", "op": "mem"}
{"gpa": "0x40194064", "hex": "1e000180", "op": "mem"}
{"gpa": "0x40194068", "hex": "1f000180", "op": "mem"}
{"gpa": "0x4019406c", "hex": "20000180", "op": "mem"}
{"gpa": "0x40194070", "hex": "21000180", "op": "mem"}
{"gpa": "0x40194074", "hex": "22000180", "op": "mem"}
{"gpa": "0x40194078", "hex": "23000180", "op": "mem"}
{"gpa": "0x4019407c", "hex": "24000180", "op": "mem"}
{"gpa": "0x40194080", "hex": "25000180", "op": "mem"}
{"gpa": "0x40194084", "hex": "26000180", "op": "mem"}
{"gpa": "0x40194088", "hex": "27000180", "op": "mem"}
{"gpa": "0x4019408c", "hex": "28000180", "op": "mem"}
{"gpa": "0x40194090", "hex": "29000180", "op": "mem"}
{"gpa": "0x40194094", "hex": "2a000180", "op": "mem"}
{"gpa": "0x40194098", "hex": "2b000180", "op": "mem"}
{"gpa": "0x4019409c", "hex": "2c000180", "op": "mem"}
{"gpa": "0x401940a0", "hex": "2d000180", "op": "mem"}
{"gpa": "0x401940a4", "hex": "2e000180", "op": "mem"}
{"gpa": "0x401940a8", "hex": "2f000180", "op": "mem"}
{"gpa": "0x401940ac", "hex": "30000180", "op": "mem"}
{"gpa": "0x401940b0", "hex": "31000180", "op": "mem"}
{"gpa": "0x401940b4", "hex": "32000180", "op": "mem"}
{"gpa": "0x401940b8", "hex": "33000180", "op": "mem"}
{"gpa": "0x401940bc", "hex": "34000180", "op": "mem"}
{"gpa": "0x401940c0", "hex": "35000180", "op": "mem"}
{"gpa": "0x401940c4", "hex": "36000180", "op": "mem"}
{"gpa": "0x401940c8", "hex": "37000180", "op": "mem"}
{"gpa": "0x401940cc", "hex": "38000180", "op": "mem"}
{"gpa": "0x401940d0", "hex": "39000180", "op": "mem"}
{"gpa": "0x401940d4", "hex": "3a000180", "op": "mem"}
{"gpa": "0x401940d8", "hex": "3b000180", "op": "mem"}
{"gpa": "0x401940dc", "hex": "3c000180", "op": "mem"}
{"gpa": "0x401940e0", "hex": "3d000180", "op": "mem"}
{"gpa": "0x401940e4", "hex": "3e000180", "op": "mem"}
{"gpa": "0x401940e8", "hex": "3f000180", "op": "mem"}
{"gpa": "0x401940ec", "hex": "40000180", "op": "mem"}
{"gpa": "0x401940f0", "hex": "41000180", "op": "mem"}
{"gpa": "0x401940f4", "hex": "42000180", "op": "mem"}
{"gpa": "0x401940f8", "hex": "43000180", "op": "mem"}
{"gpa": "0x401940fc", "hex": "44000180", "op": "mem"}
{"gpa": "0x40194100", "hex": "45000180", "op": "mem"}
{"gpa": "0x40194104", "hex": "46000180", "op": "mem"}
{"gpa": "0x40194108", "hex": "47000180", "op": "mem"}
{"gpa": "0x4019410c", "hex": "48000180", "op": "mem"}
{"gpa": "0x40194110", "hex": "49000180", "op": "mem"}
{"gpa": "0x40194114", "hex": "4a000180", "op": "mem"}
{"gpa": "0x40194118", "hex": "4b000180", "op": "mem"}
{"gpa": "0x4019411c", "hex": "4c000180", "op": "mem"}
{"gpa": "0x40194120", "hex": "4d000180", "op": "mem"}
{"gpa": "0x40194124", "hex": "4e000180", "op": "mem"}
{"gpa": "0x40194128", "hex": "4f000180", "op": "mem"}
{"gpa": "0x4019412c", "hex": "50000180", "op": "mem"}
{"gpa": "0x40194130", "hex": "51000180", "op": "mem"}
{"gpa": "0x40194134", "hex": "52000180", "op": "mem"}
{"gpa": "0x40194138", "hex": "53000180", "op": "mem"}
{"gpa": "0x4019413c", "hex": "54000180", "op": "mem"}
{"gpa": "0x40194140", "hex": "55000180", "op": "mem"}
{"gpa": "0x40194144", "hex": "56000180", "op": "mem"}
{"gpa": "0x40194148", "hex": "57000180", "op": "mem"}
{"gpa": "0x4019414c", "hex": "58000180", "op": "mem"}
{"gpa": "0x40194150", "hex": "59000180", "op": "mem"}
{"gpa": "0x40194154", "hex": "5a000180", "op": "mem"}
{"gpa": "0x40194158", "hex": "5b000180", "op": "mem"}
{"gpa": "0x4019415c", "hex": "5c000180", "op": "mem"}
{"gpa": "0x40194160", "hex": "5d000180", "op": "mem"}
{"gpa": "0x40194164", "hex": "5e000180", "op": "mem"}
{"gpa": "0x40194168", "hex": "5f000180", "op": "mem"}
{"gpa": "0x4019416c", "hex": "60000180", "op": "mem"}
{"gpa": "0x40194170", "hex": "61000180", "op": "mem"}
{"gpa": "0x40194174", "hex": "62000180", "op": "mem"}
{"gpa": "0x40194178", "hex": "63000180", "op": "mem"}
{"gpa": "0x4019417c", "hex": "64000100", "op": "mem"}
{"gpa": "0x40010000", "hex": "65000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40018000", "hex": "00400000000000000800000000000000", "op": "mem"}
{"gpa": "0x40018010", "hex": "00400000000000000900000000000000", "op": "mem"}
{"gpa": "0x40018020", "hex": "09000000000000000000000002000000000000000000000010000000000000000205460004000000040000000100000001000100010000000000000000000000", "op": "mem"}
{"gpa": "0x40018060", "hex": "00400000000000000a00000000000000", "op": "mem"}
{"file": "shaders/kernel.metallib", "gpa": "0x40040000", "op": "mem_file", "sha256": "52f96907c245aafe9287e95deb4d7d9535fc6d522364a8c25b41d20bad81ad2c"}
{"gpa": "0x40018070", "hex": "00c0020000000000a00d00000f00000000000000", "op": "mem"}
{"gpa": "0x40018090", "hex": "0b00000000000000000000000d00000002070401000000000405000000", "op": "mem"}
{"file": "shaders/vert.metallib", "gpa": "0x40044000", "op": "mem_file", "sha256": "2883f32e2c00714eae4d74d3a8d5c6c8b884c51fdad7368a3d048009d2b3eea0"}
{"gpa": "0x400180b0", "hex": "0000030000000000fe0d00000f00000000000000", "op": "mem"}
{"file": "shaders/frag.metallib", "gpa": "0x40048000", "op": "mem_file", "sha256": "d69024a2345456addd8bbadac3114798b2d4531317f882cc1366c3f264e18fa4"}
{"gpa": "0x400180d0", "hex": "00400300000000002e0c00000f00000000000000", "op": "mem"}
{"gpa": "0x400180f0", "hex": "0e0000000000000000000000310000000408041c000000190401000000010407000000020408000000000000010000000800000002000400000000010446000000", "op": "mem"}
{"file": "shaders/kernel.metallib", "gpa": "0x4004c000", "op": "mem_file", "sha256": "52f96907c245aafe9287e95deb4d7d9535fc6d522364a8c25b41d20bad81ad2c"}
{"gpa": "0x40018140", "hex": "0080030000000000a00d00000f00000000000000", "op": "mem"}
{"gpa": "0x40018160", "hex": "0b0000000000000000000000070000000100040a000000", "op": "mem"}
{"gpa": "0x40050000", "hex": "000001000200", "op": "mem"}
{"gpa": "0x40018180", "hex": "00400000000000000f00000000000000", "op": "mem"}
{"gpa": "0x40054000", "hex": "400000000100000006000000000000000100000000000000000000001000000000000000ffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000080000000000000000800000000000000020000000000000001000000000000000400000000000000020000000000000001000000000000000100000000000000020000000000000003000000000000000400000000000000050000000000000006000000000000000800000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000100000000000000010000000000000010000000000000000100000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000600000000000000020000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000001000000000000000100000000000000020000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40018190", "hex": "0003000000000000100000003600000000000000600000000000020000020000000000000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000300000000000000", "op": "mem"}
{"gpa": "0x40058000", "hex": "40000000000000000600000000000000010000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000001000000000000000100000000000000040000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40018200", "hex": "0001000000000000110000003600000000000000400000000000010000000000000008000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"}
{"gpa": "0x4005c000", "hex": "40000000000000000600000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000001000000000000000100000000000000040000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40018270", "hex": "0001000000000000120000003600000000000000400000000000010000000000000003000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"}
{"gpa": "0x40060000", "hex": "01000000010000000900000000000000010000000000000000000000400000000000000000000000000000000000000000000000000000000200000000000000000000005000000000000000000000000000000000000000000000000000000004000100000000000000060000000000000002000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000009000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000c00000002000000000000000000000000000000020000000000000003000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400010000000000000002000000000000000c000000000000000000000004000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000008000000000000001000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000001000000000000000c000000000000000000000000000000000000000c00000000000000000000000200000000000000010000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000803f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000030000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x400182e0", "hex": "00050000000000001300000036000000000000000f00000001010000000000000000080000000000000004000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000500000000000000", "op": "mem"}
{"gpa": "0x40064000", "hex": "01000000000000000900000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000030000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40018350", "hex": "00010000000000001400000036000000000000000100000001010000000000000000030000000000000004000000b000080000001000000038000000000000000000000000000000d0000000000000000000000060000000000100000100000000000000", "op": "mem"}
{"gpa": "0x40190000", "hex": "40000000000000000600000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000001000000000000000100000000000000100000000000000001000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x400183c0", "hex": "00010000000000005f0000003600000000000000400000000000010000000000000000000000000000000400a0000000080000000000000000000000000000000000000010000000d8000000000000006000000070000000000100000100000000000000", "op": "mem"}
{"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000018000000000004000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x1c"}
{"ge": "0x1", "gpa": "0x40008000", "label": "stamp 1 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40014000", "hex": "000000000000000000000000011000000040000000000000011000001040000000000000084000002040000000000000011000006040000000000000061400007040000000000000071d0000904000000000000006140000b04000000000000006140000d04000000000000007410000f04000000000000006140000404100000000000007170000604100000000000001100000804100000000000014640000904100000000000014640000004200000000000014640000704200000000000014640000e04200000000000014640000504300000000000014640000c043000000000000", "op": "mem"}
{"gpa": "0x4000841c", "hex": "3300000018000000020000000100000000000000e4000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40024000", "hex": "0800000002000000", "op": "mem"}
{"gpa": "0x40008434", "hex": "430000007800000003000000010000000a000000010000000100000000000000020000000000000004000000000000000c000000000000000d000000020000000e000000020000000f0000000200000010000000020000001100000002000000120000000200000000000100000000000800000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xac"}
{"ge": "0x3", "gpa": "0x40008000", "label": "prepared, guest invalidated", "op": "wait", "timeout_ms": 5000}
{"label": "prepared, guest invalidated", "off": "0x102c", "op": "mmio_r"}
{"label": "prepared, guest invalidated", "off": "0x103c", "op": "mmio_r"}
{"byte": 238, "gpa": "0x40054000", "len": "0x300", "op": "fill"}
{"byte": 238, "gpa": "0x40058000", "len": "0x100", "op": "fill"}
{"byte": 238, "gpa": "0x4005c000", "len": "0x100", "op": "fill"}
{"byte": 238, "gpa": "0x40060000", "len": "0x500", "op": "fill"}
{"byte": 238, "gpa": "0x40064000", "len": "0x100", "op": "fill"}
{"gpa": "0x400084ac", "hex": "350000002c0000000400000001000000060000000d0000000e0000000f000000100000001100000012000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xd8"}
{"ge": "0x4", "gpa": "0x40008000", "label": "synchronize", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40054000", "label": "written back: compute", "len": "0x300", "op": "dump"}
{"gpa": "0x40058000", "label": "written back: compute, dynamic stride", "len": "0x100", "op": "dump"}
{"gpa": "0x4005c000", "label": "written back: compute, inherits", "len": "0x100", "op": "dump"}
{"gpa": "0x40060000", "label": "written back: render", "len": "0x500", "op": "dump"}
{"gpa": "0x40064000", "label": "written back: render, inherits", "len": "0x100", "op": "dump"}
{"gpa": "0x40190000", "label": "written back: compute, read-only page", "len": "0x100", "op": "dump"}
{"byte": 238, "gpa": "0x40054000", "len": "0x300", "op": "fill"}
{"byte": 238, "gpa": "0x40058000", "len": "0x100", "op": "fill"}
{"byte": 238, "gpa": "0x4005c000", "len": "0x100", "op": "fill"}
{"byte": 238, "gpa": "0x40060000", "len": "0x500", "op": "fill"}
{"byte": 238, "gpa": "0x40064000", "len": "0x100", "op": "fill"}
{"gpa": "0x400084d8", "hex": "350000002c0000000500000001000000060000000d0000000e0000000f000000100000001100000012000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x104"}
{"ge": "0x5", "gpa": "0x40008000", "label": "synchronize again", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40054000", "label": "the second synchronize: compute", "len": "0x40", "op": "dump"}
{"label": "end", "op": "events"}