From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: "virtio-dev@lists.oasis-open.org"
<virtio-dev@lists.oasis-open.org>,
"cohuck@redhat.com" <cohuck@redhat.com>,
"david.edmondson@oracle.com" <david.edmondson@oracle.com>,
"sburla@marvell.com" <sburla@marvell.com>,
"jasowang@redhat.com" <jasowang@redhat.com>,
"virtio-comment@lists.oasis-open.org"
<virtio-comment@lists.oasis-open.org>,
Shahaf Shuler <shahafs@nvidia.com>
Subject: [virtio-comment] Re: [virtio-dev] Re: [PATCH v1 1/2] transport-pci: Introduce legacy registers access commands
Date: Wed, 3 May 2023 16:08:31 -0400 [thread overview]
Message-ID: <20230503160748-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <8c9edc69-933a-9202-4495-ef60e2f93c5a@nvidia.com>
On Wed, May 03, 2023 at 03:38:31PM -0400, Parav Pandit wrote:
>
>
> On 5/3/2023 3:21 PM, Michael S. Tsirkin wrote:
> > On Wed, May 03, 2023 at 06:26:58AM +0300, Parav Pandit wrote:
> > > +\begin{lstlisting}
> > > +struct virtio_admin_cmd_lreg_wr_data {
> > > + u8 offset; /* Starting byte offset of the register(s) to write */
> > > + u8 size; /* Number of bytes to write into the register. */
> > > + u8 register[];
> > > +};
> >
> > BTW if we don't have padding we could reuse buffer size and won't need
> > size here.
> Yes. sounds good.
>
> > Do we want to tweak admin command structure generally to use
> > u8 and not le64 for command data then? WDYT?
> >
> yeah, cmd and result be u8 is fine.
> If padding is needed for perf, may be that command can define the padding.
The commands that I defined do need u64 (much easier to
work on bitmaps in fixed size chunks), so they will use that.
--
MST
This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.
In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.
Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Parav Pandit <parav@nvidia.com>
Cc: "virtio-dev@lists.oasis-open.org"
<virtio-dev@lists.oasis-open.org>,
"cohuck@redhat.com" <cohuck@redhat.com>,
"david.edmondson@oracle.com" <david.edmondson@oracle.com>,
"sburla@marvell.com" <sburla@marvell.com>,
"jasowang@redhat.com" <jasowang@redhat.com>,
"virtio-comment@lists.oasis-open.org"
<virtio-comment@lists.oasis-open.org>,
Shahaf Shuler <shahafs@nvidia.com>
Subject: Re: [virtio-dev] Re: [PATCH v1 1/2] transport-pci: Introduce legacy registers access commands
Date: Wed, 3 May 2023 16:08:31 -0400 [thread overview]
Message-ID: <20230503160748-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <8c9edc69-933a-9202-4495-ef60e2f93c5a@nvidia.com>
On Wed, May 03, 2023 at 03:38:31PM -0400, Parav Pandit wrote:
>
>
> On 5/3/2023 3:21 PM, Michael S. Tsirkin wrote:
> > On Wed, May 03, 2023 at 06:26:58AM +0300, Parav Pandit wrote:
> > > +\begin{lstlisting}
> > > +struct virtio_admin_cmd_lreg_wr_data {
> > > + u8 offset; /* Starting byte offset of the register(s) to write */
> > > + u8 size; /* Number of bytes to write into the register. */
> > > + u8 register[];
> > > +};
> >
> > BTW if we don't have padding we could reuse buffer size and won't need
> > size here.
> Yes. sounds good.
>
> > Do we want to tweak admin command structure generally to use
> > u8 and not le64 for command data then? WDYT?
> >
> yeah, cmd and result be u8 is fine.
> If padding is needed for perf, may be that command can define the padding.
The commands that I defined do need u64 (much easier to
work on bitmaps in fixed size chunks), so they will use that.
--
MST
---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
next prev parent reply other threads:[~2023-05-03 20:08 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-03 3:26 [virtio-comment] [PATCH v1 0/2] transport-pci: Introduce legacy registers access using AQ Parav Pandit
2023-05-03 3:26 ` [virtio-dev] " Parav Pandit
2023-05-03 3:26 ` [virtio-comment] [PATCH v1 1/2] transport-pci: Introduce legacy registers access commands Parav Pandit
2023-05-03 3:26 ` [virtio-dev] " Parav Pandit
2023-05-03 5:42 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 5:42 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 14:47 ` [virtio-comment] " Parav Pandit
2023-05-03 14:47 ` [virtio-dev] " Parav Pandit
2023-05-03 16:48 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 16:48 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 17:21 ` [virtio-comment] " Parav Pandit
2023-05-03 17:21 ` [virtio-dev] " Parav Pandit
2023-05-04 6:30 ` [virtio-comment] " Michael S. Tsirkin
2023-05-04 6:30 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 5:50 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 5:50 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 14:49 ` [virtio-comment] " Parav Pandit
2023-05-03 14:49 ` [virtio-dev] " Parav Pandit
2023-05-03 16:49 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 16:49 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 17:23 ` [virtio-comment] " Parav Pandit
2023-05-03 17:23 ` [virtio-dev] " Parav Pandit
2023-05-04 6:30 ` [virtio-comment] " Michael S. Tsirkin
2023-05-04 6:30 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 19:21 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 19:21 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 19:38 ` [virtio-comment] " Parav Pandit
2023-05-03 19:38 ` Parav Pandit
2023-05-03 20:08 ` Michael S. Tsirkin [this message]
2023-05-03 20:08 ` Michael S. Tsirkin
2023-05-03 20:13 ` [virtio-comment] " Parav Pandit
2023-05-03 20:13 ` Parav Pandit
2023-05-05 3:26 ` [virtio-comment] " Jason Wang
2023-05-05 3:26 ` [virtio-dev] " Jason Wang
2023-05-05 12:48 ` [virtio-comment] " Parav Pandit
2023-05-05 12:48 ` [virtio-dev] " Parav Pandit
2023-05-06 2:24 ` [virtio-comment] " Jason Wang
2023-05-06 2:24 ` [virtio-dev] " Jason Wang
2023-05-06 2:25 ` [virtio-comment] " Jason Wang
2023-05-06 2:25 ` [virtio-dev] " Jason Wang
2023-05-03 3:26 ` [virtio-comment] [PATCH v1 2/2] transport-pci: Add legacy register access conformance section Parav Pandit
2023-05-03 3:26 ` [virtio-dev] " Parav Pandit
2023-05-03 5:48 ` [virtio-comment] " Michael S. Tsirkin
2023-05-03 5:48 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 14:53 ` [virtio-comment] " Parav Pandit
2023-05-03 14:53 ` [virtio-dev] " Parav Pandit
2023-05-03 19:18 ` Michael S. Tsirkin
2023-05-03 19:18 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 19:56 ` Parav Pandit
2023-05-03 19:56 ` [virtio-dev] " Parav Pandit
2023-05-03 10:16 ` [virtio-comment] Re: [PATCH v1 0/2] transport-pci: Introduce legacy registers access using AQ Michael S. Tsirkin
2023-05-03 10:16 ` [virtio-dev] " Michael S. Tsirkin
2023-05-03 14:57 ` [virtio-comment] " Parav Pandit
2023-05-03 14:57 ` [virtio-dev] " Parav Pandit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230503160748-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=cohuck@redhat.com \
--cc=david.edmondson@oracle.com \
--cc=jasowang@redhat.com \
--cc=parav@nvidia.com \
--cc=sburla@marvell.com \
--cc=shahafs@nvidia.com \
--cc=virtio-comment@lists.oasis-open.org \
--cc=virtio-dev@lists.oasis-open.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.