Creating a mediated device with AP queues
KVM guests access AP queues through an AP Virtual Function I/O (VFIO) mediated device.
The configuration of the mediated device defines the AP configuration of the KVM guest to which it is assigned.
About this task
In the steps that follow, a mediated device is first created, then adapters and domains are configured for the device. After the mediated device is included in a KVM virtual server configuration, these AP queues become available to the guest that runs in the virtual server.
Procedure
What to do next
ls -1 /sys/devices/vfio_ap/matrix/<device_id> assign_adapter assign_control_domain assign_domain control_domains driver iommu_group matrix mdev_type power remove subsystem uevent unassign_adapter unassign_control_domain unassign_domainIn particular, you can write to the
assign_* and unassign_* attributes to modify the mediated device, and you can use the remove attribute to remove the mediated device. For more details about these attributes, see the VFIO section in Device Drivers, Features, and
Commands.
Important: Modifications of mediated devices through sysfs affect only the active device. For persistent mediated devices, such modifications do not affect the device definition in libvirt and they do not persist across device activation cycles and guest reboots.
You can now use the mediated device to configure the AP queues for a KVM guest. See Configuring cryptographic adapter resources.
