A bug's timing in the host's video was reached only by a boot. This adds a
host-only harness that plays a guest's VideoToolbox decoder session over the
paravirtual host, the device's VtBackend and an arm, with delays at named
points, so that the timing is reached in a test.
- reims_vgpu_video::video_delay: three points, each a class of sites. The
hardware's write wait (VA-API's video processing and NVDEC's copies into
guest memory, in the arm's own wait and in what Lingering asks), a
session's answer (Demt, TDem) and its release (rels). A Schedule, written
by hand or drawn from a seed, is installed on a runtime's clock and records
each point reached. Only test builds and the new testkit feature (which
reims-vgpu's testkit turns on) have them; every other build gets an empty
inline hook with no lock, atomic or environment read.
- cargo xtask hooks, run by cargo xtask check: the default build of
reims-vgpu-video for Linux names nothing of video_delay and holds no
RVG_VIDEO_SEED, and its testkit build names the module.
- graphics::video_harness (tests): plays our own VP9 stream (libvpx's
vp9p0 and its vpxdec MD5s). It records each message, each point reached
and each picture's verdict, read back from the surface the guest lent and
compared with the stream's MD5. A run fails where a surface goes back
before a write into it is done, where a surface is written after it went
back, where a picture emitted noErr is not the stream's, or where a frame
goes unanswered within its real-time bound. A seeded failure prints
RVG_VIDEO_SEED=<seed>, which replays its schedule.
- Two legs. The fake platform and a fake arm on virtual time, in the
default suite, with a seeded test per point. VA-API or NVDEC on the rt
device, #[ignore]d, for the VA-API and NVIDIA hosts.
The paravirt message names are public under testkit, the guest-RAM helpers
of surface_pages::costs are visible to the graphics module, and reims-vgpu
takes reims-vgpu-video-conformance as a dev-dependency for its MD5.
(cherry picked from commit 5b7fb568b557dc6b26a3d8e782ba9c7d18eaed52)