Configuring cryptographic adapter resources
In the configuration-XML, specify a VFIO mediated
device as the host device.
Before you begin
About this task
For a KVM guest, a subset of the host's cryptographic resources can be assigned to a VFIO mediated device, which is then passed through to the guest. VFIO mediated devices are identified by a UUID.
On the guest, cryptographic adapter resources are accessed through the generic device node, as usual. No guest device needs to be specified for these resources.
Procedure
Example
<hostdev mode="subsystem" type="mdev" model="vfio-ap">
<source>
<address uuid="99e714ec-8eee-40fd-a26e-80ff3b1a2564"/>
</source>
</hostdev>In
the example, the UUID of the mediated device on the host is
99e714ec-8eee-40fd-a26e-80ff3b1a2564.