All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, "Daniel P. Berrangé" <berrange@redhat.com>,
	virtio-fs@redhat.com, "Eduardo Habkost" <eduardo@habkost.net>,
	"Fam Zheng" <fam@euphon.net>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
	qemu-block@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Erik Schilling" <erik.schilling@linaro.org>,
	"Hanna Reitz" <hreitz@redhat.com>,
	"Eric Blake" <eblake@redhat.com>, "Kevin Wolf" <kwolf@redhat.com>,
	"Jason Wang" <jasowang@redhat.com>,
	"Raphael Norwitz" <raphael.norwitz@nutanix.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Mathieu Poirier" <mathieu.poirier@linaro.org>,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>
Subject: Re: [PATCH v5 3/6] hw/virtio: derive vhost-user-gpio from vhost-user-base
Date: Mon, 06 Nov 2023 19:18:46 +0000	[thread overview]
Message-ID: <87il6ebsh5.fsf@draig.linaro.org> (raw)
In-Reply-To: <20231106125222-mutt-send-email-mst@kernel.org> (Michael S. Tsirkin's message of "Mon, 6 Nov 2023 12:53:39 -0500 (1 hour, 22 minutes, 14 seconds ago)")

"Michael S. Tsirkin" <mst@redhat.com> writes:

> On Mon, Nov 06, 2023 at 05:30:39PM +0000, Alex Bennée wrote:
>> "Michael S. Tsirkin" <mst@redhat.com> writes:
>> 
>> > On Thu, Oct 19, 2023 at 10:56:07AM +0100, Alex Bennée wrote:
>> >> Now the new base class supports config handling we can take advantage
>> >> and make vhost-user-gpio a much simpler boilerplate wrapper. Also as
>> >> this doesn't require any target specific hacks we only need to build
>> >> the stubs once.
>> >> 
>> >> Message-Id: <20230418162140.373219-12-alex.bennee@linaro.org>
>> >> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>> >> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
>> >> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> >> Message-Id: <20231009095937.195728-4-alex.bennee@linaro.org>
>> >> ---
>> >> -    case CHR_EVENT_OPENED:
>> >> -        if (vu_gpio_connect(dev, &local_err) < 0) {
>> >> -            qemu_chr_fe_disconnect(&gpio->chardev);
>> >> -            return;
>> >> -        }
>> >> -        break;
>> >> -    case CHR_EVENT_CLOSED:
>> >> -        /* defer close until later to avoid circular close */
>> >> -        vhost_user_async_close(dev, &gpio->chardev, &gpio->vhost_dev,
>> >> -                               vu_gpio_disconnect);
>> >
>> > Hmm. Looking at this, it seems that the base device will handle close
>> > synchronously. No? Why isn't this a problem?
>> 
>> I suspect it was a copy and paste from another vhost-user impl. But
>> testing has shown it works ok.
>
> Can you rebase on latest master then please? There have been
> changes exactly in this area.

Sent v6 to the list:

  https://patchew.org/QEMU/20231106191515.2801863-1-alex.bennee@linaro.org/

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2023-11-06 19:19 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-19  9:56 [Virtio-fs] [PATCH v5 0/6] virtio: cleanup vhost-user-generic and reduce c&p Alex Bennée
2023-10-19  9:56 ` Alex Bennée
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 1/6] virtio: split into vhost-user-base and vhost-user-device Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-11-06 17:18   ` Michael S. Tsirkin
2023-11-06 17:40     ` Alex Bennée
2023-11-06 17:52       ` Michael S. Tsirkin
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 2/6] hw/virtio: derive vhost-user-rng from vhost-user-base Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 3/6] hw/virtio: derive vhost-user-gpio " Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-11-06 17:15   ` Michael S. Tsirkin
2023-11-06 17:30     ` Alex Bennée
2023-11-06 17:53       ` Michael S. Tsirkin
2023-11-06 19:18         ` Alex Bennée [this message]
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 4/6] hw/virtio: derive vhost-user-i2c " Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 5/6] hw/virtio: add vhost-user-snd and virtio-snd-pci devices Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-10-20  3:14   ` [Virtio-fs] " Viresh Kumar
2023-10-20  3:14     ` Viresh Kumar
2023-10-20  8:16     ` [Virtio-fs] " Alex Bennée
2023-10-20  8:16       ` Alex Bennée
2023-10-20  9:02       ` [Virtio-fs] " Michael S. Tsirkin
2023-10-20  9:02         ` Michael S. Tsirkin
2023-10-20  9:03         ` [Virtio-fs] " Manos Pitsidianakis
2023-10-20  9:03           ` Manos Pitsidianakis
2023-10-19  9:56 ` [Virtio-fs] [PATCH v5 6/6] docs/system: add a basic enumeration of vhost-user devices Alex Bennée
2023-10-19  9:56   ` Alex Bennée
2023-10-24 17:14 ` [Virtio-fs] [PATCH v5 0/6] virtio: cleanup vhost-user-generic and reduce c&p Alex Bennée
2023-10-24 17:14   ` Alex Bennée
2023-10-24 17:18   ` [Virtio-fs] " Michael S. Tsirkin
2023-10-24 17:18     ` Michael S. Tsirkin

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=87il6ebsh5.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=arei.gonglei@huawei.com \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=erik.schilling@linaro.org \
    --cc=fam@euphon.net \
    --cc=hreitz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=mathieu.poirier@linaro.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=raphael.norwitz@nutanix.com \
    --cc=stefanha@redhat.com \
    --cc=viresh.kumar@linaro.org \
    --cc=virtio-fs@redhat.com \
    /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.