android_kernel_xiaomi_sm8450/drivers/s390/crypto
Tony Krowiak 81b2b4b76a s390: vfio-ap: sysfs interface to view matrix mdev matrix
Provides a sysfs interface to view the AP matrix configured for the
mediated matrix device.

The relevant sysfs structures are:

/sys/devices/vfio_ap/matrix/
...... [mdev_supported_types]
......... [vfio_ap-passthrough]
............ [devices]
...............[$uuid]
.................. matrix

To view the matrix configured for the mediated matrix device,
print the matrix file:

	cat matrix

Below are examples of the output from the above command:

Example 1: Adapters and domains assigned
	Assignments:
		Adapters 5 and 6
		Domains 4 and 71 (0x47)

	Output
		05.0004
		05.0047
		06.0004
	06.0047

Examples 2: Only adapters assigned
	Assignments:
		Adapters 5 and 6

	Output:
		05.
		06.

Examples 3: Only domains assigned
	Assignments:
		Domains 4 and 71 (0x47)

	Output:
		.0004
		.0047

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Tested-by: Michael Mueller <mimu@linux.ibm.com>
Tested-by: Farhan Ali <alifm@linux.ibm.com>
Tested-by: Pierre Morel <pmorel@linux.ibm.com>
Message-Id: <20180925231641.4954-10-akrowiak@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2018-09-26 21:02:59 +02:00
..
ap_bus.c s390/zcrypt: remove VLA usage from the AP bus 2018-09-12 11:33:37 +02:00
ap_bus.h s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
ap_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
Makefile s390: vfio-ap: register matrix device with VFIO mdev framework 2018-09-26 20:45:51 +02:00
pkey_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
vfio_ap_drv.c s390: vfio-ap: register matrix device with VFIO mdev framework 2018-09-26 20:45:51 +02:00
vfio_ap_ops.c s390: vfio-ap: sysfs interface to view matrix mdev matrix 2018-09-26 21:02:59 +02:00
vfio_ap_private.h s390: vfio-ap: register matrix device with VFIO mdev framework 2018-09-26 20:45:51 +02:00
zcrypt_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_api.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cca_key.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex2a.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex2a.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex4.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex4.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_error.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_pcixcc.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_pcixcc.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00