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.
61 lines
3.8 KiB
JSON
61 lines
3.8 KiB
JSON
# iosfc_ring: The ring: commands run from the read counter to the write counter, entry i at i mod size, wrapping; a doorbell with no descriptor table runs nothing, and setting the table later runs nothing until the next doorbell. A write counter below the read counter runs nothing. The read counter is writable while no ring is mapped: a ring base write unmaps it; a ring too large for guest RAM does not map.
|
|
{"iosfc": true, "op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_slots": 2, "watchdog_s": 30}
|
|
{"off": "0x1020", "op": "iosfc_w", "val": "0x3fe"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x3fe"}
|
|
{"off": "0x1030", "op": "iosfc_w", "val": "0x0"}
|
|
{"off": "0x1000", "op": "iosfc_w", "val": "0x40008000"}
|
|
{"off": "0x1008", "op": "iosfc_w", "val": "0x400"}
|
|
{"gpa": "0x4000bfe0", "hex": "0000000001000000efbead7e00000000", "op": "mem"}
|
|
{"gpa": "0x4000bff0", "hex": "0000000002000000efbead7e00000000", "op": "mem"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x400"}
|
|
{"op": "quiesce", "quiet_ms": 40}
|
|
{"label": "no descriptor table", "op": "events"}
|
|
{"off": "0x1010", "op": "iosfc_w", "val": "0x4000c000"}
|
|
{"op": "quiesce", "quiet_ms": 40}
|
|
{"label": "table set, no doorbell", "op": "events"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x400"}
|
|
{"iosfc_irqs": 2, "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008000", "hex": "0000000003000000efbead7e00000000", "op": "mem"}
|
|
{"gpa": "0x40008010", "hex": "0000000004000000efbead7e00000000", "op": "mem"}
|
|
{"gpa": "0x40008020", "hex": "0000000005000000efbead7e00000000", "op": "mem"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x403"}
|
|
{"iosfc_irqs": 5, "label": "iosfc irqs 5", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000bfe0", "label": "ring entries 1022, 1023", "len": "0x20", "op": "dump"}
|
|
{"gpa": "0x40008000", "label": "ring entries 0-2, wrapped", "len": "0x30", "op": "dump"}
|
|
{"label": "wrapped", "off": "0x1000", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1008", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1010", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1018", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1020", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1028", "op": "iosfc_r"}
|
|
{"label": "wrapped", "off": "0x1030", "op": "iosfc_r"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x3"}
|
|
{"op": "quiesce", "quiet_ms": 40}
|
|
{"label": "write counter below the read counter", "op": "events"}
|
|
{"label": "counter below", "off": "0x1000", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1008", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1010", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1018", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1020", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1028", "op": "iosfc_r"}
|
|
{"label": "counter below", "off": "0x1030", "op": "iosfc_r"}
|
|
{"off": "0x1000", "op": "iosfc_w", "val": "0x40008000"}
|
|
{"off": "0x1008", "op": "iosfc_w", "val": "0x10000000"}
|
|
{"off": "0x1020", "op": "iosfc_w", "val": "0x0"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x1"}
|
|
{"op": "quiesce", "quiet_ms": 40}
|
|
{"label": "ring too large to map", "op": "events"}
|
|
{"label": "ring too large", "off": "0x1000", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1008", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1010", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1018", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1020", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1028", "op": "iosfc_r"}
|
|
{"label": "ring too large", "off": "0x1030", "op": "iosfc_r"}
|
|
{"off": "0x1008", "op": "iosfc_w", "val": "0x400"}
|
|
{"gpa": "0x40008000", "hex": "09000000010000000000000000000000", "op": "mem"}
|
|
{"off": "0x1018", "op": "iosfc_w", "val": "0x1"}
|
|
{"iosfc_irqs": 6, "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008000", "label": "ring entry 0 at counter 0", "len": "0x10", "op": "dump"}
|
|
{"label": "end", "op": "events"}
|