All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Pierrick Bouvier <pierrick.bouvier@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 14:07:59 -0500	[thread overview]
Message-ID: <20260224134436-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <967c35ff-0630-4ca7-847e-04a918c93e7d@linaro.org>

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).


-- 
MST



  reply	other threads:[~2026-02-24 19:09 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 [this message]
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

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=20260224134436-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.