* [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements
@ 2018-06-12 5:18 Tiwei Bie
2018-06-12 7:55 ` [virtio-dev] " Cornelia Huck
2018-10-25 1:46 ` [virtio-dev] " Tiwei Bie
0 siblings, 2 replies; 4+ messages in thread
From: Tiwei Bie @ 2018-06-12 5:18 UTC (permalink / raw)
To: mst, cohuck, stefanha, pbonzini, virtio-dev
Cc: dan.daly, alexander.h.duyck, mark.d.rustad, cunming.liang,
zhihong.wang
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
---
v2:
- Fix the commit message (MST);
- Improve the wording (MST);
- Drop unnecessary parts (MST);
v3:
- status -> device status (MST);
content.tex | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/content.tex b/content.tex
index be18234..ab18210 100644
--- a/content.tex
+++ b/content.tex
@@ -5387,6 +5387,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
--
2.17.0
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply related [flat|nested] 4+ messages in thread* [virtio-dev] Re: [PATCH v3] content: document SR-IOV driver requirements
2018-06-12 5:18 [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements Tiwei Bie
@ 2018-06-12 7:55 ` Cornelia Huck
2018-10-25 1:46 ` [virtio-dev] " Tiwei Bie
1 sibling, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2018-06-12 7:55 UTC (permalink / raw)
To: Tiwei Bie
Cc: mst, stefanha, pbonzini, virtio-dev, dan.daly, alexander.h.duyck,
mark.d.rustad, cunming.liang, zhihong.wang
On Tue, 12 Jun 2018 13:18:00 +0800
Tiwei Bie <tiwei.bie@intel.com> wrote:
> 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
> ---
> v2:
> - Fix the commit message (MST);
> - Improve the wording (MST);
> - Drop unnecessary parts (MST);
>
> v3:
> - status -> device status (MST);
>
> content.tex | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/content.tex b/content.tex
> index be18234..ab18210 100644
> --- a/content.tex
> +++ b/content.tex
> @@ -5387,6 +5387,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
I still think we should mention somewhere that this "enable just once"
mechanism is useful for e.g. resuming; but this is fine as-is.
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements
2018-06-12 5:18 [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements Tiwei Bie
2018-06-12 7:55 ` [virtio-dev] " Cornelia Huck
@ 2018-10-25 1:46 ` Tiwei Bie
2018-10-25 7:10 ` Michael S. Tsirkin
1 sibling, 1 reply; 4+ messages in thread
From: Tiwei Bie @ 2018-10-25 1:46 UTC (permalink / raw)
To: mst
Cc: cohuck, stefanha, pbonzini, virtio-dev, dan.daly,
alexander.h.duyck, mark.d.rustad, cunming.liang, zhihong.wang
On Tue, Jun 12, 2018 at 01:18:00PM +0800, Tiwei Bie wrote:
> 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
> ---
> v2:
> - Fix the commit message (MST);
> - Improve the wording (MST);
> - Drop unnecessary parts (MST);
>
> v3:
> - status -> device status (MST);
>
> content.tex | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
Please start the voting on this proposal. Thanks!
Best regards,
Tiwei Bie
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements
2018-10-25 1:46 ` [virtio-dev] " Tiwei Bie
@ 2018-10-25 7:10 ` Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2018-10-25 7:10 UTC (permalink / raw)
To: Tiwei Bie
Cc: cohuck, stefanha, pbonzini, virtio-dev, dan.daly,
alexander.h.duyck, mark.d.rustad, cunming.liang, zhihong.wang
On Thu, Oct 25, 2018 at 09:46:44AM +0800, Tiwei Bie wrote:
> On Tue, Jun 12, 2018 at 01:18:00PM +0800, Tiwei Bie wrote:
> > 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
> > ---
> > v2:
> > - Fix the commit message (MST);
> > - Improve the wording (MST);
> > - Drop unnecessary parts (MST);
> >
> > v3:
> > - status -> device status (MST);
> >
> > content.tex | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
>
> Please start the voting on this proposal. Thanks!
>
> Best regards,
> Tiwei Bie
Sure. Given conferences I think we'll do a 3 week voting period.
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-25 7:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-12 5:18 [virtio-dev] [PATCH v3] content: document SR-IOV driver requirements Tiwei Bie
2018-06-12 7:55 ` [virtio-dev] " Cornelia Huck
2018-10-25 1:46 ` [virtio-dev] " Tiwei Bie
2018-10-25 7:10 ` Michael S. Tsirkin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.