From: "Michael S. Tsirkin" <mst@redhat.com>
To: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
"Harsh Prateek Bora" <harshpb@linux.ibm.com>,
"Stefano Garzarella" <sgarzare@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Nicholas Piggin" <npiggin@gmail.com>,
stefanha@redhat.com, richard.henderson@linaro.org,
"BALATON Zoltan" <balaton@eik.bme.hu>
Subject: Re: [PATCH 0/3] hw/virtio/virtio-access.h: remove target specific code
Date: Tue, 24 Feb 2026 19:21:31 -0500 [thread overview]
Message-ID: <20260224191845-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <c8e97ad8-e54c-4134-a7d8-cbc91f7f4bae@linaro.org>
On Tue, Feb 24, 2026 at 11:21:09AM -0800, Pierrick Bouvier wrote:
> On 2/24/26 11:07 AM, Michael S. Tsirkin wrote:
> > On Tue, Feb 24, 2026 at 07:33:14PM +0100, Philippe Mathieu-Daudé wrote:
> > > Hi Pierrick,
> > >
> > > On 13/2/26 00:45, Pierrick Bouvier wrote:
> > > > This series eliminates some target specifics in hw/virtio and replace them with
> > > > runtime functions where needed, to be able to link virtio code in single-binary.
> > > > After a first try on a series [0] doing this change and making all virtio files
> > > > common, Richard asked to refactor this part, thus this independent series.
> > >
> > > > Pierrick Bouvier (3):
> > > > hw/virtio: add virtio_vdev_is_{modern, legacy}
> > > > hw/virtio: rename virtio_is_big_endian to virtio_vdev_is_big_endian
> > > > hw/virtio: remove virtio_access_is_big_endian
> > >
> > > Patch #2 has been merged as commit 6325407f67d.
> > >
> > > Since we don't have feedback from the maintainers Cc'ed, I took
> > > the liberty to rebase your series, trying to address Zoltan's
> > > concerns on patch #1.
> >
> >
> > So as I said, main use-case where we would worry about perf is
> > virtio storage. So it's mostly for storage guys to ack.
> > Did not get Stefan's feedback yet on whether he is happy.
> >
> > I don't understand if we always want to build a single binary though.
> > If not we could address all perf worries by having both generic
> > and target specific implementations by using linker tricks (weak symbols or
> > whatnot).
> >
>
> This is not possible unfortunately, since concerned function is declared
> static inline.
I refer to all of affected device here. Not just the single function.
> If we want to follow the linker approach, we would still have
> to pay for an indirect function call. That's why we insist so much to change
> the current definition, as it's the only way to move forward.
>
> The other solution is to exclude virtio completely from single-binary,
Not exclude - have a separate slower version of virtio for that.
> but
> we don't want to have specific config for this, and we worked hard to keep
> our promise over all other subsystems we touched with satisfying compromises
> for concerned maintainers.
ok
> Virtio and vfio are the last two left. After that, there is nothing really
> blocking the path towards the goal.
>
> I invite you to watch the presentation we did with Philippe in latest KVM
> Forum, it will probably answers on some of your questions.
>
> Especially, you'll see we insist on single binary being a recollection of
> existing compilation units, and not yet another configuration to build (and
> potentially fail).
>
> Regards,
> Pierrick
Merely pointing out a fallback approach.
--
MST
prev parent reply other threads:[~2026-02-25 0:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 23:45 [PATCH 0/3] hw/virtio/virtio-access.h: remove target specific code Pierrick Bouvier
2026-02-12 23:46 ` [PATCH 1/3] hw/virtio: add virtio_vdev_is_{modern, legacy} Pierrick Bouvier
2026-02-13 1:19 ` BALATON Zoltan
2026-02-13 1:33 ` Pierrick Bouvier
2026-02-18 21:00 ` Philippe Mathieu-Daudé
2026-02-18 22:17 ` Pierrick Bouvier
2026-02-18 22:20 ` Pierrick Bouvier
2026-02-18 22:28 ` BALATON Zoltan
2026-02-18 22:33 ` Pierrick Bouvier
2026-02-18 23:46 ` BALATON Zoltan
2026-02-19 0:13 ` Pierrick Bouvier
2026-02-19 14:13 ` BALATON Zoltan
2026-02-12 23:46 ` [PATCH 2/3] hw/virtio: rename virtio_is_big_endian to virtio_vdev_is_big_endian Pierrick Bouvier
2026-02-18 21:01 ` Philippe Mathieu-Daudé
2026-02-12 23:46 ` [PATCH 3/3] hw/virtio: remove virtio_access_is_big_endian Pierrick Bouvier
2026-02-18 21:02 ` Philippe Mathieu-Daudé
2026-02-18 16:53 ` [PATCH 0/3] hw/virtio/virtio-access.h: remove target specific code Pierrick Bouvier
2026-02-24 18:33 ` Philippe Mathieu-Daudé
2026-02-24 19:07 ` Michael S. Tsirkin
2026-02-24 19:21 ` Pierrick Bouvier
2026-02-24 19:36 ` Philippe Mathieu-Daudé
2026-02-25 0:25 ` Stefan Hajnoczi
2026-02-25 0:21 ` Michael S. Tsirkin [this message]
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=20260224191845-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=harshpb@linux.ibm.com \
--cc=jasowang@redhat.com \
--cc=npiggin@gmail.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sgarzare@redhat.com \
--cc=stefanha@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.