When a Spatial Slice Stops Being a Fault Domain

The symptom was a deadline miss on a slice that had done nothing wrong. Its frame pipeline sat frozen through a full engine reset while the hypervisor recovered a neighbouring tenant's kernel. The scheduler logs showed no budget overruns, because the scheduler was never the part that failed. The hypervisor was built on the premise that splitting the compute units into partitions also splits failure, and this incident is what happens when that premise stops holding.

Trigger versus assumption

The trigger was ordinary. A tenant kernel on one slice hit an uncorrectable memory error, and the watchdog saw the channel stop retiring work. Because the faulting context could not be preempted cleanly, recovery escalated from tearing down the channel to resetting the engine. Every GPU in a datacenter fleet does this sooner or later, so the trigger is not the finding. The finding is that the escalation path could reach a reset domain wider than the slice that owned the fault, and nothing in the design asked how wide that domain was. Framing the postmortem this way keeps it about a boundary in the architecture, not about whoever wrote the kernel or tuned the watchdog.

Where the partition leaked

Spatial partitioning gives each slice its own streaming multiprocessors and, on hardware that supports it, a fixed share of L2 and memory bandwidth, which is why microsecond context isolation is believable for scheduling. It does not automatically partition the copy engines, the framebuffer path or the reset logic above them. The platform's zero-copy framebuffer sharing depends on a copy engine and page tables that several slices see at once, so when the engine reset stopped that path, every slice reading shared surfaces stalled with it. Preemption had held its 50 µs budget in every test, but those tests used well-behaved contexts. A context holding a poisoned page cannot be saved at all, and the hypervisor's only answer to that was a wider reset. The isolation was real for time and illusory for faults.

The rule that falls out

A slice qualifies as real-time only when its fault containment domain is no larger than its scheduling domain, and wherever the hardware cannot guarantee that, the worst-case reset time of the shared domain has to be counted in the execution budget of every slice inside it.

What keeps the rest running

Three changes made the system survive this, none of them clever. First, shared surfaces now carry a fence with a deadline: a consumer slice that sees the producer's fence expire shows its last good frame and keeps to its own schedule instead of blocking on a copy engine it does not own. Second, recovery escalates in steps: the hypervisor first kills the faulting context and retires its pages, and resets the engine only after draining or detaching the other slices from the shared path, so a device-wide stall becomes a degraded mode for one tenant. Functional safety standards such as IEC 61508 call this freedom from interference, and their real value here is that they force the argument to be made for each shared resource rather than each partition. Third, and this is the cost, the zero-copy path is no longer free: detaching a slice and replaying its last frame costs bandwidth and latency, by our estimate a few hundred microseconds per recovery. Teams that sold zero-copy as the point of the platform now have to decide which workloads may share a surface at all.

Why not give every slice its own copy engine?

Where the hardware has enough engines, that is the cleaner answer. But the number of engines is fixed by the silicon and is usually smaller than the number of slices an operator wants to sell, so some sharing is a capacity decision, not a design flaw. In practice, slices that share an engine should be treated as one fault domain and scheduled as one unit for certification. Their common worst case is then the engine's reset time, which we estimate at tens of milliseconds on current parts.

Back to Real-Time Spatial Hypervisor: GPU Virtualization & Microsecond Context Switching · Domains

← Back to Real-Time Spatial Hypervisor: GPU Virtualization & Microsecond Context Switching
Engineering & Architecture Brief

When a Spatial Slice Stops Being a Fault Domain

The symptom was a deadline miss on a slice that had done nothing wrong. Its frame pipeline sat frozen through a full engine reset while the hypervisor recovered a neighbouring tenant's kernel. The scheduler logs showed no budget overruns, because the scheduler was never the part that failed. The hypervisor was built on the premise that splitting the compute units into partitions also splits failure, and this incident is what happens when that premise stops holding.

Trigger versus assumption

The trigger was ordinary. A tenant kernel on one slice hit an uncorrectable memory error, and the watchdog saw the channel stop retiring work. Because the faulting context could not be preempted cleanly, recovery escalated from tearing down the channel to resetting the engine. Every GPU in a datacenter fleet does this sooner or later, so the trigger is not the finding. The finding is that the escalation path could reach a reset domain wider than the slice that owned the fault, and nothing in the design asked how wide that domain was. Framing the postmortem this way keeps it about a boundary in the architecture, not about whoever wrote the kernel or tuned the watchdog.

Where the partition leaked

Spatial partitioning gives each slice its own streaming multiprocessors and, on hardware that supports it, a fixed share of L2 and memory bandwidth, which is why microsecond context isolation is believable for scheduling. It does not automatically partition the copy engines, the framebuffer path or the reset logic above them. The platform's zero-copy framebuffer sharing depends on a copy engine and page tables that several slices see at once, so when the engine reset stopped that path, every slice reading shared surfaces stalled with it. Preemption had held its 50 µs budget in every test, but those tests used well-behaved contexts. A context holding a poisoned page cannot be saved at all, and the hypervisor's only answer to that was a wider reset. The isolation was real for time and illusory for faults.

The rule that falls out

A slice qualifies as real-time only when its fault containment domain is no larger than its scheduling domain, and wherever the hardware cannot guarantee that, the worst-case reset time of the shared domain has to be counted in the execution budget of every slice inside it.

What keeps the rest running

Three changes made the system survive this, none of them clever. First, shared surfaces now carry a fence with a deadline: a consumer slice that sees the producer's fence expire shows its last good frame and keeps to its own schedule instead of blocking on a copy engine it does not own. Second, recovery escalates in steps: the hypervisor first kills the faulting context and retires its pages, and resets the engine only after draining or detaching the other slices from the shared path, so a device-wide stall becomes a degraded mode for one tenant. Functional safety standards such as IEC 61508 call this freedom from interference, and their real value here is that they force the argument to be made for each shared resource rather than each partition. Third, and this is the cost, the zero-copy path is no longer free: detaching a slice and replaying its last frame costs bandwidth and latency, by our estimate a few hundred microseconds per recovery. Teams that sold zero-copy as the point of the platform now have to decide which workloads may share a surface at all.

Technical FAQ: Why not give every slice its own copy engine?

Where the hardware has enough engines, that is the cleaner answer. But the number of engines is fixed by the silicon and is usually smaller than the number of slices an operator wants to sell, so some sharing is a capacity decision, not a design flaw. In practice, slices that share an engine should be treated as one fault domain and scheduled as one unit for certification. Their common worst case is then the engine's reset time, which we estimate at tens of milliseconds on current parts.

Related Architecture Specifications (SPATIAL): spatialorchestrator.com · 3dtraffic.com · splatbio.com

More Technical Articles on spatialhypervisor.com

Eliminating Jitter in Multi-User Cloud XR Virtualization Stacks →Memory Protection and Secure Enclaves for Confidential Spatial Workloads →When a Neighbour's Reset Becomes Your Deadline Miss: Fault Containment in Spatially Partitioned GPUs →When Zero-Copy Framebuffer Sharing Breaks Spatial GPU Isolation →