diff options
author | Tiwei Bie <tiwei.bie@intel.com> | 2018-06-12 13:18:00 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-11-30 15:24:37 -0500 |
commit | a01bce8222975d5754a9226edbae7c5f2b2065f3 (patch) | |
tree | e77f994c2d707a9bcc01e862142022567ea5ff27 | |
parent | 04eaf2b2f796bcd0501feb1e314960b33e8c64f9 (diff) | |
download | virtio-spec-a01bce8222975d5754a9226edbae7c5f2b2065f3.tar.gz |
content: document SR-IOV driver requirements
Document the driver requirements for the VIRTIO_F_SR_IOV
feature bit.
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Fixes: https://github.com/oasis-tcs/virtio-spec/issues/13
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
-rw-r--r-- | content.tex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/content.tex b/content.tex index c346183..6681dea 100644 --- a/content.tex +++ b/content.tex @@ -5494,6 +5494,21 @@ A driver SHOULD accept VIRTIO_F_IO_BARRIER if it is offered. If VIRTIO_F_IO_BARRIER has been negotiated, a driver MUST use the barriers suitable for hardware devices. +If VIRTIO_F_SR_IOV has been negotiated, a driver MAY enable +virtual functions through the device's PCI SR-IOV capability +structure. A driver MUST NOT negotiate VIRTIO_F_SR_IOV if +the device does not have a PCI SR-IOV capability structure +or is not a PCI device. A driver MUST negotiate +VIRTIO_F_SR_IOV and complete the feature negotiation +(including checking the FEATURES_OK \field{device status} +bit) before enabling virtual functions through the device's +PCI SR-IOV capability structure. After once successfully +negotiating VIRTIO_F_SR_IOV, the driver MAY enable virtual +functions through the device's PCI SR-IOV capability +structure even if the device or the system has been fully +or partially reset, and even without re-negotiating +VIRTIO_F_SR_IOV after the reset. + \devicenormative{\section}{Reserved Feature Bits}{Reserved Feature Bits} A device MUST offer VIRTIO_F_VERSION_1. A device MAY fail to operate further |