| 96 | /// `FailedPrecondition` status. |
| 97 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
| 98 | pub enum BackendFeature { |
| 99 | /// Extension supplies its own kernel image via |
| 100 | /// [`LaunchPlan::kernel_image`]. Currently QEMU-only. |
| 101 | ExternalKernelImage, |
| 102 | /// Extension contributes guest init drop-ins via |
| 103 | /// [`LaunchPlan::guest_init_dropins`]. Supported by all backends. |
| 104 | GuestInitDropins, |
| 105 | /// Extension needs PCI device passthrough on the guest. Currently |
| 106 | /// QEMU-only and currently rejected for non-GPU sandboxes pending the |
| 107 | /// non-GPU QEMU launch path landing. |
| 108 | PciPassthrough, |
| 109 | /// Extension needs a host TAP device wired into the guest. Currently |
| 110 | /// QEMU-only (libkrun does not expose a TAP transport). |
| 111 | TapNetworking, |
| 112 | } |
| 113 | |
| 114 | impl BackendFeature { |
| 115 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected