# display_present_basic: Opcode 7 presents a BGRA backing: mode_change({16, 8}, 'BGRA'), a new frame, raisedInterrupts |= 2 with its interrupt before the stamp's, present count +1 at +0xf98 and the surface at +0xfa0. The encode reads it back and counts one host present; a second encode of the same frame does not. Presenting it again does not re-copy from guest memory (the backing stays host-valid). {"displays": [{"modes": [[64, 32, 60]], "name": "suite", "port": 0, "serial": 1000}], "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": "0x40008400", "hex": "380000001c0000000100000000000000000010000000000004000100", "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": "0x40034000", "hex": "000000ff040001ff080002ff0c0003ff100004ff140005ff180006ff1c0007ff200008ff240009ff28000aff2c000bff30000cff34000dff38000eff3c000fff000801ff040800ff080803ff0c0802ff100805ff140804ff180807ff1c0806ff200809ff240808ff28080bff2c080aff30080dff34080cff38080fff3c080eff001002ff041003ff081000ff0c1001ff101006ff141007ff181004ff1c1005ff20100aff24100bff281008ff2c1009ff30100eff34100fff38100cff3c100dff001803ff041802ff081801ff0c1800ff101807ff141806ff181805ff1c1804ff20180bff24180aff281809ff2c1808ff30180fff34180eff38180dff3c180cff002004ff042005ff082006ff0c2007ff102000ff142001ff182002ff1c2003ff20200cff24200dff28200eff2c200fff302008ff342009ff38200aff3c200bff002805ff042804ff082807ff0c2806ff102801ff142800ff182803ff1c2802ff20280dff24280cff28280fff2c280eff302809ff342808ff38280bff3c280aff003006ff043007ff083004ff0c3005ff103002ff143003ff183000ff1c3001ff20300eff24300fff28300cff2c300dff30300aff34300bff383008ff3c3009ff003807ff043806ff083805ff0c3804ff103803ff143802ff183801ff1c3800ff20380fff24380eff28380dff2c380cff30380bff34380aff383809ff3c3808ff", "op": "mem"} {"gpa": "0x40018000", "hex": "004000000000000008000000415247420100000000000000100000000800000040000004", "op": "mem"} {"gpa": "0x40014000", "hex": "000000000000000000000000042400000040000000000000", "op": "mem"} {"gpa": "0x4000841c", "hex": "330000001800000002000000000000000000000018000000", "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": "0x40118104", "hex": "0f000000", "op": "mem"} {"gpa": "0x40008434", "hex": "0100000014000000030000000000000046000100", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x48"} {"ge": "0x3", "gpa": "0x40008000", "label": "stamp 3 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"gpa": "0x40008448", "hex": "0200000014000000040000000000000001000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x5c"} {"ge": "0x4", "gpa": "0x40008000", "label": "stamp 4 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"label": "connected", "op": "events"} {"gpa": "0x4000845c", "hex": "070000003000000005000000000000000000000001000000000000000000000000000000000000000000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0x8c"} {"ge": "0x5", "gpa": "0x40008000", "label": "stamp 5 on FIFO 0", "op": "wait", "timeout_ms": 5000} {"cb": "newFrame", "op": "wait", "timeout_ms": 5000} {"label": "presented", "op": "events"} {"off": "0x1014", "op": "mmio_r"} {"gpa": "0x40118000", "label": "page after the present", "len": "0x4000", "op": "diff"} {"display": 0, "name": "present_counts", "op": "api"} {"display": 0, "h": 8, "label": "the frame", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16} {"display": 0, "h": 8, "label": "the frame again", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16} {"display": 0, "name": "present_counts", "op": "api"} {"gpa": "0x40034000", "hex": "400040ff440041ff480042ff4c0043ff500044ff540045ff580046ff5c0047ff600048ff640049ff68004aff6c004bff70004cff74004dff78004eff7c004fff400841ff440840ff480843ff4c0842ff500845ff540844ff580847ff5c0846ff600849ff640848ff68084bff6c084aff70084dff74084cff78084fff7c084eff401042ff441043ff481040ff4c1041ff501046ff541047ff581044ff5c1045ff60104aff64104bff681048ff6c1049ff70104eff74104fff78104cff7c104dff401843ff441842ff481841ff4c1840ff501847ff541846ff581845ff5c1844ff60184bff64184aff681849ff6c1848ff70184fff74184eff78184dff7c184cff402044ff442045ff482046ff4c2047ff502040ff542041ff582042ff5c2043ff60204cff64204dff68204eff6c204fff702048ff742049ff78204aff7c204bff402845ff442844ff482847ff4c2846ff502841ff542840ff582843ff5c2842ff60284dff64284cff68284fff6c284eff702849ff742848ff78284bff7c284aff403046ff443047ff483044ff4c3045ff503042ff543043ff583040ff5c3041ff60304eff64304fff68304cff6c304dff70304aff74304bff783048ff7c3049ff403847ff443846ff483845ff4c3844ff503843ff543842ff583841ff5c3840ff60384fff64384eff68384dff6c384cff70384bff74384aff783849ff7c3848ff", "op": "mem"} {"gpa": "0x4000848c", "hex": "070000003000000006000000000000000000000001000000000000000000000000000000000000000000000000000000", "op": "mem"} {"off": "0x1008", "op": "mmio_w", "val": "0xbc"} {"ge": "0x6", "gpa": "0x40008000", "label": "again, after a guest write", "op": "wait", "timeout_ms": 5000} {"cb": "newFrame", "cb_count": 2, "op": "wait", "timeout_ms": 5000} {"label": "presented again", "op": "events"} {"display": 0, "h": 8, "label": "the frame after the guest write", "op": "encode", "samples": [[0, 0], [15, 7], [5, 3]], "w": 16} {"display": 0, "name": "present_counts", "op": "api"} {"gpa": "0x40118000", "label": "page after the second present", "len": "0x4000", "op": "diff"}