From: "Andreas Färber" <afaerber@suse.de>
To: peter.crosthwaite@xilinx.com, pbonzini@redhat.com
Cc: qemu-trivial@nongnu.org, edgar.iglesias@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v1 2/3] memory: as_update_topology_pass: Improve comments
Date: Tue, 04 Jun 2013 13:43:25 +0200 [thread overview]
Message-ID: <51ADD2DD.3090909@suse.de> (raw)
In-Reply-To: <54b43e8b5fe6acff6fe667062d412c0b224f92f6.1370237352.git.peter.crosthwaite@xilinx.com>
Am 03.06.2013 07:32, schrieb peter.crosthwaite@xilinx.com:
> From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
>
> These comments we're a little difficult to read. First one had
While we're picky: "were" - Paolo can you fix up in your queue?
Andreas
> incorrect parenthesis. The part about attributes changing is
> really applicable to the region being 'in both' rather than 'in
> new'
>
> Second comment has an obscure parenthetic about 'Logging may have
> changed'. Made clearer, as this if is supposed to handle the case where
> the memory region is unchanged (with the notable exception re logging).
>
> Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
> ---
>
> memory.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 60e033b..7e710c4 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -719,7 +719,7 @@ static void address_space_update_topology_pass(AddressSpace *as,
> || int128_lt(frold->addr.start, frnew->addr.start)
> || (int128_eq(frold->addr.start, frnew->addr.start)
> && !flatrange_equal(frold, frnew)))) {
> - /* In old, but (not in new, or in new but attributes changed). */
> + /* In old but not in new, or in both but attributes changed. */
>
> if (!adding) {
> MEMORY_LISTENER_UPDATE_REGION(frold, as, Reverse, region_del);
> @@ -727,7 +727,7 @@ static void address_space_update_topology_pass(AddressSpace *as,
>
> ++iold;
> } else if (frold && frnew && flatrange_equal(frold, frnew)) {
> - /* In both (logging may have changed) */
> + /* In both and unchanged (except logging may have changed) */
>
> if (adding) {
> MEMORY_LISTENER_UPDATE_REGION(frnew, as, Forward, region_nop);
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2013-06-04 11:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-03 5:31 [Qemu-devel] [PATCH v1 0/3] Memory: Trivial fixes peter.crosthwaite
2013-06-03 5:31 ` [Qemu-devel] [PATCH v1 1/3] memory: Fix comment typo peter.crosthwaite
2013-06-03 5:32 ` [Qemu-devel] [PATCH v1 2/3] memory: as_update_topology_pass: Improve comments peter.crosthwaite
2013-06-04 11:43 ` Andreas Färber [this message]
2013-06-04 12:33 ` Paolo Bonzini
2013-06-03 5:33 ` [Qemu-devel] [PATCH v1 3/3] memory: render_memory_region: factor out fr constant setters peter.crosthwaite
2013-06-03 12:26 ` [Qemu-devel] [PATCH v1 0/3] Memory: Trivial fixes Paolo Bonzini
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=51ADD2DD.3090909@suse.de \
--to=afaerber@suse.de \
--cc=edgar.iglesias@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).