Managing VFIO AP mediated devices with libvirt
Use libvirt commands to manage the lifecycle of mediated devices for VFIO pass-through of
cryptographic resources.
Before you begin
Procedure
What to do next
You can now use the mediated device to configure the AP queues for a KVM guest. See Configuring cryptographic adapter resources.
When you no longer need a mediated device, you can stop it with the virsh
nodedev-destroy
command.
# virsh nodedev-destroy mdev_bfccf00d_21f1_448c_9979_b7341129d985_matrix Destroyed node device 'mdev_bfccf00d_21f1_448c_9979_b7341129d985_matrix'
A transient device ceases to exist as a result of the virsh nodedev-destroy
command. A persistent device is deactivated, and you must use the virsh
nodedev-undefine command to remove the inactive device from
libvirt.
# virsh nodedev-undefine mdev_bfccf00d_21f1_448c_9979_b7341129d985_matrix Undefined node device 'mdev_bfccf00d_21f1_448c_9979_b7341129d985_matrix'