All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: sgarzare@redhat.com, raphael@enfabrica.net,
	qemu-devel@nongnu.org, yc-core@yandex-team.ru,
	d-tatianin@yandex-team.ru,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>,
	zhenwei pi <zhenwei.pi@linux.dev>,
	Raphael Norwitz <rnorwitz@nvidia.com>,
	Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>,
	Jason Wang <jasowang@redhat.com>,
	"open list:Block layer core" <qemu-block@nongnu.org>
Subject: Re: [PATCH v6 04/22] vhost: move protocol_features to vhost_user
Date: Sun, 24 May 2026 02:58:48 -0400	[thread overview]
Message-ID: <20260524025735-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <6b808fc2-a90e-4b25-84d2-d516eb176c8e@yandex-team.ru>

On Fri, May 22, 2026 at 03:31:07PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> On 20.04.26 23:03, Vladimir Sementsov-Ogievskiy wrote:
> > As comment says: it's only for vhost-user. So, let's move it
> > to corresponding vhost backend realization.
> > 
> > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> > ---
> >   backends/cryptodev-vhost.c     |  1 -
> >   hw/block/vhost-user-blk.c      |  6 ++----
> >   hw/net/vhost_net.c             |  2 --
> >   hw/virtio/meson.build          |  3 +++
> >   hw/virtio/vhost-user-stub.c    |  6 ++++++
> >   hw/virtio/vhost-user.c         | 36 +++++++++++++++++++++++++++-------
> >   hw/virtio/virtio-qmp.c         |  6 ++++--
> >   include/hw/virtio/vhost-user.h |  4 ++++
> >   include/hw/virtio/vhost.h      |  8 --------
> >   9 files changed, 48 insertions(+), 24 deletions(-)
> >   create mode 100644 hw/virtio/vhost-user-stub.c
> > 
> 
> [..]
> 
> > diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build
> > index 415e359e9fc..adc3a4f748a 100644
> > --- a/hw/virtio/meson.build
> > +++ b/hw/virtio/meson.build
> > @@ -43,6 +43,8 @@ if have_vhost
> >                            if_true: files('vhost-user-input-pci.c'))
> >       system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_SPI'],
> >                            if_true: files('vhost-user-spi-pci.c'))
> 
> Small conflict, when applying to current master, as in master there is now
> one more entry after CONFIG_VHOST_USER_SPI:
> 
>    system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_RTC'],
>                         if_true: files('vhost-user-rtc-pci.c'))
> 
> so, "else" should go after this new CONFIG_VHOST_USER_RTC entry.
> 
> 
> Let me know, if resend needed.
> 
> > +  else
> > +    system_virtio_ss.add(files('vhost-user-stub.c'))
> >     endif
> >     if have_vhost_vdpa
> >       system_virtio_ss.add(files('vhost-vdpa.c'))
> > @@ -91,6 +93,7 @@ system_virtio_ss.add_all(when: 'CONFIG_VIRTIO_PCI', if_true: virtio_pci_ss)
> >   system_ss.add_all(when: 'CONFIG_VIRTIO', if_true: system_virtio_ss)
> >   stub_ss.add(files('vhost-stub.c'))
> > +stub_ss.add(files('vhost-user-stub.c'))
> >   stub_ss.add(files('virtio-stub.c'))
> >   stub_ss.add(files('virtio-md-stubs.c'))


I'm confused why would we add vhost-user-stub.c twice at all.


> 
> 
> -- 
> Best regards,
> Vladimir



  reply	other threads:[~2026-05-24  6:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-20 20:03 [PATCH v6 00/22] vhost refactoring and fixes Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 01/22] vhost-user: rework enabling vrings Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 02/22] vhost: drop backend_features field Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 03/22] vhost-user: introduce vhost_user_has_protocol_feature() helper Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 04/22] vhost: move protocol_features to vhost_user Vladimir Sementsov-Ogievskiy
2026-05-22 12:31   ` Vladimir Sementsov-Ogievskiy
2026-05-24  6:58     ` Michael S. Tsirkin [this message]
2026-05-25 12:57       ` Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 05/22] vhost-user-gpu: drop code duplication Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 06/22] vhost: make vhost_dev.features private Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 07/22] virtio: move common part of _set_guest_notifier to generic code Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 08/22] virtio: drop *_set_guest_notifier_fd_handler() helpers Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 09/22] vhost-user: keep QIOChannelSocket for backend channel Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 10/22] vhost: vhost_virtqueue_start(): fix failure path Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 11/22] vhost: make vhost_memory_unmap() null-safe Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 12/22] vhost: simplify calls to vhost_memory_unmap() Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 13/22] vhost: move vrings mapping to the top of vhost_virtqueue_start() Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 14/22] vhost: vhost_virtqueue_start(): drop extra local variables Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 15/22] vhost: final refactoring of vhost vrings map/unmap Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 16/22] vhost: simplify vhost_dev_init() error-path Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 17/22] vhost: move busyloop timeout initialization to vhost_virtqueue_init() Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 18/22] vhost: vhost_dev_init(): simplify features initialization Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 19/22] hw/virtio/virtio-bus: refactor virtio_bus_set_host_notifier() Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 20/22] vhost-user: make trace events more readable Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 21/22] vhost-user-blk: add some useful trace-points Vladimir Sementsov-Ogievskiy
2026-04-20 20:03 ` [PATCH v6 22/22] vhost: " Vladimir Sementsov-Ogievskiy
2026-05-05 10:23 ` [PATCH v6 00/22] vhost refactoring and fixes Vladimir Sementsov-Ogievskiy
2026-05-18 11:34 ` Vladimir Sementsov-Ogievskiy

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=20260524025735-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=d-tatianin@yandex-team.ru \
    --cc=hreitz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=raphael@enfabrica.net \
    --cc=rnorwitz@nvidia.com \
    --cc=sgarzare@redhat.com \
    --cc=vsementsov@yandex-team.ru \
    --cc=yc-core@yandex-team.ru \
    --cc=zhenwei.pi@linux.dev \
    /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.