From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Xu <peterx@redhat.com>, qemu-devel@nongnu.org
Cc: David Gibson <david@gibson.dropbear.id.au>,
Alexey Kardashevskiy <aik@ozlabs.ru>,
Alex Williamson <alex.williamson@redhat.com>
Subject: Re: [Qemu-devel] [RFC 1/2] memory: do explicit cleanup when remove listeners
Date: Fri, 19 Jan 2018 11:21:36 +0100 [thread overview]
Message-ID: <88a39fec-67d6-5b60-ad70-2c14c4f2fffe@redhat.com> (raw)
In-Reply-To: <20180119084219.31187-2-peterx@redhat.com>
On 19/01/2018 09:42, Peter Xu wrote:
> + FOR_EACH_FLAT_RANGE(fr, view) {
listener->begin is missing before the loop.
Paolo
> + MemoryRegionSection section = section_from_flat_range(fr, view);
> +
> + if (fr->dirty_log_mask && listener->log_stop) {
> + listener->log_stop(listener, §ion, fr->dirty_log_mask, 0);
> + }
> + if (listener->region_del) {
> + listener->region_del(listener, §ion);
> + }
> + }
> + if (listener->commit) {
> + listener->commit(listener);
> + }
> + flatview_unref(view);
next prev parent reply other threads:[~2018-01-19 10:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 8:42 [Qemu-devel] [RFC 0/2] memory/vfio: notify region_del() when unregister listeners Peter Xu
2018-01-19 8:42 ` [Qemu-devel] [RFC 1/2] memory: do explicit cleanup when remove listeners Peter Xu
2018-01-19 10:21 ` Paolo Bonzini [this message]
2018-01-19 8:42 ` [Qemu-devel] [RFC 2/2] vfio: listener unregister before unset container Peter Xu
2018-01-19 11:41 ` [Qemu-devel] [RFC 0/2] memory/vfio: notify region_del() when unregister listeners Paolo Bonzini
2018-01-22 5:41 ` 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=88a39fec-67d6-5b60-ad70-2c14c4f2fffe@redhat.com \
--to=pbonzini@redhat.com \
--cc=aik@ozlabs.ru \
--cc=alex.williamson@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=peterx@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).