qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@redhat.com>
To: Zhenzhong Duan <zhenzhong.duan@intel.com>, qemu-devel@nongnu.org
Cc: john.levon@nutanix.com, chao.p.peng@intel.com,
	Alex Williamson <alex.williamson@redhat.com>
Subject: Re: [PATCH] vfio/container: Fix vfio_listener_commit()
Date: Mon, 9 Jun 2025 18:33:59 +0200	[thread overview]
Message-ID: <433391e7-47d7-422d-ad24-b5a1ceb354b5@redhat.com> (raw)
In-Reply-To: <20250609115433.401775-1-zhenzhong.duan@intel.com>

On 6/9/25 13:54, Zhenzhong Duan wrote:
> It's wrong to call into listener_begin callback in vfio_listener_commit().
> Currently this impacts vfio-user.
> 
> Fixes: d9b7d8b6993b ("vfio/container: pass listener_begin/commit callbacks")
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
> ---
>   hw/vfio/listener.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/vfio/listener.c b/hw/vfio/listener.c
> index 203ed0314e..735b5f21b7 100644
> --- a/hw/vfio/listener.c
> +++ b/hw/vfio/listener.c
> @@ -437,7 +437,7 @@ static void vfio_listener_commit(MemoryListener *listener)
>                                                    listener);
>       void (*listener_commit)(VFIOContainerBase *bcontainer);
>   
> -    listener_commit = VFIO_IOMMU_GET_CLASS(bcontainer)->listener_begin;
> +    listener_commit = VFIO_IOMMU_GET_CLASS(bcontainer)->listener_commit;
>   
>       if (listener_commit) {
>           listener_commit(bcontainer);


Applied to vfio-next.

Thanks,

C.




      parent reply	other threads:[~2025-06-09 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-09 11:54 [PATCH] vfio/container: Fix vfio_listener_commit() Zhenzhong Duan
2025-06-09 12:01 ` John Levon
2025-06-09 16:33 ` Cédric Le Goater [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=433391e7-47d7-422d-ad24-b5a1ceb354b5@redhat.com \
    --to=clg@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=chao.p.peng@intel.com \
    --cc=john.levon@nutanix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhenzhong.duan@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).