A Managed texture's replaceRegion:, a texture's didModifyData and a Managed
buffer's didModifyRange: tell the host to copy the CPU's bytes to the GPU's
copy. The kext refuses a post once its control ring has stayed full for 5 s
(a host that stopped reading), and also once the device has stopped. On a
refusal the bundle dropped the message without a word: the region and
didModifyData always, and the range when the held messages would not fit
with it. Every command buffer committed afterwards read a stale GPU copy.
Such a write now waits in the serializer (postWaitingNotes). It goes first
at the next such write and at each commit, and is dropped when its object is
destroyed. What changes for the guest: while a write waits, a command
buffer's commit fails it unposted with MTLCommandBufferStatusError and
MTLCommandBufferErrorInternal, as a buffer behind a held create already
fails. Once the kext takes posts again, the writes go before the next buffer,
which runs as before. Past 4096 waiting writes, the next one is lost and
every later commit fails. Nothing changes where the kext takes every post.
test_commit_behind_an_untaken_managed_write_fails covers each kind.