# resources_private_buffer: A private buffer (type 1, flags bit 0). In-process it is a private buffer resource: an exec that lists it copies its guest pages in (prepare), GPU writes stay on the host until invalidateGuest (bit 1) plus synchronize (bit 2) copy them back, and invalidateHost (bit 0) re-reads the guest pages. In the service on a detach-backing GPU every buffer is a detach buffer over the guest pages, so GPU writes land in guest memory at once: a setup divergence. {"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": "030a11181f262d343b424950575e656c737a81888f969da4abb2b9c0c7ced5dce3eaf1f8ff060d141b222930373e454c535a61686f767d848b9299a0a7aeb5bcc3cad1d8dfe6edf4fb020910171e252c333a41484f565d646b727980878e959ca3aab1b8bfc6cdd4dbe2e9f0f7fe050c131a21282f363d444b525960676e757c838a91989fa6adb4bbc2c9d0d7dee5ecf3fa01080f161d242b323940474e555c636a71787f868d949ba2a9b0b7bec5ccd3dae1e8eff6fd040b121920272e353c434a51585f666d747b828990979ea5acb3bac1c8cfd6dde4ebf2f900070e151c232a31383f464d545b626970777e858c939aa1a8afb6bdc4cbd2d9e0e7eef5fc", "op": "mem"} {"gpa": "0x40018000", "hex": "00400000000000000800000001000000", "op": "mem"} {"gpa": "0x40018010", "hex": "00400000000000000900000000000000", "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": "000000000000000000000000011000000040000000000000011000001040000000000000", "op": "mem"} {"gpa": "0x4000841c", "hex": "330000001800000002000000010000000000000024000000", "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": "30000000020000002d010000280000000100000002000000000000000000000000000000000000000001000000000000", "op": "mem"} {"gpa": "0x40008434", "hex": "4300000038000000030000000100000002000000010000000100000000000000020000000000000000000100000000003000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x6c"} {"ge": "0x3", "gpa": "0x40008000", "label": "copy A to B", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40038000", "label": "B: A's guest bytes, paged in", "len": "0x100", "op": "dump"} {"gpa": "0x40024000", "hex": "280000000200000032010000200000000100000010000000000000002000000000000000cd000000", "op": "mem"} {"gpa": "0x4000846c", "hex": "4300000038000000040000000100000002000000010000000100000000000000020000000000000000000100000000002800000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xa4"} {"ge": "0x4", "gpa": "0x40008000", "label": "fill A", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40034000", "label": "A's pages after a fill with no flags", "len": "0x100", "op": "dump"} {"gpa": "0x40024000", "hex": "30000000020000002d010000280000000100000002000000000000000000000000010000000000000001000000000000", "op": "mem"} {"gpa": "0x400084a4", "hex": "4300000038000000050000000100000002000000010000000100000000000000020000000000000000000100000000003000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xdc"} {"ge": "0x5", "gpa": "0x40008000", "label": "copy A to B+0x100", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40038100", "label": "B+0x100: the host copy of A", "len": "0x100", "op": "dump"} {"gpa": "0x400084dc", "hex": "350000001c0000000600000001000000020000000100000002000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xf8"} {"ge": "0x6", "gpa": "0x40008000", "label": "synchronize A and B (guest valid: nothing to do)", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40034000", "label": "A's pages after opcode 53", "len": "0x100", "op": "dump"} {"gpa": "0x40024000", "hex": "280000000200000032010000200000000100000040000000000000001000000000000000ef000000", "op": "mem"} {"gpa": "0x400084f8", "hex": "4300000038000000070000000100000002000000010000000100000006000000020000000000000000000100000000002800000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x130"} {"ge": "0x7", "gpa": "0x40008000", "label": "fill A, invalidateGuest+synchronize", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40034000", "label": "A's pages after the synchronizing exec", "len": "0x100", "op": "dump"} {"gpa": "0x40034000", "hex": "5555555555555555", "op": "mem"} {"gpa": "0x40024000", "hex": "30000000020000002d010000280000000100000002000000000000000000000000020000000000001000000000000000", "op": "mem"} {"gpa": "0x40008530", "hex": "4300000038000000080000000100000002000000010000000100000000000000020000000000000000000100000000003000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x168"} {"ge": "0x8", "gpa": "0x40008000", "label": "copy without invalidateHost", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40024000", "hex": "30000000020000002d010000280000000100000002000000000000000000000010020000000000001000000000000000", "op": "mem"} {"gpa": "0x40008568", "hex": "4300000038000000090000000100000002000000010000000100000001000000020000000000000000000100000000003000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1a0"} {"ge": "0x9", "gpa": "0x40008000", "label": "copy with invalidateHost", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40038200", "label": "B+0x200: before and after invalidateHost", "len": "0x20", "op": "dump"} {"gpa": "0x400085a0", "hex": "20000000100000000a00000001000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x1b0"} {"ge": "0xa", "gpa": "0x40008000", "label": "stamp 10 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"label": "end", "op": "events"}