s390/vfio-ap: sysfs attribute to display the guest's matrix
authorTony Krowiak <akrowiak@linux.ibm.com>
Tue, 10 Sep 2019 15:17:45 +0000 (11:17 -0400)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 19 Jul 2022 14:18:11 +0000 (16:18 +0200)
commitf7f795c54d7117d06d002e06f9fca5baec3f293d
tree5641adcf73e1595b31f9cb04a6e6eef8acfdd229
parent3f85d1df26a9d9b0d1a5237c580e085c41d6bf50
s390/vfio-ap: sysfs attribute to display the guest's matrix

The matrix of adapters and domains configured in a guest's APCB may
differ from the matrix of adapters and domains assigned to the matrix mdev,
so this patch introduces a sysfs attribute to display the matrix of
adapters and domains that are or will be assigned to the APCB of a guest
that is or will be using the matrix mdev. For a matrix mdev denoted by
$uuid, the guest matrix can be displayed as follows:

   cat /sys/devices/vfio_ap/matrix/$uuid/guest_matrix

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/vfio_ap_ops.c