Skip to contentSkip to conversation

content: enhance device requirements for feature bits

PATCH Superseded Tiwei Bie 3 participants 6 messages Jun 8, 2018 – Jun 11, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Tiwei Bie

author
#0 lore raw

PATCH 1/1 content: enhance device requirements for feature bits

---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +7 -0
index f996fad..8374d3f 100644
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}
Signature · 6 lines
2.17.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#1 lore raw
Quoted 12 lines · On Fri, 8 Jun 2018 14:59:28 +0800 Tiwei Bie <[email protected]> wrote:
---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +0 -0
index f996fad..8374d3f 100644

content.tex which was not offered. The device SHOULD accept any valid subset · line 130

Quoted 6 lines
content.tex +3 -0
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT

Hm, it's the driver that sets FEATURES_OK, not the device. What about "by succeeding to set"?

content.tex which was not offered. The device SHOULD accept any valid subset · line 133

Quoted 3 lines
content.tex +3 -0
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.

s/the resuming/resuming/

content.tex which was not offered. The device SHOULD accept any valid subset · line 137

Quoted 4 lines
content.tex +1 -0
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

author
#2 lore raw
Quoted 18 lines · Cornelia Huck
Quoted 15 lines · On Fri, 8 Jun 2018 14:59:28 +0800 Tiwei Bie <[email protected]> wrote:
---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +0 -0
index f996fad..8374d3f 100644
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
Quoted 6 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 130

Quoted 3 lines
content.tex +3 -0
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT

Hm, it's the driver that sets FEATURES_OK, not the device. What about "by succeeding to set"?

Cool. It's much better!

Quoted 6 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 133

Quoted 4 lines
content.tex +3 -0
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.

s/the resuming/resuming/

Got it.

Thank you for the review and suggestions!

Best regards,
Tiwei Bie

Quoted 6 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 137

Quoted 5 lines
content.tex +1 -0
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#3 lore raw
In reply to Cornelia Huck
Quoted 18 lines · Cornelia Huck
Quoted 15 lines · On Fri, 8 Jun 2018 14:59:28 +0800 Tiwei Bie <[email protected]> wrote:
---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +0 -0
index f996fad..8374d3f 100644
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
Quoted 6 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 130

Quoted 3 lines
content.tex +3 -0
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT

Hm, it's the driver that sets FEATURES_OK, not the device. What about "by succeeding to set"?

I think the best terminology we have is
"accept the FEATURES_OK status bit during device initialization" that's from the mmio chapter.

Quoted 10 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 133

Quoted 3 lines
content.tex +3 -0
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.

s/the resuming/resuming/

Quoted 4 lines
content.tex +1 -0
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

#4 lore raw
Quoted 26 lines · On Fri, 8 Jun 2018 19:05:30 +0300 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 18 lines · Cornelia Huck
Quoted 15 lines · On Fri, 8 Jun 2018 14:59:28 +0800 Tiwei Bie <[email protected]> wrote:
---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +0 -0
index f996fad..8374d3f 100644
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
Quoted 6 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 130

Quoted 3 lines
content.tex +3 -0
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT  

Hm, it's the driver that sets FEATURES_OK, not the device. What about "by succeeding to set"?

Quoted 3 lines

I think the best terminology we have is
"accept the FEATURES_OK status bit during device initialization" that's from the mmio chapter.

Yes, that sounds better.

Quoted 11 lines
Quoted 11 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 133

Quoted 4 lines
content.tex +3 -0
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.  

s/the resuming/resuming/

Quoted 4 lines
content.tex +1 -0
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}  

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

author
#5 lore raw
Quoted 29 lines · Cornelia Huck
Quoted 26 lines · On Fri, 8 Jun 2018 19:05:30 +0300 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 24 lines · Cornelia Huck
Quoted 12 lines · On Fri, 8 Jun 2018 14:59:28 +0800 Tiwei Bie <[email protected]> wrote:
---
 content.tex | 7 +++++++
 1 file changed, 7 insertions(+)
content.tex +0 -0
index f996fad..8374d3f 100644

content.tex which was not offered. The device SHOULD accept any valid subset · line 130

Quoted 6 lines
content.tex +3 -0
@@ -125,6 +125,13 @@ which was not offered.  The device SHOULD accept any valid subset
 of features the driver accepts, otherwise it MUST fail to set the
 FEATURES_OK \field{device status} bit when the driver writes it.
 
+If a device has successfully negotiated a set of features
+at least once (by setting the FEATURES_OK \field{device
+status} bit when the driver writes it), then it SHOULD NOT  

Hm, it's the driver that sets FEATURES_OK, not the device. What about "by succeeding to set"?

Quoted 5 lines
Quoted 3 lines

I think the best terminology we have is
"accept the FEATURES_OK status bit during device initialization" that's from the mmio chapter.

Yes, that sounds better.

I'll send a new version!

Best regards,
Tiwei Bie

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 133

Quoted 5 lines
content.tex +3 -0
+fail re-negotiation of the same set of features after a
+device or system reset.  Failure to do so would interfere
+with the resuming from suspend and error recovery.  

s/the resuming/resuming/

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines

content.tex which was not offered. The device SHOULD accept any valid subset · line 137

Quoted 4 lines
content.tex +1 -0
+
 \subsection{Legacy Interface: A Note on Feature
 Bits}\label{sec:Basic Facilities of a Virtio Device / Feature
 Bits / Legacy Interface: A Note on Feature Bits}  

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]