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.
143 lines
14 KiB
JSON
143 lines
14 KiB
JSON
# interplay_versions_efi_2: EFI and the driver's version: the firmware's framebuffer comes up before any version (_features all zero, nothing tears it down), then the driver writes its version: 0 and 2 (no efiDisplay) tear EFI down and zero its registers, 3 and 245 keep it presenting; 2 then 245 cannot bring it back. A guest at 2 that enables EFI after its version write keeps it (the flag is checked only at a version write), and a migration then restores it on the fresh device (rvg_device_did_resume replays the EFI registers after rvg_device_will_resume set version 2) until the guest writes its version again. Each driver then connects port 0, presents, turns EFI off and presents again.
|
|
{"descriptor": {"trace": true}, "displays": [{"modes": [[64, 32, 60], [16, 8, 60]], "name": "head0", "port": 0, "serial": 1000}], "op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_gpa": "0x4000c000", "stamp_slots": 2, "watchdog_s": 120}
|
|
{"gpa": "0x40008000", "hex": "210021ff220022ff230023ff240024ff250025ff260026ff270027ff280028ff290029ff2a002aff2b002bff2c002cff2d002dff2e002eff2f002fff300030ff210122ff220121ff230124ff240123ff250126ff260125ff270128ff280127ff29012aff2a0129ff2b012cff2c012bff2d012eff2e012dff2f0130ff30012fff210223ff220224ff230221ff240222ff250227ff260228ff270225ff280226ff29022bff2a022cff2b0229ff2c022aff2d022fff2e0230ff2f022dff30022eff210324ff220323ff230322ff240321ff250328ff260327ff270326ff280325ff29032cff2a032bff2b032aff2c0329ff2d0330ff2e032fff2f032eff30032dff210425ff220426ff230427ff240428ff250421ff260422ff270423ff280424ff29042dff2a042eff2b042fff2c0430ff2d0429ff2e042aff2f042bff30042cff210526ff220525ff230528ff240527ff250522ff260521ff270524ff280523ff29052eff2a052dff2b0530ff2c052fff2d052aff2e0529ff2f052cff30052bff210627ff220628ff230625ff240626ff250623ff260624ff270621ff280622ff29062fff2a0630ff2b062dff2c062eff2d062bff2e062cff2f0629ff30062aff210728ff220727ff230726ff240725ff250724ff260723ff270722ff280721ff290730ff2a072fff2b072eff2c072dff2d072cff2e072bff2f072aff300729ff", "op": "mem"}
|
|
{"off": "0x1200", "op": "mmio_w", "val": "0x1"}
|
|
{"off": "0x121c", "op": "mmio_w", "val": "0x80010"}
|
|
{"off": "0x1218", "op": "mmio_w", "val": "0x20"}
|
|
{"off": "0x1228", "op": "mmio_w", "val": "0x40"}
|
|
{"off": "0x1210", "op": "mmio_w", "val": "0x10002"}
|
|
{"off": "0x1214", "op": "mmio_w", "val": "0x4000"}
|
|
{"cb": "newFrame", "cb_count": 1, "label": "EFI's first frame", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "EFI up", "off": "0x1200", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1204", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x120c", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1210", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1214", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1218", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x121c", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1224", "op": "mmio_r"}
|
|
{"label": "EFI up", "off": "0x1228", "op": "mmio_r"}
|
|
{"display": 0, "h": 8, "label": "EFI frame", "op": "encode", "w": 16}
|
|
{"off": "0x1034", "op": "mmio_w", "val": "0x2"}
|
|
{"label": "driver 0x2", "off": "0x1034", "op": "mmio_r"}
|
|
{"label": "driver 0x2", "off": "0x122c", "op": "mmio_r"}
|
|
{"label": "driver 0x2", "off": "0x1234", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1200", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1204", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x120c", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1210", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1214", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1218", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x121c", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1224", "op": "mmio_r"}
|
|
{"label": "after version 0x2", "off": "0x1228", "op": "mmio_r"}
|
|
{"op": "quiesce", "quiet_ms": 100}
|
|
{"label": "after version 0x2", "op": "events"}
|
|
{"off": "0x101c", "op": "mmio_w", "val": "0x10001"}
|
|
{"off": "0x1030", "op": "mmio_w", "val": "0x10003"}
|
|
{"off": "0x1004", "op": "mmio_w", "val": "0x8000"}
|
|
{"off": "0x1010", "op": "mmio_w", "val": "0x400"}
|
|
{"off": "0x1000", "op": "mmio_w", "val": "0x1"}
|
|
{"gpa": "0x4000c400", "hex": "1e0000000c00000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xc"}
|
|
{"ge": "0x1", "gpa": "0x4000c000", "label": "first NOP", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40098000", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x40098004", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x40098008", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x4009800c", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40098010", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x40098014", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x40098018", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x4009801c", "hex": "0d000180", "op": "mem"}
|
|
{"gpa": "0x40098020", "hex": "0e000180", "op": "mem"}
|
|
{"gpa": "0x40098024", "hex": "0f000180", "op": "mem"}
|
|
{"gpa": "0x40098028", "hex": "10000180", "op": "mem"}
|
|
{"gpa": "0x4009802c", "hex": "11000180", "op": "mem"}
|
|
{"gpa": "0x40098030", "hex": "12000180", "op": "mem"}
|
|
{"gpa": "0x40098034", "hex": "13000180", "op": "mem"}
|
|
{"gpa": "0x40098038", "hex": "14000180", "op": "mem"}
|
|
{"gpa": "0x4009803c", "hex": "15000180", "op": "mem"}
|
|
{"gpa": "0x40098040", "hex": "16000180", "op": "mem"}
|
|
{"gpa": "0x40098044", "hex": "17000180", "op": "mem"}
|
|
{"gpa": "0x40098048", "hex": "18000180", "op": "mem"}
|
|
{"gpa": "0x4009804c", "hex": "19000180", "op": "mem"}
|
|
{"gpa": "0x40098050", "hex": "1a000180", "op": "mem"}
|
|
{"gpa": "0x40098054", "hex": "1b000180", "op": "mem"}
|
|
{"gpa": "0x40098058", "hex": "1c000180", "op": "mem"}
|
|
{"gpa": "0x4009805c", "hex": "1d000180", "op": "mem"}
|
|
{"gpa": "0x40098060", "hex": "1e000180", "op": "mem"}
|
|
{"gpa": "0x40098064", "hex": "1f000180", "op": "mem"}
|
|
{"gpa": "0x40098068", "hex": "20000180", "op": "mem"}
|
|
{"gpa": "0x4009806c", "hex": "21000180", "op": "mem"}
|
|
{"gpa": "0x40098070", "hex": "22000180", "op": "mem"}
|
|
{"gpa": "0x40098074", "hex": "23000180", "op": "mem"}
|
|
{"gpa": "0x40098078", "hex": "24000180", "op": "mem"}
|
|
{"gpa": "0x4009807c", "hex": "25000180", "op": "mem"}
|
|
{"gpa": "0x40014000", "hex": "26000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40038000", "hex": "1020408010204080102040801020408000ff00ff00ff00ff00ff00ff00ff00ff", "op": "mem"}
|
|
{"gpa": "0x4003c000", "hex": "010001ff050002ff090003ff0d0004ff110005ff150006ff190007ff1d0008ff210009ff25000aff29000bff2d000cff31000dff35000eff39000fff3d0010ff010802ff050801ff090804ff0d0803ff110806ff150805ff190808ff1d0807ff21080aff250809ff29080cff2d080bff31080eff35080dff390810ff3d080fff011003ff051004ff091001ff0d1002ff111007ff151008ff191005ff1d1006ff21100bff25100cff291009ff2d100aff31100fff351010ff39100dff3d100eff011804ff051803ff091802ff0d1801ff111808ff151807ff191806ff1d1805ff21180cff25180bff29180aff2d1809ff311810ff35180fff39180eff3d180dff012005ff052006ff092007ff0d2008ff112001ff152002ff192003ff1d2004ff21200dff25200eff29200fff2d2010ff312009ff35200aff39200bff3d200cff012806ff052805ff092808ff0d2807ff112802ff152801ff192804ff1d2803ff21280eff25280dff292810ff2d280fff31280aff352809ff39280cff3d280bff013007ff053008ff093005ff0d3006ff113003ff153004ff193001ff1d3002ff21300fff253010ff29300dff2d300eff31300bff35300cff393009ff3d300aff013808ff053807ff093806ff0d3805ff113804ff153803ff193802ff1d3801ff213810ff25380fff29380eff2d380dff31380cff35380bff39380aff3d3809ff", "op": "mem"}
|
|
{"gpa": "0x4001c000", "hex": "004000000000000009000000415247420100000000000000100000000800000040000004", "op": "mem"}
|
|
{"gpa": "0x40040000", "hex": "310031ff350032ff390033ff3d0034ff410035ff450036ff490037ff4d0038ff510039ff55003aff59003bff5d003cff61003dff65003eff69003fff6d0040ff310832ff350831ff390834ff3d0833ff410836ff450835ff490838ff4d0837ff51083aff550839ff59083cff5d083bff61083eff65083dff690840ff6d083fff311033ff351034ff391031ff3d1032ff411037ff451038ff491035ff4d1036ff51103bff55103cff591039ff5d103aff61103fff651040ff69103dff6d103eff311834ff351833ff391832ff3d1831ff411838ff451837ff491836ff4d1835ff51183cff55183bff59183aff5d1839ff611840ff65183fff69183eff6d183dff312035ff352036ff392037ff3d2038ff412031ff452032ff492033ff4d2034ff51203dff55203eff59203fff5d2040ff612039ff65203aff69203bff6d203cff312836ff352835ff392838ff3d2837ff412832ff452831ff492834ff4d2833ff51283eff55283dff592840ff5d283fff61283aff652839ff69283cff6d283bff313037ff353038ff393035ff3d3036ff413033ff453034ff493031ff4d3032ff51303fff553040ff59303dff5d303eff61303bff65303cff693039ff6d303aff313838ff353837ff393836ff3d3835ff413834ff453833ff493832ff4d3831ff513840ff55383fff59383eff5d383dff61383cff65383bff69383aff6d3839ff", "op": "mem"}
|
|
{"gpa": "0x4001c030", "hex": "00400000000000000a000000415247420100000000000000100000000800000040000004", "op": "mem"}
|
|
{"gpa": "0x40044000", "hex": "000001a46e6f6e65021000006d6e74725247422058595a2007ea00010001000000000000616373704150504c000000006e6f6e65000000000000000000000000000000000000f6d6000100000000d32d6e6f6e6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000864657363000000e4000000607774707400000144000000147258595a00000158000000146758595a0000016c000000146258595a000001800000001472545243000001940000001067545243000001940000001062545243000001940000001064657363000000000000000673756974650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058595a20000000000000f6d6000100000000d32d58595a200000000000006fa4000038f60000038f58595a2000000000000062960000b787000018dc58595a2000000000000024a200000f830000b6cf63757276000000000000000102330000", "op": "mem"}
|
|
{"gpa": "0x4001c060", "hex": "00400000000000000c0000000100010000000000000000000000000000000000010101040000000000000000400000000000000010000000000000000400000004000000010000003000000000000000000000000203460004000000040000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x4000c40c", "hex": "380000001c0000000200000000000000000008000000000005000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x28"}
|
|
{"ge": "0x2", "gpa": "0x4000c000", "label": "define task 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40018000", "hex": "000000000000000000000000042400000040000000000000042400003040000000000000117400006040000000000000", "op": "mem"}
|
|
{"gpa": "0x4000c428", "hex": "330000001800000003000000000000000000000030000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x40"}
|
|
{"ge": "0x3", "gpa": "0x4000c000", "label": "task 0's object list", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4009c104", "hex": "0f000000", "op": "mem"}
|
|
{"gpa": "0x4000c440", "hex": "0100000014000000040000000000000027000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x54"}
|
|
{"ge": "0x4", "gpa": "0x4000c000", "label": "connect 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000c454", "hex": "0200000014000000050000000000000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x68"}
|
|
{"ge": "0x5", "gpa": "0x4000c000", "label": "ack 1 on 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4009c000", "label": "port 0: connected", "len": "0x4000", "op": "diff"}
|
|
{"gpa": "0x4000c468", "hex": "070000003000000006000000000000000000000001000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x98"}
|
|
{"ge": "0x6", "gpa": "0x4000c000", "label": "present 0 on 0", "op": "wait", "timeout_ms": 5000}
|
|
{"cb": "newFrame", "cb_count": 2, "label": "frame 0 on port 0", "op": "wait", "timeout_ms": 5000}
|
|
{"display": 0, "h": 8, "label": "frame 0 on port 0", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16}
|
|
{"off": "0x1200", "op": "mmio_w", "val": "0x0"}
|
|
{"label": "EFI off", "off": "0x1200", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1204", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x120c", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1210", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1214", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1218", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x121c", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1224", "op": "mmio_r"}
|
|
{"label": "EFI off", "off": "0x1228", "op": "mmio_r"}
|
|
{"op": "quiesce", "quiet_ms": 100}
|
|
{"label": "EFI off", "op": "events"}
|
|
{"gpa": "0x4000c498", "hex": "070000003000000007000000000000000000000002000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xc8"}
|
|
{"ge": "0x7", "gpa": "0x4000c000", "label": "present 1 on 0", "op": "wait", "timeout_ms": 5000}
|
|
{"cb": "newFrame", "cb_count": 3, "label": "frame 1 on port 0", "op": "wait", "timeout_ms": 5000}
|
|
{"display": 0, "h": 8, "label": "frame 1 on port 0", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16}
|
|
{"gpa": "0x4000c4c8", "hex": "3600000014000000080000000100000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xdc"}
|
|
{"ge": "0x8", "gpa": "0x4000c000", "label": "delete backing 1", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000c4dc", "hex": "3600000014000000090000000200000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xf0"}
|
|
{"ge": "0x9", "gpa": "0x4000c000", "label": "delete backing 2", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000c4f0", "hex": "01000000140000000a0000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x104"}
|
|
{"ge": "0xa", "gpa": "0x4000c000", "label": "disconnect 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000c504", "hex": "20000000100000000b00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x114"}
|
|
{"ge": "0xb", "gpa": "0x4000c000", "label": "delete task 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000c514", "hex": "1e0000000c0000000c000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x120"}
|
|
{"ge": "0xc", "gpa": "0x4000c000", "label": "last NOP", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "torn down", "op": "events"}
|
|
{"gpa": "0x40004000", "label": "root page: task words", "len": "0x10", "op": "dump"}
|
|
{"gpa": "0x40004900", "label": "root page: display words", "len": "0x8", "op": "dump"}
|
|
{"label": "torn down", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "torn down", "off": "0x103c", "op": "mmio_r"}
|
|
{"name": "release", "op": "api"}
|
|
{"label": "released", "op": "events"}
|