public inbox for virtio-dev@lists.linux.dev
 help / color / mirror / Atom feed
* [virtio-dev] [PATCH 0/2] transport-pci: msix register desc improve
@ 2023-04-11 19:42 Parav Pandit
  2023-04-11 19:42 ` [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description Parav Pandit
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Parav Pandit @ 2023-04-11 19:42 UTC (permalink / raw)
  To: mst, virtio-dev, pasic, cohuck; +Cc: virtio-comment, shahafs, Parav Pandit

Problem:

Current wording queue_msix_vector and config_msix_vector says
"for MSI-X", which is bit confusing.

config_msix_vector and queue_msix_vector are the msix vector
number for configuration change and queue related interrupts.

Hence, reword it.

---
changelog:
v0->v1:
- added 'here'
- dropped 'receiving'
- dropped already merged patch for empty line

Parav Pandit (2):
  transport-pci: Improve config msix vector description
  transport-pci: Improve queue msix vector register desc

 transport-pci.tex | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-- 
2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-11 19:42 [virtio-dev] [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
@ 2023-04-11 19:42 ` Parav Pandit
  2023-04-19  7:05   ` [virtio-dev] " Michael S. Tsirkin
  2023-04-11 19:42 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
  2023-04-19  1:53 ` [virtio-dev] RE: [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
  2 siblings, 1 reply; 12+ messages in thread
From: Parav Pandit @ 2023-04-11 19:42 UTC (permalink / raw)
  To: mst, virtio-dev, pasic, cohuck
  Cc: virtio-comment, shahafs, Parav Pandit, Max Gurtovoy

config_msix_vector is the register that holds the MSI-X vector number
for receiving configuration change related interrupts.

It is not "for MSI-X".

Hence, replace the confusing text with appropriate one.

Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>

---
changelog:
v0->v1:
- added 'here'
- dropped 'receiving'
---
 transport-pci.tex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/transport-pci.tex b/transport-pci.tex
index 42be072..cb9fadd 100644
--- a/transport-pci.tex
+++ b/transport-pci.tex
@@ -343,7 +343,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
         Driver Feature Bits selected by \field{driver_feature_select}.
 
 \item[\field{config_msix_vector}]
-        The driver sets the Configuration Vector for MSI-X.
+        The driver writes an MSI-X vector number here for Configuration change
+        interrupts.
 
 \item[\field{num_queues}]
         The device specifies the maximum number of virtqueues supported here.
-- 
2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc
  2023-04-11 19:42 [virtio-dev] [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
  2023-04-11 19:42 ` [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description Parav Pandit
@ 2023-04-11 19:42 ` Parav Pandit
  2023-04-19  7:08   ` [virtio-dev] " Michael S. Tsirkin
  2023-04-19  1:53 ` [virtio-dev] RE: [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
  2 siblings, 1 reply; 12+ messages in thread
From: Parav Pandit @ 2023-04-11 19:42 UTC (permalink / raw)
  To: mst, virtio-dev, pasic, cohuck
  Cc: virtio-comment, shahafs, Parav Pandit, Max Gurtovoy

queue_msix_vector register is for receiving interrupts from the device
for the virtqueue.

"for MSI-X" is confusing term.

Also it is the register that driver "writes" to, similar to
many other registers such as queue_desc, queue_driver etc.

Hence, replace the verb from use to write.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
---
changelog:
v0->v1:
- added 'here'
- dropped 'receiving'
---
 transport-pci.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/transport-pci.tex b/transport-pci.tex
index cb9fadd..00669b5 100644
--- a/transport-pci.tex
+++ b/transport-pci.tex
@@ -367,7 +367,7 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
         A 0 means the queue is unavailable.
 
 \item[\field{queue_msix_vector}]
-        The driver uses this to specify the queue vector for MSI-X.
+        The driver writes an MSI-X vector number here for virtqueue interrupts.
 
 \item[\field{queue_enable}]
         The driver uses this to selectively prevent the device from executing requests from this virtqueue.
-- 
2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] RE: [PATCH 0/2] transport-pci: msix register desc improve
  2023-04-11 19:42 [virtio-dev] [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
  2023-04-11 19:42 ` [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description Parav Pandit
  2023-04-11 19:42 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
@ 2023-04-19  1:53 ` Parav Pandit
  2 siblings, 0 replies; 12+ messages in thread
From: Parav Pandit @ 2023-04-19  1:53 UTC (permalink / raw)
  To: mst@redhat.com, virtio-dev@lists.oasis-open.org,
	pasic@linux.ibm.com, cohuck@redhat.com
  Cc: virtio-comment@lists.oasis-open.org, Shahaf Shuler

Hi Michael,

> From: Parav Pandit <parav@nvidia.com>
> Sent: Tuesday, April 11, 2023 3:42 PM
> 
> Problem:
> 
> Current wording queue_msix_vector and config_msix_vector says "for MSI-X",
> which is bit confusing.
> 
> config_msix_vector and queue_msix_vector are the msix vector number for
> configuration change and queue related interrupts.
> 
> Hence, reword it.
> 
> ---
> changelog:
> v0->v1:
> - added 'here'
> - dropped 'receiving'
> - dropped already merged patch for empty line

If you do not have further comments, can you please take this rewording change forward?

---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] Re: [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-11 19:42 ` [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description Parav Pandit
@ 2023-04-19  7:05   ` Michael S. Tsirkin
  2023-04-19  7:09     ` Michael S. Tsirkin
  2023-04-19  8:25     ` Zhu, Lingshan
  0 siblings, 2 replies; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-19  7:05 UTC (permalink / raw)
  To: Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy

On Tue, Apr 11, 2023 at 10:42:19PM +0300, Parav Pandit wrote:
> config_msix_vector is the register that holds the MSI-X vector number
> for receiving configuration change related interrupts.
> 
> It is not "for MSI-X".
> 
> Hence, replace the confusing text with appropriate one.
> 
> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> 
> ---
> changelog:
> v0->v1:
> - added 'here'
> - dropped 'receiving'
> ---
>  transport-pci.tex | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/transport-pci.tex b/transport-pci.tex
> index 42be072..cb9fadd 100644
> --- a/transport-pci.tex
> +++ b/transport-pci.tex
> @@ -343,7 +343,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
>          Driver Feature Bits selected by \field{driver_feature_select}.
>  
>  \item[\field{config_msix_vector}]
> -        The driver sets the Configuration Vector for MSI-X.
> +        The driver writes an MSI-X vector number here for Configuration change
> +        interrupts.

Hmm I think it's "the vector", not an. And the order of words
is unusual. We also don't normally use "writes here". Would

	Used by the driver to set the MSI-X vector number for Configuration change interrupts.

be equally acceptable?


>  \item[\field{num_queues}]
>          The device specifies the maximum number of virtqueues supported here.
> -- 
> 2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] Re: [PATCH 2/2] transport-pci: Improve queue msix vector register desc
  2023-04-11 19:42 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
@ 2023-04-19  7:08   ` Michael S. Tsirkin
  2023-04-19  7:08     ` Michael S. Tsirkin
  0 siblings, 1 reply; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-19  7:08 UTC (permalink / raw)
  To: Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy

On Tue, Apr 11, 2023 at 10:42:20PM +0300, Parav Pandit wrote:
> queue_msix_vector register is for receiving interrupts from the device
> for the virtqueue.
> 
> "for MSI-X" is confusing term.
> 
> Also it is the register that driver "writes" to, similar to
> many other registers such as queue_desc, queue_driver etc.
> 
> Hence, replace the verb from use to write.
> 
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> ---
> changelog:
> v0->v1:
> - added 'here'
> - dropped 'receiving'
> ---
>  transport-pci.tex | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/transport-pci.tex b/transport-pci.tex
> index cb9fadd..00669b5 100644
> --- a/transport-pci.tex
> +++ b/transport-pci.tex
> @@ -367,7 +367,7 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
>          A 0 means the queue is unavailable.
>  
>  \item[\field{queue_msix_vector}]
> -        The driver uses this to specify the queue vector for MSI-X.
> +        The driver writes an MSI-X vector number here for virtqueue interrupts.

Here it's *the* specific queue not just some queue. And in fact
we call them virtqueue notifications, not interrupts elsewhere.
So how about:

        Used by the driver to set the MSI-X vector number for the virtqueue notifications.


>  \item[\field{queue_enable}]
>          The driver uses this to selectively prevent the device from executing requests from this virtqueue.
> -- 
> 2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] Re: [PATCH 2/2] transport-pci: Improve queue msix vector register desc
  2023-04-19  7:08   ` [virtio-dev] " Michael S. Tsirkin
@ 2023-04-19  7:08     ` Michael S. Tsirkin
  0 siblings, 0 replies; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-19  7:08 UTC (permalink / raw)
  To: Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy

On Wed, Apr 19, 2023 at 03:08:30AM -0400, Michael S. Tsirkin wrote:
> On Tue, Apr 11, 2023 at 10:42:20PM +0300, Parav Pandit wrote:
> > queue_msix_vector register is for receiving interrupts from the device
> > for the virtqueue.
> > 
> > "for MSI-X" is confusing term.
> > 
> > Also it is the register that driver "writes" to, similar to
> > many other registers such as queue_desc, queue_driver etc.
> > 
> > Hence, replace the verb from use to write.
> > 
> > Signed-off-by: Parav Pandit <parav@nvidia.com>
> > Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> > ---
> > changelog:
> > v0->v1:
> > - added 'here'
> > - dropped 'receiving'
> > ---
> >  transport-pci.tex | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/transport-pci.tex b/transport-pci.tex
> > index cb9fadd..00669b5 100644
> > --- a/transport-pci.tex
> > +++ b/transport-pci.tex
> > @@ -367,7 +367,7 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
> >          A 0 means the queue is unavailable.
> >  
> >  \item[\field{queue_msix_vector}]
> > -        The driver uses this to specify the queue vector for MSI-X.
> > +        The driver writes an MSI-X vector number here for virtqueue interrupts.
> 
> Here it's *the* specific queue not just some queue. And in fact
> we call them virtqueue notifications, not interrupts elsewhere.
> So how about:
> 
>         Used by the driver to set the MSI-X vector number for the virtqueue notifications.

or even "the virtqueue notification interrupts".

> 
> >  \item[\field{queue_enable}]
> >          The driver uses this to selectively prevent the device from executing requests from this virtqueue.
> > -- 
> > 2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* [virtio-dev] Re: [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-19  7:05   ` [virtio-dev] " Michael S. Tsirkin
@ 2023-04-19  7:09     ` Michael S. Tsirkin
  2023-04-19  8:25     ` Zhu, Lingshan
  1 sibling, 0 replies; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-19  7:09 UTC (permalink / raw)
  To: Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy

On Wed, Apr 19, 2023 at 03:05:11AM -0400, Michael S. Tsirkin wrote:
> On Tue, Apr 11, 2023 at 10:42:19PM +0300, Parav Pandit wrote:
> > config_msix_vector is the register that holds the MSI-X vector number
> > for receiving configuration change related interrupts.
> > 
> > It is not "for MSI-X".
> > 
> > Hence, replace the confusing text with appropriate one.
> > 
> > Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> > Signed-off-by: Parav Pandit <parav@nvidia.com>
> > 
> > ---
> > changelog:
> > v0->v1:
> > - added 'here'
> > - dropped 'receiving'
> > ---
> >  transport-pci.tex | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/transport-pci.tex b/transport-pci.tex
> > index 42be072..cb9fadd 100644
> > --- a/transport-pci.tex
> > +++ b/transport-pci.tex
> > @@ -343,7 +343,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
> >          Driver Feature Bits selected by \field{driver_feature_select}.
> >  
> >  \item[\field{config_msix_vector}]
> > -        The driver sets the Configuration Vector for MSI-X.
> > +        The driver writes an MSI-X vector number here for Configuration change
> > +        interrupts.
> 
> Hmm I think it's "the vector", not an. And the order of words
> is unusual. We also don't normally use "writes here". Would
> 
> 	Used by the driver to set the MSI-X vector number for Configuration change interrupts.

or even Configuration change notification interrupts

this is what we call them elsewhere

> be equally acceptable?
> 
> 
> >  \item[\field{num_queues}]
> >          The device specifies the maximum number of virtqueues supported here.
> > -- 
> > 2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

* Re: [virtio-dev] Re: [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-19  7:05   ` [virtio-dev] " Michael S. Tsirkin
  2023-04-19  7:09     ` Michael S. Tsirkin
@ 2023-04-19  8:25     ` Zhu, Lingshan
  2023-04-19 11:27       ` Michael S. Tsirkin
  1 sibling, 1 reply; 12+ messages in thread
From: Zhu, Lingshan @ 2023-04-19  8:25 UTC (permalink / raw)
  To: Michael S. Tsirkin, Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy



On 4/19/2023 3:05 PM, Michael S. Tsirkin wrote:
> On Tue, Apr 11, 2023 at 10:42:19PM +0300, Parav Pandit wrote:
>> config_msix_vector is the register that holds the MSI-X vector number
>> for receiving configuration change related interrupts.
>>
>> It is not "for MSI-X".
>>
>> Hence, replace the confusing text with appropriate one.
>>
>> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
>> Signed-off-by: Parav Pandit <parav@nvidia.com>
>>
>> ---
>> changelog:
>> v0->v1:
>> - added 'here'
>> - dropped 'receiving'
>> ---
>>   transport-pci.tex | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/transport-pci.tex b/transport-pci.tex
>> index 42be072..cb9fadd 100644
>> --- a/transport-pci.tex
>> +++ b/transport-pci.tex
>> @@ -343,7 +343,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
>>           Driver Feature Bits selected by \field{driver_feature_select}.
>>   
>>   \item[\field{config_msix_vector}]
>> -        The driver sets the Configuration Vector for MSI-X.
>> +        The driver writes an MSI-X vector number here for Configuration change
>> +        interrupts.
> Hmm I think it's "the vector", not an. And the order of words
> is unusual. We also don't normally use "writes here". Would
>
> 	Used by the driver to set the MSI-X vector number for Configuration change interrupts.
>
> be equally acceptable?
Is it better also explain what is a MSI-X vector number here? Like 
saying the offset in the table or the slot number?

Thanks,
Zhu Lingshan
>
>
>>   \item[\field{num_queues}]
>>           The device specifies the maximum number of virtqueues supported here.
>> -- 
>> 2.26.2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
>


---------------------------------------------------------------------
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] 12+ messages in thread

* Re: [virtio-dev] Re: [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-19  8:25     ` Zhu, Lingshan
@ 2023-04-19 11:27       ` Michael S. Tsirkin
  2023-04-19 19:02         ` Parav Pandit
  0 siblings, 1 reply; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-19 11:27 UTC (permalink / raw)
  To: Zhu, Lingshan
  Cc: Parav Pandit, virtio-dev, pasic, cohuck, virtio-comment, shahafs,
	Max Gurtovoy

On Wed, Apr 19, 2023 at 04:25:13PM +0800, Zhu, Lingshan wrote:
> 
> 
> On 4/19/2023 3:05 PM, Michael S. Tsirkin wrote:
> > On Tue, Apr 11, 2023 at 10:42:19PM +0300, Parav Pandit wrote:
> > > config_msix_vector is the register that holds the MSI-X vector number
> > > for receiving configuration change related interrupts.
> > > 
> > > It is not "for MSI-X".
> > > 
> > > Hence, replace the confusing text with appropriate one.
> > > 
> > > Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> > > Signed-off-by: Parav Pandit <parav@nvidia.com>
> > > 
> > > ---
> > > changelog:
> > > v0->v1:
> > > - added 'here'
> > > - dropped 'receiving'
> > > ---
> > >   transport-pci.tex | 3 ++-
> > >   1 file changed, 2 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/transport-pci.tex b/transport-pci.tex
> > > index 42be072..cb9fadd 100644
> > > --- a/transport-pci.tex
> > > +++ b/transport-pci.tex
> > > @@ -343,7 +343,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
> > >           Driver Feature Bits selected by \field{driver_feature_select}.
> > >   \item[\field{config_msix_vector}]
> > > -        The driver sets the Configuration Vector for MSI-X.
> > > +        The driver writes an MSI-X vector number here for Configuration change
> > > +        interrupts.
> > Hmm I think it's "the vector", not an. And the order of words
> > is unusual. We also don't normally use "writes here". Would
> > 
> > 	Used by the driver to set the MSI-X vector number for Configuration change interrupts.
> > 
> > be equally acceptable?
> Is it better also explain what is a MSI-X vector number here? Like saying
> the offset in the table or the slot number?
> 
> Thanks,
> Zhu Lingshan

It does, in fact, refer to the MSI-X entry. Vector is in fact the
contents of the entry.  The mixup between vector and entry dates back to
PCI spec which has text like
	While more accurately termed “per-entry masking”, masking an MSI-X Table entry is still
	referred to as “vector masking” so similar descriptions can be used for both MSI and MSI-
	X.


> > 
> > 
> > >   \item[\field{num_queues}]
> > >           The device specifies the maximum number of virtqueues supported here.
> > > -- 
> > > 2.26.2
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
> > 


---------------------------------------------------------------------
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] 12+ messages in thread

* RE: [virtio-dev] Re: [PATCH 1/2] transport-pci: Improve config msix vector description
  2023-04-19 11:27       ` Michael S. Tsirkin
@ 2023-04-19 19:02         ` Parav Pandit
  0 siblings, 0 replies; 12+ messages in thread
From: Parav Pandit @ 2023-04-19 19:02 UTC (permalink / raw)
  To: Michael S. Tsirkin, Zhu, Lingshan
  Cc: virtio-dev@lists.oasis-open.org, pasic@linux.ibm.com,
	cohuck@redhat.com, virtio-comment@lists.oasis-open.org,
	Shahaf Shuler, Max Gurtovoy



> From: Michael S. Tsirkin <mst@redhat.com>
> Sent: Wednesday, April 19, 2023 7:27 AM
> 
> On Wed, Apr 19, 2023 at 04:25:13PM +0800, Zhu, Lingshan wrote:

> > > > +        The driver writes an MSI-X vector number here for Configuration
> change
> > > > +        interrupts.
> > > Hmm I think it's "the vector", not an. And the order of words is
> > > unusual. We also don't normally use "writes here". Would
> > >
> > > 	Used by the driver to set the MSI-X vector number for Configuration
> change interrupts.
> > >

To keep the text consistent with rest of the fields and to address below comment about MSI-X table entry reference,

As:
The driver writes the MSI-X table entry index in this field for Configuration change notification interrupts.

Similar to,
The driver writes this to accept feature bits offered by ...

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [virtio-dev] Re: [PATCH 2/2] transport-pci: Improve queue msix vector register desc
  2023-04-20 19:51 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
@ 2023-04-20 20:45   ` Michael S. Tsirkin
  0 siblings, 0 replies; 12+ messages in thread
From: Michael S. Tsirkin @ 2023-04-20 20:45 UTC (permalink / raw)
  To: Parav Pandit
  Cc: virtio-dev, pasic, cohuck, virtio-comment, shahafs, Max Gurtovoy

On Thu, Apr 20, 2023 at 10:51:58PM +0300, Parav Pandit wrote:
> queue_msix_vector register is for receiving virtqueue notification
> interrupts from the device for the virtqueue.
> 
> "for MSI-X" is confusing term.
> 
> Also it is the register that driver "writes" to, similar to
> many other registers such as queue_desc, queue_driver etc.
> 
> Hence, replace the verb from use to write.
> 
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> ---
> changelog:
> v1->v2:
> - rewrote to indicate MSI-X table entry index
> v0->v1:
> - added 'here'
> - dropped 'receiving'
> ---
>  transport-pci.tex | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/transport-pci.tex b/transport-pci.tex
> index cf2c54d..afa082f 100644
> --- a/transport-pci.tex
> +++ b/transport-pci.tex
> @@ -367,7 +367,8 @@ \subsubsection{Common configuration structure layout}\label{sec:Virtio Transport
>          A 0 means the queue is unavailable.
>  
>  \item[\field{queue_msix_vector}]
> -        The driver uses this to specify the queue vector for MSI-X.
> +        The driver writes the MSI-X table entry index in this field for
> +        virtqueue notification interrupts.

same comment here

>  \item[\field{queue_enable}]
>          The driver uses this to selectively prevent the device from executing requests from this virtqueue.
> -- 
> 2.26.2


---------------------------------------------------------------------
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] 12+ messages in thread

end of thread, other threads:[~2023-04-20 20:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 19:42 [virtio-dev] [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
2023-04-11 19:42 ` [virtio-dev] [PATCH 1/2] transport-pci: Improve config msix vector description Parav Pandit
2023-04-19  7:05   ` [virtio-dev] " Michael S. Tsirkin
2023-04-19  7:09     ` Michael S. Tsirkin
2023-04-19  8:25     ` Zhu, Lingshan
2023-04-19 11:27       ` Michael S. Tsirkin
2023-04-19 19:02         ` Parav Pandit
2023-04-11 19:42 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
2023-04-19  7:08   ` [virtio-dev] " Michael S. Tsirkin
2023-04-19  7:08     ` Michael S. Tsirkin
2023-04-19  1:53 ` [virtio-dev] RE: [PATCH 0/2] transport-pci: msix register desc improve Parav Pandit
  -- strict thread matches above, loose matches on Subject: below --
2023-04-20 19:51 [virtio-dev] " Parav Pandit
2023-04-20 19:51 ` [virtio-dev] [PATCH 2/2] transport-pci: Improve queue msix vector register desc Parav Pandit
2023-04-20 20:45   ` [virtio-dev] " Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox