From: Peter Xu <peterx@redhat.com>
To: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Hyman <huangy81@chinatelecom.cn>,
"Dr . David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [PATCH v4 00/13] KVM: Dirty ring support (QEMU part)
Date: Tue, 9 Mar 2021 16:48:26 -0500 [thread overview]
Message-ID: <20210309214826.GK763132@xz-x1> (raw)
In-Reply-To: <20210108164601.406146-1-peterx@redhat.com>
On Fri, Jan 08, 2021 at 11:45:48AM -0500, Peter Xu wrote:
> This is v4 of the qemu dirty ring interface support.
>
> It is merely the same as v3 content-wise, but there're a few things to mention
> besides the rebase itself:
>
> - I picked up two patches from Eric Farman for the linux-header updates (from
> Eric's v3 series) for convenience just in case any of the series would got
> queued by any maintainer.
>
> - One more patch is added as "KVM: Disable manual dirty log when dirty ring
> enabled". I found this when testing the branch after rebasing to latest
> qemu, that not only the manual dirty log capability is not needed for kvm
> dirty ring, but more importantly INITIALLY_ALL_SET is totally against kvm
> dirty ring and it could silently crash the guest after migration. For this
> new commit, I touched up "KVM: Add dirty-gfn-count property" a bit.
>
> - A few more documentation lines in qemu-options.hx.
>
> - I removed the RFC tag after kernel series got merged.
>
> Again, this is only the 1st step to support dirty ring. Ideally dirty ring
> should grant QEMU the possibility to remove the whole layered dirty bitmap so
> that dirty ring will work similarly as auto-converge enabled but should better;
> we will just throttle vcpus with the dirty ring kvm exit rather than explicitly
> adding a timer to stop the vcpu thread from entering the guest again (like what
> we did with current migration auto-converge). Some more information could also
> be found in the kvm forum 2020 talk regarding kvm dirty ring (slides 21/22 [1]).
>
> That next step (to remove all the dirty bitmaps, as mentioned above) is still
> discussable: firstly I don't know whether there's anything I've overlooked in
> there. Meanwhile that's also only services huge VM cases, may not be extremely
> helpful with a lot major scenarios where VMs are not that huge.
>
> There's probably other ways to fix huge VM migration issues, majorly focusing
> on responsiveness and convergence. For example, Google has proposed some new
> userfaultfd kernel capability called "minor modes" [2] to track page minor
> faults and that could be finally served for that purpose too using postcopy.
> That's another long story so I'll stop here, but just as a marker along with
> the dirty ring series so there'll still be a record to reference.
>
> Said that, I still think this series is very worth merging even if we don't
> persue the next steps yet, since dirty ring is disabled by default, and we can
> always work upon this series.
>
> Please review, thanks.
Ping - Paolo, what would be your take on this series?
Thanks,
--
Peter Xu
prev parent reply other threads:[~2021-03-09 21:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-08 16:45 [PATCH v4 00/13] KVM: Dirty ring support (QEMU part) Peter Xu
2021-01-08 16:45 ` [PATCH v4 01/13] update-linux-headers: Include const.h Peter Xu
2021-01-08 16:45 ` [PATCH v4 02/13] Update linux headers to 5.11-rc2 Peter Xu
2021-01-08 16:45 ` [PATCH v4 03/13] memory: Introduce log_sync_global() to memory listener Peter Xu
2021-01-08 16:50 ` [PATCH v4 04/13] KVM: Fixup kvm_log_clear_one_slot() ioctl return check Peter Xu
2021-01-08 16:50 ` [PATCH v4 05/13] KVM: Use a big lock to replace per-kml slots_lock Peter Xu
2021-01-08 16:50 ` [PATCH v4 06/13] KVM: Create the KVMSlot dirty bitmap on flag changes Peter Xu
2021-01-08 16:50 ` [PATCH v4 07/13] KVM: Provide helper to get kvm dirty log Peter Xu
2021-01-08 16:50 ` [PATCH v4 08/13] KVM: Provide helper to sync dirty bitmap from slot to ramblock Peter Xu
2021-01-08 16:50 ` [PATCH v4 09/13] KVM: Simplify dirty log sync in kvm_set_phys_mem Peter Xu
2021-01-08 16:50 ` [PATCH v4 10/13] KVM: Cache kvm slot dirty bitmap size Peter Xu
2021-01-08 16:50 ` [PATCH v4 11/13] KVM: Add dirty-gfn-count property Peter Xu
2021-01-08 16:50 ` [PATCH v4 12/13] KVM: Disable manual dirty log when dirty ring enabled Peter Xu
2021-01-08 16:50 ` [PATCH v4 13/13] KVM: Dirty ring support Peter Xu
2021-03-09 21:48 ` Peter Xu [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=20210309214826.GK763132@xz-x1 \
--to=peterx@redhat.com \
--cc=dgilbert@redhat.com \
--cc=huangy81@chinatelecom.cn \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).