A's fresh test read a surface fresh with its lock seed 0 and none of its
pages resident. A page a writer that takes no lock dirtied (seed 0 still,
as VTDecoderXPCService writes), then compressed or paged out by the guest,
is not resident but holds its bytes: the surface read fresh, its block was
deferred, and the host's cache of zeros took the place of those bytes.
Fresh now means no page has bytes anywhere: the seed 0, under the
read-only lock, and none of the surface's pages resident, compressed or
paged out (rgfxSurfaceHoldsOnlyResident, one verdict the carry calls too,
over rgfxSurfaceLocksPageCounts, which takes no lock). The count of the
compressed and paged-out pages is IOMemoryDescriptor::getPageCounts's
three-count form, referenced weakly: the release kernels of 26.6.1 and
26.7.2 export it in com.apple.kpi.iokit, those of 11.7.10 to 15.8.2 do
not, nor any routine of any KPI set that tells a page compressed or paged
out (each kernel's symbol sets). Where it is unresolved no surface is
counted, so no block is deferred and every block's pages are named at its
ask, as before deferral. Only a buffer the kernel allocated
(IOBufferMemoryDescriptor, anonymous memory) is counted: a descriptor over
a client's own memory may be a file's, whose pages not resident hold the
file's bytes, which no count shows.
What the guest sees: on 26.x kernels, a surface with a compressed or
paged-out page has its pages named at its ask instead of being deferred;
on 11.x to 15.x kernels no block is deferred. The host side is unchanged.