# VIRTIO_GPU_RESET_CONTRACT (K2216-K2220) ## K2216 Invariant Aygıt bıraktıktan sonra backing iade edilir (`virtio_gpu.reset`). 1. Closing and reopening a virtio-gpu display ("Display kapat yeniden aç") must disable active scanout (`scanout_still_live == false`), drain in-flight transfers (`inflight_transfers == 0`), and verify device acknowledgement of `RESOURCE_DETACH_BACKING` and `RESOURCE_UNREF` before backing RAM pages (`300` pages) are returned to the allocator. 2. Any attempt to free backing memory while scanout is still live ("Canlı scanout erken free"), while transfers are in flight, without device detach/unref acknowledgement, or with more than one resource owner (`active_owner_count != 1`) must be rejected. 3. Reopening the display must allocate a fresh `reopened_resource_id != released_resource_id` under a strictly newer `reset_epoch`, proving single-owner clean redraw ("Tek kaynak sahibi ve temiz yeniden çizim"). 4. Runtime symbol: `os_virtio_gpu_reset`.