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.
195 lines
17 KiB
JSON
195 lines
17 KiB
JSON
# exec_protection_envelope: Encoder type 5, the protection envelope: a u64 of protection options goes to the command buffer, then the next 8 bytes are the real segment header, used without truncating to its length (the outer header's length bounds it). If either read fails the segment returns nil and is skipped, with no error. An inner type 5 is an invalid encoder type. The inner header's continuation flags apply.
|
|
{"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": "0x40018000", "hex": "00400000000000000800000000000000", "op": "mem"}
|
|
{"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000010000000000004000100", "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": "000000000000000000000000011000000040000000000000", "op": "mem"}
|
|
{"gpa": "0x4000841c", "hex": "330000001800000002000000010000000000000018000000", "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": "3800000005000000000000000000000028000000020000003201000020000000010000000000000000000000080000000000000011000000", "op": "mem"}
|
|
{"gpa": "0x40008434", "hex": "430000003000000003000000010000000100000001000000010000000000000000000100000000003800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x64"}
|
|
{"ge": "0x3", "gpa": "0x40008000", "label": "options 0, a blit fill", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "options 0, a blit fill", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "options 0, a blit fill", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "options 0, a blit fill", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "3800000005000000000000000000000000000000020000003201000020000000010000000000000000000000080000000000000021000000", "op": "mem"}
|
|
{"gpa": "0x40008464", "hex": "430000003000000004000000010000000100000001000000010000000000000000000100000000003800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x94"}
|
|
{"ge": "0x4", "gpa": "0x40008000", "label": "inner length 0: not applied", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "inner length 0: not applied", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "inner length 0: not applied", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "inner length 0: not applied", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "38000000050000000000000000000000ffffffff020000003201000020000000010000000000000000000000080000000000000031000000", "op": "mem"}
|
|
{"gpa": "0x40008494", "hex": "430000003000000005000000010000000100000001000000010000000000000000000100000000003800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xc4"}
|
|
{"ge": "0x5", "gpa": "0x40008000", "label": "inner length 2^32-1: not applied", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "inner length 2^32-1: not applied", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "inner length 2^32-1: not applied", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "inner length 2^32-1: not applied", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "3800000005000000000000000000000028000000020001003201000020000000010000000000000000000000080000000000000041000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "28000000020100003201000020000000010000000800000000000000080000000000000042000000", "op": "mem"}
|
|
{"gpa": "0x400084c4", "hex": "43000000400000000600000001000000010000000200000001000000000000000000010000000000380000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x104"}
|
|
{"ge": "0x6", "gpa": "0x40008000", "label": "the inner header continued by the next segment", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "the inner header continued by the next segment", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "the inner header continued by the next segment", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "the inner header continued by the next segment", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "28000000020000003201000020000000010000000000000000000000080000000000000051000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "3800000005000000000000000000000028000000020000003201000020000000010000000800000000000000080000000000000052000000", "op": "mem"}
|
|
{"gpa": "0x40008504", "hex": "43000000400000000700000001000000010000000200000001000000000000000000010000000000280000000000000000010100000000003800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x144"}
|
|
{"ge": "0x7", "gpa": "0x40008000", "label": "an envelope after an ended blit encoder", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "an envelope after an ended blit encoder", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "an envelope after an ended blit encoder", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "an envelope after an ended blit encoder", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "0800000005000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "28000000020000003201000020000000010000000000000000000000080000000000000068000000", "op": "mem"}
|
|
{"gpa": "0x40008544", "hex": "43000000400000000800000001000000010000000200000001000000000000000000010000000000080000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x184"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "outer length 8: options unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 8: options unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 8: options unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 8: options unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "0c0000000500000000000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "2800000002000000320100002000000001000000000000000000000008000000000000006c000000", "op": "mem"}
|
|
{"gpa": "0x40008584", "hex": "430000004000000009000000010000000100000002000000010000000000000000000100000000000c0000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1c4"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "outer length 12: options unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 12: options unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 12: options unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 12: options unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "0f0000000500000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "2800000002000000320100002000000001000000000000000000000008000000000000006f000000", "op": "mem"}
|
|
{"gpa": "0x400085c4", "hex": "43000000400000000a000000010000000100000002000000010000000000000000000100000000000f0000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x204"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "outer length 15: options unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 15: options unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 15: options unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 15: options unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "10000000050000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "28000000020000003201000020000000010000000000000000000000080000000000000070000000", "op": "mem"}
|
|
{"gpa": "0x40008604", "hex": "43000000400000000b00000001000000010000000200000001000000000000000000010000000000100000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x244"}
|
|
{"ge": "0xb", "gpa": "0x40008000", "label": "outer length 16: inner header unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 16: inner header unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 16: inner header unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 16: inner header unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "1400000005000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "28000000020000003201000020000000010000000000000000000000080000000000000074000000", "op": "mem"}
|
|
{"gpa": "0x40008644", "hex": "43000000400000000c00000001000000010000000200000001000000000000000000010000000000140000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x284"}
|
|
{"ge": "0xc", "gpa": "0x40008000", "label": "outer length 20: inner header unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 20: inner header unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 20: inner header unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 20: inner header unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "1700000005000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024100", "hex": "28000000020000003201000020000000010000000000000000000000080000000000000077000000", "op": "mem"}
|
|
{"gpa": "0x40008684", "hex": "43000000400000000d00000001000000010000000200000001000000000000000000010000000000170000000000000000010100000000002800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x2c4"}
|
|
{"ge": "0xd", "gpa": "0x40008000", "label": "outer length 23: inner header unread, skipped", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "outer length 23: inner header unread, skipped", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "outer length 23: inner header unread, skipped", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "outer length 23: inner header unread, skipped", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "180000000500000000000000000000000800000005000000", "op": "mem"}
|
|
{"gpa": "0x400086c4", "hex": "43000000300000000e000000010000000100000001000000010000000000000000000100000000001800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x2f4"}
|
|
{"label": "an envelope in an envelope", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "an envelope in an envelope", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "an envelope in an envelope", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "an envelope in an envelope", "len": "0x40", "op": "dump"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x40024000", "hex": "3800000005000000000000000000000028000000020100003201000020000000010000000000000000000000080000000000000071000000", "op": "mem"}
|
|
{"gpa": "0x400086f4", "hex": "43000000300000000f000000010000000100000001000000010000000000000000000100000000003800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x324"}
|
|
{"label": "inner continuesPrevious with nothing carried", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "inner continuesPrevious with nothing carried", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "inner continuesPrevious with nothing carried", "off": "0x103c", "op": "mmio_r"}
|
|
{"gpa": "0x40034000", "label": "inner continuesPrevious with nothing carried", "len": "0x40", "op": "dump"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"label": "end", "op": "events"}
|