Home
last modified time | relevance | path

Searched refs:sysfsdev (Results 1 – 15 of 15) sorted by relevance

/openbmc/qemu/hw/s390x/
H A Ds390-ccw.c75 char *sysfsdev, in s390_ccw_get_dev_info() argument
83 if (!sysfsdev) { in s390_ccw_get_dev_info()
90 if (!realpath(sysfsdev, dev_path)) { in s390_ccw_get_dev_info()
91 error_setg_errno(errp, errno, "Host device '%s' not found", sysfsdev); in s390_ccw_get_dev_info()
111 static bool s390_ccw_realize(S390CCWDevice *cdev, char *sysfsdev, Error **errp) in s390_ccw_realize() argument
119 if (!s390_ccw_get_dev_info(cdev, sysfsdev, errp)) { in s390_ccw_realize()
/openbmc/qemu/hw/vfio/
H A Dplatform.c532 if (vbasedev->fd < 0 && vbasedev->sysfsdev) { in vfio_base_device_init()
534 vbasedev->name = g_path_get_basename(vbasedev->sysfsdev); in vfio_base_device_init()
541 vbasedev->sysfsdev = g_strdup_printf("/sys/bus/platform/devices/%s", in vfio_base_device_init()
580 trace_vfio_platform_realize(vbasedev->sysfsdev ? in vfio_platform_realize()
581 vbasedev->sysfsdev : vbasedev->name, in vfio_platform_realize()
594 path = g_strdup_printf("%s/of_node/compatible", vbasedev->sysfsdev); in vfio_platform_realize()
634 DEFINE_PROP_STRING("sysfsdev", VFIOPlatformDevice, vbasedev.sysfsdev),
H A Dhelpers.c613 if (stat(vbasedev->sysfsdev, &st) < 0) { in vfio_device_get_name()
615 error_prepend(errp, VFIO_MSG_PREFIX, vbasedev->sysfsdev); in vfio_device_get_name()
620 vbasedev->name = g_path_get_basename(vbasedev->sysfsdev); in vfio_device_get_name()
684 if (!vbasedev->sysfsdev) { in vfio_device_is_mdev()
688 tmp = g_strdup_printf("%s/subsystem", vbasedev->sysfsdev); in vfio_device_is_mdev()
H A Dap.c195 DEFINE_PROP_STRING("sysfsdev", VFIOAPDevice, vdev.sysfsdev),
H A Dccw.c585 if (!cdc->realize(cdev, vcdev->vdev.sysfsdev, errp)) { in vfio_ccw_realize()
659 DEFINE_PROP_STRING("sysfsdev", VFIOCCWDevice, vdev.sysfsdev),
H A Diommufd.c476 devfd = iommufd_cdev_getfd(vbasedev->sysfsdev, errp); in iommufd_cdev_attach()
H A Dpci.c2970 if (vbasedev->fd < 0 && !vbasedev->sysfsdev) { in vfio_realize()
2981 vbasedev->sysfsdev = in vfio_realize()
3360 DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev),
H A Dcontainer.c878 tmp = g_strdup_printf("%s/iommu_group", vbasedev->sysfsdev); in vfio_device_groupid()
/openbmc/qemu/include/hw/s390x/
H A Ds390-ccw.h34 bool (*realize)(S390CCWDevice *dev, char *sysfsdev, Error **errp);
/openbmc/qemu/docs/system/s390x/
H A Dvfio-ccw.rst60 -device vfio-ccw,devno=fe.0.1234,sysfsdev=\
H A Dvfio-ap.rst481 -device vfio_ap,sysfsdev=$path-to-mdev
483 The sysfsdev parameter specifies the path to the mediated matrix device.
532 vfio-ap device (``-device vfio-ap,sysfsdev=$path``) is configured
609 (qemu) device_add vfio-ap,sysfsdev="$path-to-mdev",id="$id"
865 …/usr/bin/qemu-system-s390x ... -cpu host,ap=on,apqci=on,apft=on -device vfio-ap,sysfsdev=/sys/devi…
869 …/usr/bin/qemu-system-s390x ... -cpu host,ap=on,apqci=on,apft=on -device vfio-ap,sysfsdev=/sys/devi…
873 …/usr/bin/qemu-system-s390x ... -cpu host,ap=on,apqci=on,apft=on -device vfio-ap,sysfsdev=/sys/devi…
/openbmc/linux/samples/vfio-mdev/
H A DREADME.rst51 sysfsdev=/sys/bus/mdev/devices/83b8f4f2-509f-382f-3c1e-e6bfe0fa1001
/openbmc/qemu/include/hw/vfio/
H A Dvfio-common.h122 char *sysfsdev; member
/openbmc/linux/Documentation/arch/s390/
H A Dvfio-ap.rst903 -device vfio-ap,sysfsdev=/sys/devices/vfio_ap/matrix/$uuid1 ...
908 -device vfio-ap,sysfsdev=/sys/devices/vfio_ap/matrix/$uuid2 ...
913 -device vfio-ap,sysfsdev=/sys/devices/vfio_ap/matrix/$uuid3 ...
1047 "device_add vfio-ap,sysfsdev=<path-to-mdev>,id=<device-id>"
1055 sysfsdev=/sys/devices/vfio_ap/matrix/62177883-f1bb-47f0-914d-32a22e3a8804,\
1061 (qemu) device_add "vfio-ap,sysfsdev=<path-to-mdev>,id=<device-id>"
1068 sysfsdev=/sys/devices/vfio_ap/matrix/62177883-f1bb-47f0-914d-32a22e3a8804,\
/openbmc/qemu/docs/devel/
H A Dvfio-iommufd.rst156 ``vfio-pci`` device checks sysfsdev property to decide if backend is a mdev.