Contents

customVirtioConfiguration(_:didCreateDevice:)

A method the framework calls when it creates a custom Virtio device from a custom Virtio device configuration.

Declaration

optional func customVirtioConfiguration(_ deviceConfiguration: VZCustomVirtioDeviceConfiguration, didCreateDevice device: VZCustomVirtioDevice)

Parameters

  • deviceConfiguration:

    The configuration calling the delegate method.

  • device:

    The Vzcustomvirtiodevice that the framework created.

Discussion

The Virtualization framework creates a VZCustomVirtioDevice when you call init(configuration:) and calls this method on the serial queue of the guest’s VZVirtualMachine instance.