VZCustomVirtioDevice
An interface that represents a custom Virtio device that you provide the implementation for.
Declaration
class VZCustomVirtioDeviceOverview
A Virtio device is a virtual emulated device the framework exposes to the guest OS following the Virtio standard. For more information about the Virtio standard, see the Virtio specification.
A VZCustomVirtioDevice allows you to define, configure, and provide your own implementation for a device that uses the Virtio protocol.
To define a VZCustomVirtioDevice create and configure a VZCustomVirtioDeviceConfiguration object.
Once configured, the framework creates a VZCustomVirtioDevice object and returns it through the invocation of the delegate’s customVirtioConfiguration(_:didCreateDevice:) method. Implement a class that conforms to the VZCustomVirtioDeviceDelegate protocol to provide an implementation for the device.
The Virtualization framework performs all operations on the VZCustomVirtioDevice and VZCustomVirtioDeviceDelegate through a serial queue that you can configure through the deviceQueue property. If the queue isn’t set, the framework performs all operations on the queue in the VM’s VZVirtualMachine queue property by default.
Topics
Instance Properties
Instance Methods
See Also
Related Documentation
VZCustomVirtioDeviceConfigurationVZCustomVirtioDeviceConfigurationDelegateVZCustomVirtioDeviceDelegateVZVirtioQueueVZVirtioSharedMemoryRegion