All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Cc: BillXiang <xiangwencheng@lanxincomputing.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Albert Esteve" <aesteve@redhat.com>,
	"Alberto Faria" <afaria@redhat.com>,
	"Alessandro Di Federico" <ale@rev.ng>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Anton Johansson" <anjo@rev.ng>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Brian Cain" <bcain@quicinc.com>,
	"Daniel P. Berrange" <berrange@redhat.com>,
	"Chao Peng" <chao.p.peng@linux.intel.com>,
	cjia@nvidia.com, "Cédric Le Goater" <clg@redhat.com>,
	cw@f00f.org, dbarboza@qti.qualcomm.com,
	"Demi Marie Obenour" <demiobenour@gmail.com>,
	dhedde@kalrayinc.com, "Eric Blake" <eblake@redhat.com>,
	eblot@rivosinc.com,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
	"Eduardo Habkost" <eduardo@habkost.net>,
	"Elena Ufimtseva" <elena.ufimtseva@oracle.com>,
	"Auger Eric" <eric.auger@redhat.com>,
	felipe@nutanix.com, helge.deller@googlemail.com,
	"Alyssa Ross" <hi@alyssa.is>,
	iggy@theiggy.com, "Warner Losh" <imp@bsdimp.com>,
	jacob.oursland@gmail.com, "Jan Kiszka" <jan.kiszka@web.de>,
	"Jason Gunthorpe" <jgg@nvidia.com>,
	jidong.xiao@gmail.com, "Jim Shu" <jim.shu@sifive.com>,
	"Joao Martins" <joao.m.martins@oracle.com>,
	"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
	"Luc Michel" <luc@lmichel.fr>,
	"Manos Pitsidianakis" <manos.pitsidianakis@linaro.org>,
	"Marc-André Lureau" <marcandre.lureau@gmail.com>,
	matthieu@minio.io, "Max Chou" <max.chou@sifive.com>,
	"Mark Burton" <mburton@qti.qualcomm.com>,
	"Ho, Nelson" <nelson.ho@windriver.com>,
	"Paul Walmsley" <paul.walmsley@sifive.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Roberto Campesato" <rbc@meta.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Shameerali Kolothum Thodi"
	<shameerali.kolothum.thodi@huawei.com>,
	"Bernhard Beschow" <shentey@gmail.com>,
	"Stefan Hajnoczi" <stefanha@gmail.com>,
	"Thomas Huth" <thuth@redhat.com>,
	utsingh@redhat.com, "Wei Wang" <wei.w.wang@intel.com>,
	z.huo@139.com, "LIU Zhiwei" <zhiwei_liu@linux.alibaba.com>,
	zwu.kernel@gmail.com
Subject: Re: KVM/QEMU community call tomorrow - agenda items?
Date: Mon, 31 Aug 2026 13:05:14 -0400	[thread overview]
Message-ID: <apW0SkNxWPCyvVV6@x1.local> (raw)
In-Reply-To: <48cef34d-18c1-4b8c-a75d-19d1d1321634@oss.qualcomm.com>

On Mon, Aug 31, 2026 at 05:46:12PM +0200, Philippe Mathieu-Daudé wrote:
> On 31/8/26 13:49, BillXiang wrote:
> 
> > How about discussing the patch[1]:
> > "virtio: Add aligned ld/st accessors for vring".
> > 
> > As pointed out in the patch, this has been a long-standing issue. It is
> > now necessary to introduce atomic accessors for fields that require
> > atomicity, such as the avail_idx field in virtio. This support is
> > especially crucial for architectures like RISC-V, which do not natively
> > support misaligned memory accesses.
> > 
> > I'm particularly eager to receive more suggestions for it.

I saw the last email was from me..

https://lore.kernel.org/qemu-devel/aoxiBB2Wn8NiL5s6@x1.local/

I believe that was what PeterM suggested. I think Richard also at least
partly agrees. so I thought we had at least partial consensus on the rough
idea, if not exactly how.

I confess I haven't fully got the latter part of Richard's comment,
regarding the possibility to reuse accel/tcg/ldst_atomicity.c.inc: that
path seems to invole a guest CPU context, where in the case of reading
virtio ring it is from host and it has no guest CPU context.  But I think
we can continue the discussion on the list in that thread.

> 
> This is a very technical topic, not sure if the community call will
> be a better place than the mailing list, in particular if no virtio /
> atomic expert developers appears. We'll see :)

Yes, I had such similar feeling that the problem was not yet blocked by
something that a video call would better help..

For example, I still want to double check if that change would work for
your current use case, it will at least verify the thought, no matter if we
want to use it or not.

Thanks,

-- 
Peter Xu



  reply	other threads:[~2026-08-31 17:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31  7:24 KVM/QEMU community call tomorrow - agenda items? Alex Bennée
2026-08-31 10:12 ` Philippe Mathieu-Daudé
2026-09-01 13:15   ` Mark Cave-Ayland
2026-08-31 11:49 ` BillXiang
2026-08-31 15:46   ` Philippe Mathieu-Daudé
2026-08-31 17:05     ` Peter Xu [this message]
2026-09-01  2:12       ` BillXiang
2026-09-01  2:07     ` BillXiang
2026-09-01  5:09       ` Markus Armbruster

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=apW0SkNxWPCyvVV6@x1.local \
    --to=peterx@redhat.com \
    --cc=aesteve@redhat.com \
    --cc=afaria@redhat.com \
    --cc=ale@rev.ng \
    --cc=alex.bennee@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=anjo@rev.ng \
    --cc=armbru@redhat.com \
    --cc=bcain@quicinc.com \
    --cc=berrange@redhat.com \
    --cc=chao.p.peng@linux.intel.com \
    --cc=cjia@nvidia.com \
    --cc=clg@redhat.com \
    --cc=cw@f00f.org \
    --cc=dbarboza@qti.qualcomm.com \
    --cc=demiobenour@gmail.com \
    --cc=dhedde@kalrayinc.com \
    --cc=eblake@redhat.com \
    --cc=eblot@rivosinc.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=eduardo@habkost.net \
    --cc=elena.ufimtseva@oracle.com \
    --cc=eric.auger@redhat.com \
    --cc=felipe@nutanix.com \
    --cc=helge.deller@googlemail.com \
    --cc=hi@alyssa.is \
    --cc=iggy@theiggy.com \
    --cc=imp@bsdimp.com \
    --cc=jacob.oursland@gmail.com \
    --cc=jan.kiszka@web.de \
    --cc=jgg@nvidia.com \
    --cc=jidong.xiao@gmail.com \
    --cc=jim.shu@sifive.com \
    --cc=joao.m.martins@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=luc@lmichel.fr \
    --cc=manos.pitsidianakis@linaro.org \
    --cc=marcandre.lureau@gmail.com \
    --cc=matthieu@minio.io \
    --cc=max.chou@sifive.com \
    --cc=mburton@qti.qualcomm.com \
    --cc=nelson.ho@windriver.com \
    --cc=paul.walmsley@sifive.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rbc@meta.com \
    --cc=richard.henderson@linaro.org \
    --cc=shameerali.kolothum.thodi@huawei.com \
    --cc=shentey@gmail.com \
    --cc=stefanha@gmail.com \
    --cc=thuth@redhat.com \
    --cc=utsingh@redhat.com \
    --cc=wei.w.wang@intel.com \
    --cc=xiangwencheng@lanxincomputing.com \
    --cc=z.huo@139.com \
    --cc=zhiwei_liu@linux.alibaba.com \
    --cc=zwu.kernel@gmail.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.