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.
126 lines
9.9 KiB
JSON
126 lines
9.9 KiB
JSON
# tasks_map_ranges: Map and unmap ranges, valid and not. In the blocks setup a map walks the page table and calls the host's map_memory, and refuses a misaligned offset or length, a zero length, a range beyond the task or one that overflows; in the map and isolate setups a map is a no-op that always completes. An unmap checks the range against the task in-process (blocks and map fault), the range tracker refuses misaligned and empty ranges (blocks only), and the service does no check at all. An unknown task ID faults in every setup ("Invalid 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": "0x40034000", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40034004", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x40034008", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x4003400c", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40034010", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40034014", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x40034018", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x4003401c", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x40010000", "hex": "0d000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000002000000000004000100", "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": "0x4000841c", "hex": "3900000020000000020000000100000000000000000000000000020000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x3c"}
|
|
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000843c", "hex": "2200000020000000030000000100000000000000000000000000020000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x5c"}
|
|
{"ge": "0x3", "gpa": "0x40008000", "label": "stamp 3 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000845c", "hex": "39000000200000000400000001000000008000000000000000c0000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x7c"}
|
|
{"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "valid map, unmap, map", "op": "events"}
|
|
{"gpa": "0x4000847c", "hex": "3900000020000000050000000100000000010000000000000040000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x9c"}
|
|
{"label": "fault? map, misaligned offset", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "map, misaligned offset", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, misaligned offset", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0x5", "gpa": "0x40008000", "label": "stamp after map, misaligned offset", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000849c", "hex": "3900000020000000060000000100000000000000000000000001000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xbc"}
|
|
{"label": "fault? map, misaligned length", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "map, misaligned length", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, misaligned length", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0x6", "gpa": "0x40008000", "label": "stamp after map, misaligned length", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400084bc", "hex": "3900000020000000070000000100000000000000000000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xdc"}
|
|
{"label": "fault? map, zero length", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "map, zero length", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, zero length", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0x7", "gpa": "0x40008000", "label": "stamp after map, zero length", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400084dc", "hex": "3900000020000000080000000100000000c00100000000000080000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xfc"}
|
|
{"label": "fault? map, beyond the task", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "map, beyond the task", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, beyond the task", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "stamp after map, beyond the task", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400084fc", "hex": "3900000020000000090000000100000000c0ffffffffffff0080000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x11c"}
|
|
{"label": "fault? map, offset + length overflows", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "map, offset + length overflows", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, offset + length overflows", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "stamp after map, offset + length overflows", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000851c", "hex": "22000000200000000a0000000100000000010000000000000040000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x13c"}
|
|
{"label": "fault? unmap, misaligned offset", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, misaligned offset", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, misaligned offset", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "stamp after unmap, misaligned offset", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000853c", "hex": "22000000200000000b0000000100000000000000000000000001000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x15c"}
|
|
{"label": "fault? unmap, misaligned length", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, misaligned length", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, misaligned length", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xb", "gpa": "0x40008000", "label": "stamp after unmap, misaligned length", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000855c", "hex": "22000000200000000c0000000100000000000000000000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x17c"}
|
|
{"label": "fault? unmap, zero length", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, zero length", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, zero length", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xc", "gpa": "0x40008000", "label": "stamp after unmap, zero length", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000857c", "hex": "22000000200000000d0000000100000000c00100000000000080000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x19c"}
|
|
{"label": "fault? unmap, beyond the task", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, beyond the task", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, beyond the task", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xd", "gpa": "0x40008000", "label": "stamp after unmap, beyond the task", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000859c", "hex": "22000000200000000e0000000100000000000200000000000000000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1bc"}
|
|
{"label": "fault? unmap, empty at the task's end", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, empty at the task's end", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, empty at the task's end", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xe", "gpa": "0x40008000", "label": "stamp after unmap, empty at the task's end", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400085bc", "hex": "22000000200000000f0000000100000000c0ffffffffffff0080000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1dc"}
|
|
{"label": "fault? unmap, offset + length overflows", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 500}
|
|
{"label": "unmap, offset + length overflows", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, offset + length overflows", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"ge": "0xf", "gpa": "0x40008000", "label": "stamp after unmap, offset + length overflows", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "the edge cases", "op": "events"}
|
|
{"gpa": "0x400085dc", "hex": "3900000020000000100000000200000000000000000000000040000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1fc"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "map, unknown task", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "map, unknown task", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x400085fc", "hex": "2200000020000000110000000200000000000000000000000040000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x21c"}
|
|
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "unmap, unknown task", "off": "0x102c", "op": "mmio_r"}
|
|
{"label": "unmap, unknown task", "off": "0x103c", "op": "mmio_r"}
|
|
{"off": "0x1024", "op": "mmio_w", "val": "0x0"}
|
|
{"gpa": "0x4000861c", "hex": "20000000100000001200000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x22c"}
|
|
{"ge": "0x12", "gpa": "0x40008000", "label": "stamp 18 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "end", "op": "diff"}
|
|
{"label": "end", "op": "events"}
|