Onboarding

MXL requirements

How a product reads and writes MXL flows on the validation cluster, and the rules that keep a shared MXL domain safe for every participant.

This page is version 1.0 of the programme's requirements.

The Media eXchange Layer (MXL) moves media between functions through shared memory. Several products share one MXL domain in a sandbox or a run, so these rules protect every participant's flows, yours included.

How MXL reaches your product

  • Your pod reaches MXL only through the platform's MXL volume, which mounts the domain of its sandbox or run. It mounts no other domain.
  • The domain path and the flow ids are configuration (CFG-4); the platform passes them at booking.
  • A pod that mounts MXL runs under a user and group id the platform assigns to its namespace. Images that use MXL must run under any uid.
  • Every namespace of a sandbox or run shares its one domain. Your product may list the flows in it and read the flows it is asked to read.
  • Flow files are writable only by the namespace that created them: an MXL writer runs with a umask that removes write permission for group and others and keeps read, for example 022, because readers in other namespaces need read access and nobody else may change the flow's files. Writing, renaming or deleting another product's flow is detected and fails the run.
  • The platform grants a pod that mounts MXL IPC_LOCK, SYS_RESOURCE, SYS_NICE and NET_BIND_SERVICE, and runs it without FOWNER.
  • The portal shows the libmxl version the cluster runs. Qvest publishes a compatibility matrix between that version and the released libmxl versions.

Rules

ID Rule Level
MXL-1 State the libmxl version the product is built against, static or dynamic MUST
MXL-2 Flow definitions with a non-empty label and a group hint <group>:<role>, optionally :device or :node MUST
MXL-3 Video video/v210 or video/v210a, audio audio/float32, ancillary data video/smpte291 MUST
MXL-4 Grain and sample indices from TAI through libmxl, never UTC MUST
MXL-5 Open only configured flows; never modify or delete a flow it did not create MUST
MXL-6 Reopen when an input flow disappears and returns; reattach its own flows after a restart MUST
MXL-7 Readers and writers both, where the product's function allows SHOULD
MXL-8 Adds no capability beyond IPC_LOCK and SYS_RESOURCE SHOULD
MXL-9 Writers run with a umask that removes write for group and others and keeps read, such as 022 MUST
PRC-2 Removes its own flows on SIGTERM MUST
RES-3 Memory limits leave room for the full MXL rings it maps; memory guards do not count shared ring pages as its own MUST

What libmxl enforces

These statements cite libmxl 1.1.0 as published upstream.

  • A writer cannot create a flow with an empty label (FlowParser.cpp) or with a group hint that has an empty group or role, more than three parts, or a scope other than device or node (FlowParser.cpp, FlowParser.cpp), which is why MXL-2 is a MUST.
  • Video flows are video/v210 or video/v210a, data flows video/smpte291; any other media type is refused (FlowParser.cpp). For audio, libmxl does not check the media type; it accepts a bit depth of 32 or 64 (FlowParser.cpp); the programme fixes 32-bit float (MXL-3) so every reader in a run can read every writer.
  • Grain and sample indices count from the system's TAI time from the SMPTE ST 2059 epoch (time.h).
  • A flow's shared memory and its grains carry a layout version, and a process built against another layout cannot open them (FlowManager.cpp, DiscreteFlowData.hpp), which is why MXL-1 asks for the libmxl version.

Touching another product's flow

A function touches only the flows it writes and the flows it is asked to read. Listing the flows of the domain is allowed.

  • Writing, truncating, renaming or deleting a flow it does not write is detected and fails the run, whichever product the flow belongs to.
  • Reading a flow it was not asked to read is against the rules. The platform does not promise to detect it.

What the MXL track checks

The MXL track checks, by area:

  • Flow definitions: label, group hint with role, supported format
  • Timing: grains and samples on the TAI grid at every rate the product supports
  • Reading: each reference flow the product claims to read
  • Recovery: reopening after the reference writer restarts
  • Containment: no writing, renaming or deleting of flows the product does not write
  • Shutdown: its flows removed on SIGTERM
  • Fabric: reading across nodes

For the interop badge, a writer's flows are read by other vendors' products, a reader reads other vendors' flows, and analysers verify the content. See Badges and levels.