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

125 lines
15 KiB
JSON

# display_mapper_present: Opcode 8 presents a mapped BGRA surface: mode_change, a new frame, the present interrupt, +0xf98 counts it and +0xfb0 holds the mapping ID. The frame is the IOSurface over guest pages: a guest write shows in the next encode. While the display holds it, unmapping the surface is Busy.
{"displays": [{"modes": [[64, 32, 60]], "name": "suite", "port": 0, "serial": 1000}], "iosfc": true, "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": "0x40114000", "hex": "05000180", "op": "mem"}
{"gpa": "0x40114004", "hex": "06000180", "op": "mem"}
{"gpa": "0x40114008", "hex": "07000180", "op": "mem"}
{"gpa": "0x4011400c", "hex": "08000180", "op": "mem"}
{"gpa": "0x40114010", "hex": "09000180", "op": "mem"}
{"gpa": "0x40114014", "hex": "0a000180", "op": "mem"}
{"gpa": "0x40114018", "hex": "0b000180", "op": "mem"}
{"gpa": "0x4011401c", "hex": "0c000180", "op": "mem"}
{"gpa": "0x40114020", "hex": "0d000180", "op": "mem"}
{"gpa": "0x40114024", "hex": "0e000180", "op": "mem"}
{"gpa": "0x40114028", "hex": "0f000180", "op": "mem"}
{"gpa": "0x4011402c", "hex": "10000180", "op": "mem"}
{"gpa": "0x40114030", "hex": "11000180", "op": "mem"}
{"gpa": "0x40114034", "hex": "12000180", "op": "mem"}
{"gpa": "0x40114038", "hex": "13000180", "op": "mem"}
{"gpa": "0x4011403c", "hex": "14000180", "op": "mem"}
{"gpa": "0x40114040", "hex": "15000180", "op": "mem"}
{"gpa": "0x40114044", "hex": "16000180", "op": "mem"}
{"gpa": "0x40114048", "hex": "17000180", "op": "mem"}
{"gpa": "0x4011404c", "hex": "18000180", "op": "mem"}
{"gpa": "0x40114050", "hex": "19000180", "op": "mem"}
{"gpa": "0x40114054", "hex": "1a000180", "op": "mem"}
{"gpa": "0x40114058", "hex": "1b000180", "op": "mem"}
{"gpa": "0x4011405c", "hex": "1c000180", "op": "mem"}
{"gpa": "0x40114060", "hex": "1d000180", "op": "mem"}
{"gpa": "0x40114064", "hex": "1e000180", "op": "mem"}
{"gpa": "0x40114068", "hex": "1f000180", "op": "mem"}
{"gpa": "0x4011406c", "hex": "20000180", "op": "mem"}
{"gpa": "0x40114070", "hex": "21000180", "op": "mem"}
{"gpa": "0x40114074", "hex": "22000180", "op": "mem"}
{"gpa": "0x40114078", "hex": "23000180", "op": "mem"}
{"gpa": "0x4011407c", "hex": "24000180", "op": "mem"}
{"gpa": "0x40114080", "hex": "25000180", "op": "mem"}
{"gpa": "0x40114084", "hex": "26000180", "op": "mem"}
{"gpa": "0x40114088", "hex": "27000180", "op": "mem"}
{"gpa": "0x4011408c", "hex": "28000180", "op": "mem"}
{"gpa": "0x40114090", "hex": "29000180", "op": "mem"}
{"gpa": "0x40114094", "hex": "2a000180", "op": "mem"}
{"gpa": "0x40114098", "hex": "2b000180", "op": "mem"}
{"gpa": "0x4011409c", "hex": "2c000180", "op": "mem"}
{"gpa": "0x401140a0", "hex": "2d000180", "op": "mem"}
{"gpa": "0x401140a4", "hex": "2e000180", "op": "mem"}
{"gpa": "0x401140a8", "hex": "2f000180", "op": "mem"}
{"gpa": "0x401140ac", "hex": "30000180", "op": "mem"}
{"gpa": "0x401140b0", "hex": "31000180", "op": "mem"}
{"gpa": "0x401140b4", "hex": "32000180", "op": "mem"}
{"gpa": "0x401140b8", "hex": "33000180", "op": "mem"}
{"gpa": "0x401140bc", "hex": "34000180", "op": "mem"}
{"gpa": "0x401140c0", "hex": "35000180", "op": "mem"}
{"gpa": "0x401140c4", "hex": "36000180", "op": "mem"}
{"gpa": "0x401140c8", "hex": "37000180", "op": "mem"}
{"gpa": "0x401140cc", "hex": "38000180", "op": "mem"}
{"gpa": "0x401140d0", "hex": "39000180", "op": "mem"}
{"gpa": "0x401140d4", "hex": "3a000180", "op": "mem"}
{"gpa": "0x401140d8", "hex": "3b000180", "op": "mem"}
{"gpa": "0x401140dc", "hex": "3c000180", "op": "mem"}
{"gpa": "0x401140e0", "hex": "3d000180", "op": "mem"}
{"gpa": "0x401140e4", "hex": "3e000180", "op": "mem"}
{"gpa": "0x401140e8", "hex": "3f000180", "op": "mem"}
{"gpa": "0x401140ec", "hex": "40000180", "op": "mem"}
{"gpa": "0x401140f0", "hex": "41000180", "op": "mem"}
{"gpa": "0x401140f4", "hex": "42000180", "op": "mem"}
{"gpa": "0x401140f8", "hex": "43000180", "op": "mem"}
{"gpa": "0x401140fc", "hex": "44000180", "op": "mem"}
{"gpa": "0x40010000", "hex": "45000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40008400", "hex": "380000001c0000000100000000000000000010000000000004000100", "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": "0x40118104", "hex": "0f000000", "op": "mem"}
{"gpa": "0x4000841c", "hex": "0100000014000000020000000000000046000100", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x30"}
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008430", "hex": "0200000014000000030000000000000001000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x44"}
{"ge": "0x3", "gpa": "0x40008000", "label": "stamp 3 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"off": "0x1030", "op": "iosfc_w", "val": "0x1"}
{"off": "0x1010", "op": "iosfc_w", "val": "0x40120000"}
{"off": "0x1000", "op": "iosfc_w", "val": "0x4011c000"}
{"off": "0x1008", "op": "iosfc_w", "val": "0x400"}
{"gpa": "0x40124000", "hex": "29010400", "op": "mem"}
{"gpa": "0x40128000", "hex": "010001ff090002ff110003ff190004ff210005ff290006ff310007ff390008ff410009ff49000aff51000bff59000cff61000dff69000eff71000fff790010ff011002ff091003ff111004ff191005ff211006ff291007ff311008ff391009ff41100aff49100bff51100cff59100dff61100eff69100fff711010ff791011ff012003ff092004ff112005ff192006ff212007ff292008ff312009ff39200aff41200bff49200cff51200dff59200eff61200fff692010ff712011ff792012ff013004ff093005ff113006ff193007ff213008ff293009ff31300aff39300bff41300cff49300dff51300eff59300fff613010ff693011ff713012ff793013ff014005ff094006ff114007ff194008ff214009ff29400aff31400bff39400cff41400dff49400eff51400fff594010ff614011ff694012ff714013ff794014ff015006ff095007ff115008ff195009ff21500aff29500bff31500cff39500dff41500eff49500fff515010ff595011ff615012ff695013ff715014ff795015ff016007ff096008ff116009ff19600aff21600bff29600cff31600dff39600eff41600fff496010ff516011ff596012ff616013ff696014ff716015ff796016ff017008ff097009ff11700aff19700bff21700cff29700dff31700eff39700fff417010ff497011ff517012ff597013ff617014ff697015ff717016ff797017ff", "op": "mem"}
{"gpa": "0x40120000", "hex": "2d010400", "op": "mem"}
{"gpa": "0x4012c400", "hex": "25010400415247420000000000000000000000000000000000020000000000001000000000000000080000000000000040000000000000000400000001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40130000", "hex": "35010400", "op": "mem"}
{"gpa": "0x40134000", "hex": "020002ff0a0003ff120004ff1a0005ff220006ff2a0007ff320008ff3a0009ff42000aff4a000bff52000cff5a000dff62000eff6a000fff720010ff7a0011ff021003ff0a1004ff121005ff1a1006ff221007ff2a1008ff321009ff3a100aff42100bff4a100cff52100dff5a100eff62100fff6a1010ff721011ff7a1012ff022004ff0a2005ff122006ff1a2007ff222008ff2a2009ff32200aff3a200bff42200cff4a200dff52200eff5a200fff622010ff6a2011ff722012ff7a2013ff023005ff0a3006ff123007ff1a3008ff223009ff2a300aff32300bff3a300cff42300dff4a300eff52300fff5a3010ff623011ff6a3012ff723013ff7a3014ff024006ff0a4007ff124008ff1a4009ff22400aff2a400bff32400cff3a400dff42400eff4a400fff524010ff5a4011ff624012ff6a4013ff724014ff7a4015ff025007ff0a5008ff125009ff1a500aff22500bff2a500cff32500dff3a500eff42500fff4a5010ff525011ff5a5012ff625013ff6a5014ff725015ff7a5016ff026008ff0a6009ff12600aff1a600bff22600cff2a600dff32600eff3a600fff426010ff4a6011ff526012ff5a6013ff626014ff6a6015ff726016ff7a6017ff027009ff0a700aff12700bff1a700cff22700dff2a700eff32700fff3a7010ff427011ff4a7012ff527013ff5a7014ff627015ff6a7016ff727017ff7a7018ff", "op": "mem"}
{"gpa": "0x4012c800", "hex": "31010400414247520000000000000000000000000000000000020000000000001000000000000000080000000000000040000000000000000400000001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x4011c000", "hex": "0100000001000000efbead7e00000000", "op": "mem"}
{"gpa": "0x4011c010", "hex": "0100000002000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x2"}
{"iosfc_irqs": 2, "label": "iosfc irqs 2", "op": "wait", "timeout_ms": 5000}
{"label": "mapped", "op": "events"}
{"gpa": "0x40008444", "hex": "08000000340000000400000000000000000000000100000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x78"}
{"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"cb": "newFrame", "op": "wait", "timeout_ms": 5000}
{"label": "presented", "op": "events"}
{"gpa": "0x40118000", "label": "page", "len": "0x4000", "op": "diff"}
{"display": 0, "h": 8, "label": "surface 1", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16}
{"gpa": "0x40128000", "hex": "400040ff480041ff500042ff580043ff600044ff680045ff700046ff780047ff800048ff880049ff90004aff98004bffa0004cffa8004dffb0004effb8004fff401041ff481042ff501043ff581044ff601045ff681046ff701047ff781048ff801049ff88104aff90104bff98104cffa0104dffa8104effb0104fffb81050ff402042ff482043ff502044ff582045ff602046ff682047ff702048ff782049ff80204aff88204bff90204cff98204dffa0204effa8204fffb02050ffb82051ff403043ff483044ff503045ff583046ff603047ff683048ff703049ff78304aff80304bff88304cff90304dff98304effa0304fffa83050ffb03051ffb83052ff404044ff484045ff504046ff584047ff604048ff684049ff70404aff78404bff80404cff88404dff90404eff98404fffa04050ffa84051ffb04052ffb84053ff405045ff485046ff505047ff585048ff605049ff68504aff70504bff78504cff80504dff88504eff90504fff985050ffa05051ffa85052ffb05053ffb85054ff406046ff486047ff506048ff586049ff60604aff68604bff70604cff78604dff80604eff88604fff906050ff986051ffa06052ffa86053ffb06054ffb86055ff407047ff487048ff507049ff58704aff60704bff68704cff70704dff78704eff80704fff887050ff907051ff987052ffa07053ffa87054ffb07055ffb87056ff", "op": "mem"}
{"display": 0, "h": 8, "label": "after a guest write", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16}
{"gpa": "0x4011c020", "hex": "0200000001000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x3"}
{"iosfc_irqs": 3, "label": "iosfc irqs 3", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x4011c020", "label": "unmap while presented", "len": "0x10", "op": "dump"}
{"gpa": "0x40008478", "hex": "08000000340000000500000000000000000000000200000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xac"}
{"ge": "0x5", "gpa": "0x40008000", "label": "RGBA", "op": "wait", "timeout_ms": 5000}
{"cb": "newFrame", "cb_count": 2, "op": "wait", "timeout_ms": 5000}
{"label": "RGBA", "op": "events"}
{"display": 0, "h": 8, "label": "surface 2", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16}
{"gpa": "0x4011c030", "hex": "0200000001000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x4"}
{"iosfc_irqs": 4, "label": "iosfc irqs 4", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x4011c030", "label": "unmap after the display let go", "len": "0x10", "op": "dump"}
{"display": 0, "name": "present_counts", "op": "api"}
{"gpa": "0x40118000", "label": "page at the end", "len": "0x4000", "op": "diff"}