• Tony Krowiak's avatar
    s390: vfio-ap: register matrix device with VFIO mdev framework · 65f06713
    Tony Krowiak authored
    Registers the matrix device created by the VFIO AP device
    driver with the VFIO mediated device framework.
    Registering the matrix device will create the sysfs
    structures needed to create mediated matrix devices
    each of which will be used to configure the AP matrix
    for a guest and connect it to the VFIO AP device driver.
    
    Registering the matrix device with the VFIO mediated device
    framework will create the following sysfs structures:
    
    /sys/devices/vfio_ap/matrix/
    ...... [mdev_supported_types]
    ......... [vfio_ap-passthrough]
    ............ create
    
    To create a mediated device for the AP matrix device, write a UUID
    to the create file:
    
    	uuidgen > create
    
    A symbolic link to the mediated device's directory will be created in the
    devices subdirectory named after the generated $uuid:
    
    /sys/devices/vfio_ap/matrix/
    ...... [mdev_supported_types]
    ......... [vfio_ap-passthrough]
    ............ [devices]
    ............... [$uuid]
    
    A symbolic link to the mediated device will also be created
    in the vfio_ap matrix's directory:
    
    /sys/devices/vfio_ap/matrix/[$uuid]
    Signed-off-by: default avatarTony Krowiak <akrowiak@linux.ibm.com>
    Reviewed-by: default avatarHalil Pasic <pasic@linux.ibm.com>
    Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
    Tested-by: default avatarMichael Mueller <mimu@linux.ibm.com>
    Tested-by: default avatarFarhan Ali <alifm@linux.ibm.com>
    Message-Id: <20180925231641.4954-6-akrowiak@linux.vnet.ibm.com>
    Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
    65f06713
vfio_ap_drv.c 3.45 KB