Files
reims-vgpu/tests/suite/generated/iosfc/iosfc_map_test_unmap_v1.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

39 lines
3.8 KiB
JSON

# iosfc_map_test_unmap_v1: Map, test and unmap one BGRA surface over one guest page, v1 and v2: map sets the descriptor's mapped bit (bit 1) and writes status 0; test writes i x 8 into each 8-byte word of the surface, into the guest page; unmap clears the bit. A second map of a mapped id succeeds without re-creating it; unmapping an unmapped id succeeds; testing it fails (BadArgument). One interrupt a command.
{"iosfc": true, "op": "config", "ram": [["0x40000000", "0x4000000"]], "stamp_slots": 2, "watchdog_s": 30}
{"off": "0x1030", "op": "iosfc_w", "val": "0x0"}
{"off": "0x1010", "op": "iosfc_w", "val": "0x4000c000"}
{"off": "0x1000", "op": "iosfc_w", "val": "0x40008000"}
{"off": "0x1008", "op": "iosfc_w", "val": "0x400"}
{"gpa": "0x40010000", "hex": "15000400", "op": "mem"}
{"gpa": "0x4000c000", "hex": "19000400", "op": "mem"}
{"gpa": "0x40018200", "hex": "1100040041524742000000000000000000020000011000000108000040000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
{"gpa": "0x40008000", "hex": "0100000001000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x1"}
{"iosfc_irqs": 1, "label": "iosfc irqs 1", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008000", "label": "map", "len": "0x10", "op": "dump"}
{"gpa": "0x40018200", "label": "descriptor after map", "len": "0x8", "op": "dump"}
{"gpa": "0x40008010", "hex": "0300000001000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x2"}
{"iosfc_irqs": 2, "label": "iosfc irqs 2", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008010", "label": "test", "len": "0x10", "op": "dump"}
{"gpa": "0x40014000", "label": "after test", "len": "0x4000", "op": "diff"}
{"gpa": "0x40008020", "hex": "0100000001000000efbead7e00000000", "op": "mem"}
{"gpa": "0x40008030", "hex": "0200000001000000efbead7e00000000", "op": "mem"}
{"gpa": "0x40008040", "hex": "0200000001000000efbead7e00000000", "op": "mem"}
{"gpa": "0x40008050", "hex": "0300000001000000efbead7e00000000", "op": "mem"}
{"off": "0x1018", "op": "iosfc_w", "val": "0x6"}
{"iosfc_irqs": 6, "label": "iosfc irqs 6", "op": "wait", "timeout_ms": 5000}
{"gpa": "0x40008020", "label": "map again, unmap twice, test", "len": "0x10", "op": "dump"}
{"gpa": "0x40008030", "label": "map again, unmap twice, test", "len": "0x10", "op": "dump"}
{"gpa": "0x40008040", "label": "map again, unmap twice, test", "len": "0x10", "op": "dump"}
{"gpa": "0x40008050", "label": "map again, unmap twice, test", "len": "0x10", "op": "dump"}
{"gpa": "0x40018200", "label": "descriptor after unmap", "len": "0x8", "op": "dump"}
{"label": "interrupts", "op": "events"}
{"label": "end", "off": "0x1000", "op": "iosfc_r"}
{"label": "end", "off": "0x1008", "op": "iosfc_r"}
{"label": "end", "off": "0x1010", "op": "iosfc_r"}
{"label": "end", "off": "0x1018", "op": "iosfc_r"}
{"label": "end", "off": "0x1020", "op": "iosfc_r"}
{"label": "end", "off": "0x1028", "op": "iosfc_r"}
{"label": "end", "off": "0x1030", "op": "iosfc_r"}