# Functions
AlignImageSizeTo1MiB rounds down the size to the nearest multiple of 1MiB A warning or an error may get logged The caller is responsible for ensuring the rounded-down size is not 0.
CloseIOAndCheckErr closes the file and check the returned error.
GenerateKubeVirtGroupVersionKind ensures a provided object registered with KubeVirts generated schema has GVK set correctly.
GenerateVMExportToken creates a cryptographically secure token for VM export.
Checks if kernel boot is defined in a valid way.
Check if a VMI spec requests GPU.
Check if a VMI spec requests a HostDevice.
Check if a VMI spec requests SEV with attestation.
Check if a VMI spec requests AMD SEV.
Check if a VMI spec requests a VFIO device.
Check if a VMI spec requests VirtIO-FS.
WantVirtioNetDevice checks whether a VMI references at least one "virtio" network interface.