All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Thomas Weißschuh" <thomas@t-8ch.de>
Cc: Hao Chen <chenh@yusur.tech>,
	qemu-devel@nongnu.org, jasowang@redhat.com, cohuck@redhat.com,
	pbonzini@redhat.com
Subject: Re: [PATCH] hw/virtio: Add support for VDPA network simulation devices
Date: Wed, 13 Mar 2024 15:52:02 -0400	[thread overview]
Message-ID: <20240313155136-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <d9e4f3b4-9c2e-466c-b5f4-3387ce88c6b9@t-8ch.de>

On Wed, Mar 13, 2024 at 07:51:08PM +0100, Thomas Weißschuh wrote:
> On 2024-02-21 15:38:02+0800, Hao Chen wrote:
> > This patch adds support for VDPA network simulation devices.
> > The device is developed based on virtio-net and tap backend,
> > and supports hardware live migration function.
> > 
> > For more details, please refer to "docs/system/devices/vdpa-net.rst"
> > 
> > Signed-off-by: Hao Chen <chenh@yusur.tech>
> > ---
> >  MAINTAINERS                                 |   5 +
> >  docs/system/device-emulation.rst            |   1 +
> >  docs/system/devices/vdpa-net.rst            | 121 +++++++++++++
> >  hw/net/virtio-net.c                         |  16 ++
> >  hw/virtio/virtio-pci.c                      | 189 +++++++++++++++++++-
> >  hw/virtio/virtio.c                          |  39 ++++
> >  include/hw/virtio/virtio-pci.h              |   5 +
> >  include/hw/virtio/virtio.h                  |  19 ++
> >  include/standard-headers/linux/virtio_pci.h |   7 +
> >  9 files changed, 399 insertions(+), 3 deletions(-)
> >  create mode 100644 docs/system/devices/vdpa-net.rst
> 
> [..]
> 
> > diff --git a/include/standard-headers/linux/virtio_pci.h b/include/standard-headers/linux/virtio_pci.h
> > index b7fdfd0668..fb5391cef6 100644
> > --- a/include/standard-headers/linux/virtio_pci.h
> > +++ b/include/standard-headers/linux/virtio_pci.h
> > @@ -216,6 +216,13 @@ struct virtio_pci_cfg_cap {
> >  #define VIRTIO_PCI_COMMON_Q_NDATA	56
> >  #define VIRTIO_PCI_COMMON_Q_RESET	58
> >  
> > +#define LM_LOGGING_CTRL                 0
> > +#define LM_BASE_ADDR_LOW                4
> > +#define LM_BASE_ADDR_HIGH               8
> > +#define LM_END_ADDR_LOW                 12
> > +#define LM_END_ADDR_HIGH                16
> > +#define LM_VRING_STATE_OFFSET           0x20
> 
> These changes are not in upstream Linux and will be undone by
> ./scripts/update-linux-headers.sh.
> 
> Are they intentionally in this header?


Good point. Pls move.

> > +
> >  #endif /* VIRTIO_PCI_NO_MODERN */
> >  
> >  #endif



  reply	other threads:[~2024-03-13 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-21  7:38 [PATCH] hw/virtio: Add support for VDPA network simulation devices Hao Chen
2024-02-21  8:05 ` Michael S. Tsirkin
2024-03-13 18:51 ` Thomas Weißschuh
2024-03-13 19:52   ` Michael S. Tsirkin [this message]
2024-03-14  3:24     ` Jason Wang
2024-03-18 12:41       ` Michael S. Tsirkin
2024-04-08  7:29         ` Jason Wang

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=20240313155136-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=chenh@yusur.tech \
    --cc=cohuck@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thomas@t-8ch.de \
    /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.