Hot-plugging Crypto Express adapters to a KVM SEL guest
Read how to dynamically add or remove APQNs on a Crypto Express adapter for a KVM SEL guest.
About this task
Procedure
What to do next
Example on the host:
admin@sel_host:/sys/devices/vfio_ap/matrix/01010101-0101-0101-0101-010101010101# cat matrix 0f.0014 0f.0015 27.0014 27.0015 28.0014 28.0015 admin@sel_host:/sys/devices/vfio_ap/matrix/01010101-0101-0101-0101-010101010101# echo 21 >unassign_domain admin@sel_host:/sys/devices/vfio_ap/matrix/01010101-0101-0101-0101-010101010101# cat matrix 0f.0014 27.0014 28.0014 admin@sel_host:/sys/devices/vfio_ap/matrix/01010101-0101-0101-0101-010101010101#
Result of the example on the guest:
user@sel_guest:/$ lszcrypt -V
CARD.DOM TYPE MODE STATUS ... ... HWTYPE QDEPTH FUNCTIONS DRIVER SESTAT
-------------------------------------------------------------------------------------------
0f CEX8A Accelerator online 14 08 -MC-A-N-F- cex4card -
0f.0014 CEX8A Accelerator online 14 08 -MC-A-N-F- cex4queue unbound
27 CEX8P EP11-Coproc online 14 08 -----XN-F- cex4card -
27.0014 CEX8P EP11-Coproc online 14 08 -----XN-F- cex4queue unbound
28 CEX8P EP11-Coproc online 14 08 -----XN-F- cex4card -
28.0014 CEX8P EP11-Coproc online 14 08 -----XN-F- cex4queue unbound
Also see "dynamic AP Pass-through demonstration" in file a96lp03_scenario.txt: