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.
79 lines
5.8 KiB
JSON
79 lines
5.8 KiB
JSON
# tasks_define_refusals: Each define refusal in turn, and what it leaves in guest memory (nothing): length 0 ("Task Length Zero"), page-table depth 0, 4 and 0xffffffff and a length beyond the table's coverage ("Invalid Page Table Depth"), a task root outside guest RAM (the mapping fails). Then the edges that pass: a length of exactly 4096 pages at depth 1, and a length that is not a whole page. In the blocks setup the refused tasks still call create_task, then destroy_task.
|
|
{"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": "0x40024000", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40024004", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x40024008", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x4002400c", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40010000", "hex": "09000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"label": "bring-up", "op": "diff"}
|
|
{"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000000000000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1c"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "length 0", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "length 0", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x40010000", "hex": "09000100000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x4000841c", "hex": "380000001c0000000200000002000000000001000000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x38"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "depth 0x0", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "depth 0x0", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x40010000", "hex": "09000100040000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008438", "hex": "380000001c0000000300000002000000000001000000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x54"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "depth 0x4", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "depth 0x4", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x40010000", "hex": "09000100ffffffff0000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008454", "hex": "380000001c0000000400000002000000000001000000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x70"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "depth 0xffffffff", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "depth 0xffffffff", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x40010000", "hex": "09000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008470", "hex": "380000001c0000000500000002000000004000040000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x8c"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "one page beyond depth 1's coverage", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "one page beyond depth 1's coverage", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x4000848c", "hex": "380000001c0000000600000002000000010000040000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xa8"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "one byte beyond depth 1's coverage", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "one byte beyond depth 1's coverage", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x400084a8", "hex": "380000001c0000000700000002000000000001000000000000400100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xc4"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "task root outside guest RAM", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "task root outside guest RAM", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"label": "after the refusals", "op": "diff"}
|
|
{"label": "refusals", "op": "events"}
|
|
{"gpa": "0x400084c4", "hex": "380000001c0000000800000002000000000000040000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xe0"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "stamp 8 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "depth 1, exactly its coverage", "op": "diff"}
|
|
{"gpa": "0x400084e0", "hex": "20000000100000000900000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xf0"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "stamp 9 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400084f0", "hex": "380000001c0000000a0000000200000023c100000000000004000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x10c"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "stamp 10 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "a length that is not a whole page", "op": "diff"}
|
|
{"gpa": "0x4000850c", "hex": "20000000100000000b00000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x11c"}
|
|
{"ge": "0xb", "gpa": "0x40008000", "label": "stamp 11 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "deleted", "op": "diff"}
|
|
{"label": "end", "op": "events"}
|