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.
42 lines
12 KiB
JSON
42 lines
12 KiB
JSON
# suspend_resume_errors: rvg_device_will_resume's answers for crafted blobs: data shorter than the header, a magic that is not ours (a PGSD blob's included) and malformed sections (one running past the end, an unknown tag, a section repeated or missing, a payload of the wrong length, more than 45 device-info pairs, or a device-info key a resume does not read: 0, 43, 45) are InvalidContent (2); a version other than 1 is InvalidSuspendStateVersion (1). The sections may come in either order, and the device-info max key is carried as it is, negative included. A binary version >= 0xf6, or one the version negotiation rejects (1, 236), is InvalidGuestVersion (3); a port count other than the device's is InvalidDisplayPortCount (5); connection types that differ at version >= 238 are InternalFault (0). A blob setting every register is accepted. The device is never resumed.
|
|
{"op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_slots": 2, "watchdog_s": 30}
|
|
{"hex": "", "label": "empty", "name": "willResume", "op": "api"}
|
|
{"hex": "00", "label": "1 byte", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753", "label": "magic only", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753010000", "label": "magic and 3 bytes", "name": "willResume", "op": "api"}
|
|
{"hex": "5347565201000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "bad magic", "name": "willResume", "op": "api"}
|
|
{"hex": "44534750020000001600000001000000", "label": "a PGSD V2 header", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475302000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "version 2", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475300000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "version 0", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753ffffffff", "label": "version 0xffffffff", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000", "label": "header only", "name": "willResume", "op": "api"}
|
|
{"hex": "525647530100000001000000", "label": "header and 4 bytes", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000", "label": "registers only", "name": "willResume", "op": "api"}
|
|
{"hex": "525647530100000002000000040000002d000000", "label": "device info only", "name": "willResume", "op": "api"}
|
|
{"hex": "525647530100000002000000040000002d000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000", "label": "device info, then registers", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000", "label": "registers repeated", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d0000000300000000000000", "label": "an unknown section 3", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000004c00000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000002000000040000002d000000", "label": "registers of 76 bytes", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005400000000000000f50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000002000000040000002d000000", "label": "registers of 84 bytes", "name": "willResume", "op": "api"}
|
|
{"hex": "525647530100000002000000040000002d000000010000005000000000000000f50000000000000000000000000000000000000000000000000000000000000000000000", "label": "registers past the end", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000200000003000000000000", "label": "device info of 3 bytes", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000080000002d00000001000000", "label": "device info with half a pair", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000020000006c0100002d000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000", "label": "45 device info pairs", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000740100002d0000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000", "label": "46 device info pairs", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000020000000c0000002d0000000000000000000000", "label": "device info key 0", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000020000000c0000002d0000002b00000000000000", "label": "device info key 43", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000020000000c0000002d0000002d00000000000000", "label": "device info key 45", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000200000004000000ffffffff", "label": "device info max key -1", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "every register", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 0xf6", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753010000000100000050000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 0x80000000", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753010000000100000050000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 1", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000ec00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 236", "name": "willResume", "op": "api"}
|
|
{"hex": "52564753010000000100000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 0", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000002000000040000002d000000", "label": "binary version 244 steps down", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000002000000040000002d000000", "label": "port count 2", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000040000002d000000", "label": "no port count", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000f500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000100000002000000040000002d000000", "label": "connection types 1 at 245", "name": "willResume", "op": "api"}
|
|
{"hex": "5256475301000000010000005000000000000000ed00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000100000002000000040000002d000000", "label": "connection types 1 at 237", "name": "willResume", "op": "api"}
|
|
{"label": "after the last", "off": "0x1034", "op": "mmio_r"}
|