From: Peter Xu <peterx@redhat.com>
To: Avihai Horon <avihaih@nvidia.com>
Cc: Yishai Hadas <yishaih@nvidia.com>,
Alex Williamson <alex@shazbot.org>,
jgg@nvidia.com, kvm@vger.kernel.org, kevin.tian@intel.com,
joao.m.martins@oracle.com, leonro@nvidia.com, maorg@nvidia.com,
clg@redhat.com, liulongfang@huawei.com,
giovanni.cabiddu@intel.com, kwankhede@nvidia.com
Subject: Re: [PATCH V1 vfio 6/6] vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO
Date: Tue, 17 Mar 2026 10:06:53 -0400 [thread overview]
Message-ID: <ablf_dVtYlZOoIcp@x1.local> (raw)
In-Reply-To: <accc2aeb-6ae1-4aec-867c-c9927e98f903@nvidia.com>
Hi, Avihai,
On Tue, Mar 17, 2026 at 11:58:28AM +0200, Avihai Horon wrote:
> Yes, this is because the VFIO device stop_copy_size may hold data that can
> be transferred only when the device is stopped, i.e., during switchover (as
> opposed to RAM which is fully precopy-able).
> Reporting it as part of estimate() didn't seem right, as precopy iterations
> will not reduce it -- if it's big enough (above the threshold), it may block
> future exact() calls as we can't migrate this data during pre-copy and reach
> below threshold again.
This doesn't look right either. I think we should stick with the exact()
being only the accurate version of estimate() only. The problem might be
that the current interfacing for both may not suite well enough with VFIO,
because VFIO is so far the only module that may contain stop-only data.
The other known issue (not directly relevant here, but we will need to look
into it very soon) is when VFIO is involved the query-migrate results are
sometimes not containing VFIO data, at least "total" and "remaining" fields.
I'll see if I can prepare some quick patch this week to address them, or at
least raise these problem explicitly so you can have a closer look if possible.
[...]
> Yes, I agree, but it's a delicate flow in QEMU and need to get to the
> details.
> Anyway, this case should be rare and we can further discuss these details
> when I send the QEMU series.
Yep, that's fine.
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2026-03-17 14:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 16:40 [PATCH V1 vfio 0/6] Add support for PRE_COPY initial bytes re-initialization Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 1/6] vfio: Define uAPI for re-init initial bytes during the PRE_COPY phase Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 2/6] vfio: Add support for VFIO_DEVICE_FEATURE_MIG_PRECOPY_INFOv2 Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 3/6] vfio: Adapt drivers to use the core helper vfio_check_precopy_ioctl Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 4/6] net/mlx5: Add IFC bits for migration state Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 5/6] vfio/mlx5: consider inflight SAVE during PRE_COPY Yishai Hadas
2026-03-10 16:40 ` [PATCH V1 vfio 6/6] vfio/mlx5: Add REINIT support to VFIO_MIG_GET_PRECOPY_INFO Yishai Hadas
2026-03-12 17:37 ` Peter Xu
2026-03-12 19:08 ` Alex Williamson
2026-03-12 20:16 ` Peter Xu
2026-03-15 14:19 ` Yishai Hadas
2026-03-16 19:24 ` Peter Xu
2026-03-17 9:58 ` Avihai Horon
2026-03-17 14:06 ` Peter Xu [this message]
2026-03-17 15:22 ` Avihai Horon
2026-03-17 15:52 ` Peter Xu
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=ablf_dVtYlZOoIcp@x1.local \
--to=peterx@redhat.com \
--cc=alex@shazbot.org \
--cc=avihaih@nvidia.com \
--cc=clg@redhat.com \
--cc=giovanni.cabiddu@intel.com \
--cc=jgg@nvidia.com \
--cc=joao.m.martins@oracle.com \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=kwankhede@nvidia.com \
--cc=leonro@nvidia.com \
--cc=liulongfang@huawei.com \
--cc=maorg@nvidia.com \
--cc=yishaih@nvidia.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