Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

drm/i915/gvt: add vfio/mdev support to kvmgt #1

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
e646d06
locking/mutex: Add waiter parameter to mutex_optimistic_spin()
Aug 10, 2016
d23adb3
locking/mutex: Enable optimistic spinning of woken task in wait queue
Aug 10, 2016
d98ac56
locking/mutex: Ensure forward progress of waiter-spinner
Aug 10, 2016
a16b35f
locking/mutex: Prevent lock starvation when spinning is disabled
Aug 10, 2016
afc11cc
mm/vmalloc: Replace opencoded 4-level page walkers
ickle Oct 15, 2016
8ac4058
rtc: cmos: Don't enable interrupts in the middle of the interrupt han…
vsyrjala Oct 19, 2016
15bdcbc
kbuild: Disable PIE by default
ickle Oct 20, 2016
b8fafe9
Merge remote-tracking branch 'airlied/drm-fixes' into drm-intel-nightly
ickle Nov 17, 2016
810a388
Merge remote-tracking branch 'intel/drm-intel-next-queued' into drm-i…
ickle Nov 17, 2016
a1cca98
Merge remote-tracking branch 'sound/for-next' into drm-intel-nightly
ickle Nov 17, 2016
f6850aa
Merge remote-tracking branch 'sound/for-linus' into drm-intel-nightly
ickle Nov 17, 2016
6edff7a
Merge remote-tracking branch 'intel/topic/drm-misc' into drm-intel-ni…
ickle Nov 17, 2016
7c4f26e
Merge remote-tracking branch 'intel/topic/core-for-CI' into drm-intel…
ickle Nov 17, 2016
7fc9e0c
drm-intel-nightly: 2016y-11m-17d-20h-31m-28s UTC integration manifest
ickle Nov 17, 2016
b886cdf
Merge remote-tracking branch 'kvm/next' into gvt-staging
zhenyw Nov 18, 2016
f81f73e
Merge remote-tracking branch 'kvm/queue' into gvt-staging
zhenyw Nov 18, 2016
95bf3a7
Merge remote-tracking branch 'vfio/next' into gvt-staging
zhenyw Nov 18, 2016
cc31ead
drm/i915/gvt: add vfio/mdev support to kvmgt
l1viathan Nov 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
111 changes: 111 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-vfio-mdev
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
What: /sys/.../<device>/mdev_supported_types/
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
This directory contains list of directories of currently
supported mediated device types and their details for
<device>. Supported type attributes are defined by the
vendor driver who registers with Mediated device framework.
Each supported type is a directory whose name is created
by adding the device driver string as a prefix to the
string provided by the vendor driver.

What: /sys/.../<device>/mdev_supported_types/<type-id>/
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
This directory gives details of supported type, like name,
description, available_instances, device_api etc.
'device_api' and 'available_instances' are mandatory
attributes to be provided by vendor driver. 'name',
'description' and other vendor driver specific attributes
are optional.

What: /sys/.../mdev_supported_types/<type-id>/create
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Writing UUID to this file will create mediated device of
type <type-id> for parent device <device>. This is a
write-only file.
For example:
# echo "83b8f4f2-509f-382f-3c1e-e6bfe0fa1001" > \
/sys/devices/foo/mdev_supported_types/foo-1/create

What: /sys/.../mdev_supported_types/<type-id>/devices/
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
This directory contains symbolic links pointing to mdev
devices sysfs entries which are created of this <type-id>.

What: /sys/.../mdev_supported_types/<type-id>/available_instances
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Reading this attribute will show the number of mediated
devices of type <type-id> that can be created. This is a
readonly file.
Users:
Userspace applications interested in creating mediated
device of that type. Userspace application should check
the number of available instances could be created before
creating mediated device of this type.

What: /sys/.../mdev_supported_types/<type-id>/device_api
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Reading this attribute will show VFIO device API supported
by this type. For example, "vfio-pci" for a PCI device,
"vfio-platform" for platform device.

What: /sys/.../mdev_supported_types/<type-id>/name
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Reading this attribute will show human readable name of the
mediated device that will get created of type <type-id>.
This is optional attribute. For example: "Grid M60-0Q"
Users:
Userspace applications interested in knowing the name of
a particular <type-id> that can help in understanding the
type of mediated device.

What: /sys/.../mdev_supported_types/<type-id>/description
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Reading this attribute will show description of the type of
mediated device that will get created of type <type-id>.
This is optional attribute. For example:
"2 heads, 512M FB, 2560x1600 maximum resolution"
Users:
Userspace applications interested in knowing the details of
a particular <type-id> that can help in understanding the
features provided by that type of mediated device.

What: /sys/.../<device>/<UUID>/
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
This directory represents device directory of mediated
device. It contains all the attributes related to mediated
device.

What: /sys/.../<device>/<UUID>/mdev_type
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
This is symbolic link pointing to supported type, <type-id>
directory of which this mediated device is created.

What: /sys/.../<device>/<UUID>/remove
Date: October 2016
Contact: Kirti Wankhede <kwankhede@nvidia.com>
Description:
Writing '1' to this file destroys the mediated device. The
vendor driver can fail the remove() callback if that device
is active and the vendor driver doesn't support hot unplug.
Example:
# echo 1 > /sys/bus/mdev/devices/<UUID>/remove
4 changes: 2 additions & 2 deletions Documentation/ABI/testing/sysfs-devices-system-ibm-rtl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
What: state
What: /sys/devices/system/ibm_rtl/state
Date: Sep 2010
KernelVersion: 2.6.37
Contact: Vernon Mauery <vernux@us.ibm.com>
Expand All @@ -10,7 +10,7 @@ Description: The state file allows a means by which to change in and
Users: The ibm-prtm userspace daemon uses this interface.


What: version
What: /sys/devices/system/ibm_rtl/version
Date: Sep 2010
KernelVersion: 2.6.37
Contact: Vernon Mauery <vernux@us.ibm.com>
Expand Down
3 changes: 1 addition & 2 deletions Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ DOCBOOKS := z8530book.xml \
kernel-api.xml filesystems.xml lsm.xml usb.xml kgdb.xml \
gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \
genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
debugobjects.xml sh.xml regulator.xml \
alsa-driver-api.xml writing-an-alsa-driver.xml \
80211.xml debugobjects.xml sh.xml regulator.xml \
tracepoint.xml w1.xml \
writing_musb_glue_layer.xml crypto-API.xml iio.xml

Expand Down
142 changes: 0 additions & 142 deletions Documentation/DocBook/alsa-driver-api.tmpl

This file was deleted.

Loading