Files
reims-vgpu/tests/suite/generated/device_root/device_root_page_changes.jsonl
T
Anees Iqbal 98fe2a3bd5 🆕 Replace the tree with libreims_vgpu and its C API
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.
2026-10-11 20:27:17 +03:00

52 lines
3.5 KiB
JSON

# device_root_page_changes: 0x101c: reads back what was written; a new page tears the old root down (the FIFO is disabled, interrupt and fault bits cleared, 0x103c reads 0 with no FIFO), leaves the old page's task words as they were, and the FIFO must be enabled again on the new root; writing the same page again also tears down; 0 leaves no root, and a FIFO cannot be enabled. In the blocks setup each root is a root task: create_task and its mappings, destroy_task at teardown.
{"op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_gpa": "0x40008000", "stamp_slots": 2, "watchdog_s": 30}
{"label": "fresh", "off": "0x101c", "op": "mmio_r"}
{"off": "0x101c", "op": "mmio_w", "val": "0x0"}
{"label": "0 with no root", "off": "0x101c", "op": "mmio_r"}
{"label": "0 with no root", "op": "events"}
{"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": "0x4001c000", "hex": "05000180", "op": "mem"}
{"gpa": "0x4001c004", "hex": "06000180", "op": "mem"}
{"gpa": "0x40010000", "hex": "07000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40008400", "hex": "380000001c0000000100000006000000008000000000000004000100", "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": "1e0000000c00000002000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x28"}
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008428", "hex": "630000000c00000003000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
{"label": "fault", "mmio": "0x102c", "mmio_eq": "0x1", "op": "wait", "timeout_ms": 5000}
{"label": "a NOP and a fault", "op": "events"}
{"off": "0x102c", "op": "mmio_r"}
{"off": "0x103c", "op": "mmio_r"}
{"label": "root word 3 set", "op": "diff"}
{"off": "0x101c", "op": "mmio_w", "val": "0x10008"}
{"label": "a new root page", "op": "events"}
{"from": "0x1000", "label": "on the new root page", "op": "mmio_sweep", "step": 4, "to": "0x1040"}
{"label": "the old root page after the change", "op": "diff"}
{"off": "0x1000", "op": "mmio_w", "val": "0x1"}
{"gpa": "0x40008400", "hex": "1e0000000c00000004000000", "op": "mem"}
{"off": "0x1008", "op": "mmio_w", "val": "0xc"}
{"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000}
{"label": "a NOP on the new root", "op": "events"}
{"from": "0x1000", "label": "the FIFO on the new root", "op": "mmio_sweep", "step": 4, "to": "0x1040"}
{"off": "0x101c", "op": "mmio_w", "val": "0x10008"}
{"label": "the same page again", "op": "events"}
{"from": "0x1000", "label": "the same page again", "op": "mmio_sweep", "step": 4, "to": "0x1040"}
{"off": "0x101c", "op": "mmio_w", "val": "0x0"}
{"label": "root page 0", "op": "events"}
{"from": "0x1000", "label": "root page 0", "op": "mmio_sweep", "step": 4, "to": "0x1040"}
{"off": "0x1000", "op": "mmio_w", "val": "0x1"}
{"label": "enable without a root", "off": "0x1000", "op": "mmio_r"}
{"off": "0x101c", "op": "mmio_w", "val": "0x10001"}
{"off": "0x1000", "op": "mmio_w", "val": "0x1"}
{"label": "enable on the first page again", "off": "0x1000", "op": "mmio_r"}
{"label": "back on the first page", "op": "events"}
{"label": "after", "op": "diff"}