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.
140 lines
12 KiB
JSON
140 lines
12 KiB
JSON
# textures_normal_roundtrip: A 4x4 RGBA8Unorm texture (type 2, descriptor v1, private) over guest bytes: listed in an exec it is paged in, so a copy to a shared buffer shows the guest's texels; a fill with no flags stays on the host; with invalidateGuest + synchronize (flags 6) the fill is copied back into the guest's pages; opcode 52 + 53 does the same; invalidateHost (flag 1) re-reads a guest write. The same for a descriptor v2 (commandType 52) texture with shared storage.
|
|
{"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": "0x40114000", "hex": "05000180", "op": "mem"}
|
|
{"gpa": "0x40114004", "hex": "06000180", "op": "mem"}
|
|
{"gpa": "0x40114008", "hex": "07000180", "op": "mem"}
|
|
{"gpa": "0x4011400c", "hex": "08000180", "op": "mem"}
|
|
{"gpa": "0x40114010", "hex": "09000180", "op": "mem"}
|
|
{"gpa": "0x40114014", "hex": "0a000180", "op": "mem"}
|
|
{"gpa": "0x40114018", "hex": "0b000180", "op": "mem"}
|
|
{"gpa": "0x4011401c", "hex": "0c000180", "op": "mem"}
|
|
{"gpa": "0x40114020", "hex": "0d000180", "op": "mem"}
|
|
{"gpa": "0x40114024", "hex": "0e000180", "op": "mem"}
|
|
{"gpa": "0x40114028", "hex": "0f000180", "op": "mem"}
|
|
{"gpa": "0x4011402c", "hex": "10000180", "op": "mem"}
|
|
{"gpa": "0x40114030", "hex": "11000180", "op": "mem"}
|
|
{"gpa": "0x40114034", "hex": "12000180", "op": "mem"}
|
|
{"gpa": "0x40114038", "hex": "13000180", "op": "mem"}
|
|
{"gpa": "0x4011403c", "hex": "14000180", "op": "mem"}
|
|
{"gpa": "0x40114040", "hex": "15000180", "op": "mem"}
|
|
{"gpa": "0x40114044", "hex": "16000180", "op": "mem"}
|
|
{"gpa": "0x40114048", "hex": "17000180", "op": "mem"}
|
|
{"gpa": "0x4011404c", "hex": "18000180", "op": "mem"}
|
|
{"gpa": "0x40114050", "hex": "19000180", "op": "mem"}
|
|
{"gpa": "0x40114054", "hex": "1a000180", "op": "mem"}
|
|
{"gpa": "0x40114058", "hex": "1b000180", "op": "mem"}
|
|
{"gpa": "0x4011405c", "hex": "1c000180", "op": "mem"}
|
|
{"gpa": "0x40114060", "hex": "1d000180", "op": "mem"}
|
|
{"gpa": "0x40114064", "hex": "1e000180", "op": "mem"}
|
|
{"gpa": "0x40114068", "hex": "1f000180", "op": "mem"}
|
|
{"gpa": "0x4011406c", "hex": "20000180", "op": "mem"}
|
|
{"gpa": "0x40114070", "hex": "21000180", "op": "mem"}
|
|
{"gpa": "0x40114074", "hex": "22000180", "op": "mem"}
|
|
{"gpa": "0x40114078", "hex": "23000180", "op": "mem"}
|
|
{"gpa": "0x4011407c", "hex": "24000180", "op": "mem"}
|
|
{"gpa": "0x40114080", "hex": "25000180", "op": "mem"}
|
|
{"gpa": "0x40114084", "hex": "26000180", "op": "mem"}
|
|
{"gpa": "0x40114088", "hex": "27000180", "op": "mem"}
|
|
{"gpa": "0x4011408c", "hex": "28000180", "op": "mem"}
|
|
{"gpa": "0x40114090", "hex": "29000180", "op": "mem"}
|
|
{"gpa": "0x40114094", "hex": "2a000180", "op": "mem"}
|
|
{"gpa": "0x40114098", "hex": "2b000180", "op": "mem"}
|
|
{"gpa": "0x4011409c", "hex": "2c000180", "op": "mem"}
|
|
{"gpa": "0x401140a0", "hex": "2d000180", "op": "mem"}
|
|
{"gpa": "0x401140a4", "hex": "2e000180", "op": "mem"}
|
|
{"gpa": "0x401140a8", "hex": "2f000180", "op": "mem"}
|
|
{"gpa": "0x401140ac", "hex": "30000180", "op": "mem"}
|
|
{"gpa": "0x401140b0", "hex": "31000180", "op": "mem"}
|
|
{"gpa": "0x401140b4", "hex": "32000180", "op": "mem"}
|
|
{"gpa": "0x401140b8", "hex": "33000180", "op": "mem"}
|
|
{"gpa": "0x401140bc", "hex": "34000180", "op": "mem"}
|
|
{"gpa": "0x401140c0", "hex": "35000180", "op": "mem"}
|
|
{"gpa": "0x401140c4", "hex": "36000180", "op": "mem"}
|
|
{"gpa": "0x401140c8", "hex": "37000180", "op": "mem"}
|
|
{"gpa": "0x401140cc", "hex": "38000180", "op": "mem"}
|
|
{"gpa": "0x401140d0", "hex": "39000180", "op": "mem"}
|
|
{"gpa": "0x401140d4", "hex": "3a000180", "op": "mem"}
|
|
{"gpa": "0x401140d8", "hex": "3b000180", "op": "mem"}
|
|
{"gpa": "0x401140dc", "hex": "3c000180", "op": "mem"}
|
|
{"gpa": "0x401140e0", "hex": "3d000180", "op": "mem"}
|
|
{"gpa": "0x401140e4", "hex": "3e000180", "op": "mem"}
|
|
{"gpa": "0x401140e8", "hex": "3f000180", "op": "mem"}
|
|
{"gpa": "0x401140ec", "hex": "40000180", "op": "mem"}
|
|
{"gpa": "0x401140f0", "hex": "41000180", "op": "mem"}
|
|
{"gpa": "0x401140f4", "hex": "42000180", "op": "mem"}
|
|
{"gpa": "0x401140f8", "hex": "43000180", "op": "mem"}
|
|
{"gpa": "0x401140fc", "hex": "44000180", "op": "mem"}
|
|
{"gpa": "0x40010000", "hex": "45000100010000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40034000", "hex": "01060b10151a1f24292e33383d42474c51565b60656a6f74797e83888d92979ca1a6abb0b5babfc4c9ced3d8dde2e7ecf1f6fb00050a0f14191e23282d32373c", "op": "mem"}
|
|
{"gpa": "0x40018000", "hex": "0040000000000000080000000100010000000000000000000000000000000000010101040000000000000000400000000000000010000000000000000400000004000000010000000100000000000000000000000203460004000000040000000100000001000100010020000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40038000", "hex": "3c37322d28231e19140f0a0500fbf6f1ece7e2ddd8d3cec9c4bfbab5b0aba6a19c97928d88837e79746f6a65605b56514c47423d38332e29241f1a15100b0601", "op": "mem"}
|
|
{"gpa": "0x40018080", "hex": "00400000000000000900000001000100000000000000000000000000000000000101010400000000000000004000000000000000100000000000000004000000040000000100000034000000000000000000000002460003000000040000000400000001000000010001000100000000000000000000000203040500", "op": "mem"}
|
|
{"gpa": "0x40018100", "hex": "00400000000000000a00000000000000", "op": "mem"}
|
|
{"gpa": "0x40008400", "hex": "380000001c0000000100000002000000000010000000000004000100", "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": "0x40014000", "hex": "000000000000000000000000027400000040000000000000027c00008040000000000000011000000041000000000000", "op": "mem"}
|
|
{"gpa": "0x4000841c", "hex": "330000001800000002000000010000000000000030000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x34"}
|
|
{"ge": "0x2", "gpa": "0x40008000", "label": "stamp 2 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40024000", "hex": "c8000000020000002e01000060000000010000000300000000000000000000000000000000000000000000000000000004000000000000000400000000000000010000000000000000000000000000001000000000000000400000000000000000000000000000002e0100006000000002000000030000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000004000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008434", "hex": "4300000040000000030000000100000003000000010000000100000000000000020000000000000003000000000000000000010000000000c800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x74"}
|
|
{"ge": "0x3", "gpa": "0x40008000", "label": "copy both textures out", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4003c000", "label": "B: both textures as paged in", "len": "0x80", "op": "dump"}
|
|
{"gpa": "0x40024000", "hex": "cc0000000200000041010000640000000100000000000000020000000000000002000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000f03f00000000000000000000000000000000000000000000f03f460000002e0100006000000001000000030000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000008000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008474", "hex": "430000003800000004000000010000000200000001000000010000000000000003000000000000000000010000000000cc00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xac"}
|
|
{"ge": "0x4", "gpa": "0x40008000", "label": "fill A, no flags", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40034000", "label": "A's pages: unchanged", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x4003c080", "label": "B+0x80: A on the host", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40024000", "hex": "6c00000002000000410100006400000001000000000000000200000000000000020000000000000001000000000000000200000000000000020000000000000000000000000000000000000000000000000000000000f03f0000000000000000000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x400084ac", "hex": "4300000038000000050000000100000002000000010000000100000006000000030000000000000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0xe4"}
|
|
{"ge": "0x5", "gpa": "0x40008000", "label": "fill A, invalidateGuest + synchronize", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40034000", "label": "A's pages: synchronized", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40024000", "hex": "6c000000020000004101000064000000020000000000000004000000000000000100000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f03f000000000000f03f46000000", "op": "mem"}
|
|
{"gpa": "0x400084e4", "hex": "4300000038000000060000000100000002000000010000000200000000000000030000000000000000000100000000006c00000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x11c"}
|
|
{"ge": "0x6", "gpa": "0x40008000", "label": "fill C", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4000851c", "hex": "340000001c0000000700000001000000010000000200000000000100", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x138"}
|
|
{"ge": "0x7", "gpa": "0x40008000", "label": "52: C's guest copy invalid", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40008538", "hex": "350000001800000008000000010000000100000002000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x150"}
|
|
{"ge": "0x8", "gpa": "0x40008000", "label": "53: C copied back", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40038000", "label": "C's pages", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40034000", "hex": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "op": "mem"}
|
|
{"gpa": "0x40024000", "hex": "68000000020000002e010000600000000100000003000000000000000000000000000000000000000000000000000000040000000000000004000000000000000100000000000000c000000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008550", "hex": "4300000038000000090000000100000002000000010000000100000001000000030000000000000000000100000000006800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x188"}
|
|
{"ge": "0x9", "gpa": "0x40008000", "label": "A with invalidateHost", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4003c0c0", "label": "B+0xc0: A re-read from the guest", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40024000", "hex": "c8000000020000002c01000060000000030000000100000000000000000000001000000000000000400000000000000004000000000000000400000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000002f0100006000000001000000020000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008588", "hex": "43000000400000000a0000000100000003000000010000000100000006000000020000000600000003000000000000000000010000000000c800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1c8"}
|
|
{"ge": "0xa", "gpa": "0x40008000", "label": "buffer to A, A to C, both synchronized", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40034000", "label": "A's pages", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40038000", "label": "C's pages", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x400085c8", "hex": "3e0000001c0000000b00000001000000020000000100000002000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x1e4"}
|
|
{"ge": "0xb", "gpa": "0x40008000", "label": "62", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x400085e4", "hex": "3f0000001c0000000c00000001000000020000000100000002000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x200"}
|
|
{"ge": "0xc", "gpa": "0x40008000", "label": "63", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x40024000", "hex": "68000000020000002e0100006000000001000000030000000000000000000000000000000000000000000000000000000400000000000000040000000000000001000000000000000001000000000000100000000000000040000000000000000000000000000000", "op": "mem"}
|
|
{"gpa": "0x40008600", "hex": "43000000380000000d0000000100000002000000010000000100000000000000030000000000000000000100000000006800000000000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x238"}
|
|
{"ge": "0xd", "gpa": "0x40008000", "label": "A after a discard", "op": "wait", "timeout_ms": 5000}
|
|
{"gpa": "0x4003c100", "label": "B+0x100", "len": "0x40", "op": "dump"}
|
|
{"gpa": "0x40008638", "hex": "20000000100000000e00000001000000", "op": "mem"}
|
|
{"off": "0x1008", "op": "mmio_w", "val": "0x248"}
|
|
{"ge": "0xe", "gpa": "0x40008000", "label": "stamp 14 on FIFO 0", "op": "wait", "timeout_ms": 5000}
|
|
{"label": "end", "op": "events"}
|