From: Amit Shah <amit.shah@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
Cc: qemu-devel@nongnu.org, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] Move dirty page search state into separate structure
Date: Wed, 23 Sep 2015 17:50:03 +0530 [thread overview]
Message-ID: <20150923122003.GA25273@grmbl.mre> (raw)
In-Reply-To: <1442427114-5075-2-git-send-email-dgilbert@redhat.com>
On (Wed) 16 Sep 2015 [19:11:53], Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> Pull the sarch state for one iteration of the dirty page
typo in 'search'
> search into a structure.
>
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> @@ -923,26 +933,29 @@ static int ram_save_compressed_page(QEMUFile *f, RAMBlock *block,
> static int ram_find_and_save_block(QEMUFile *f, bool last_stage,
> uint64_t *bytes_transferred)
> {
> - RAMBlock *block = last_seen_block;
> - ram_addr_t offset = last_offset;
> - bool complete_round = false;
> + PageSearchStatus pss;
> int pages = 0;
>
> - if (!block)
> - block = QLIST_FIRST_RCU(&ram_list.blocks);
> + pss.block = last_seen_block;
> + pss.offset = last_offset;
> + pss.complete_round = false;
> +
> + if (!pss.block)
> + pss.block = QLIST_FIRST_RCU(&ram_list.blocks);
Missing {} around if
With those fixed:
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Amit
next prev parent reply other threads:[~2015-09-23 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 18:11 [Qemu-devel] [PATCH 0/2] Split up ram_find_and_save_block Dr. David Alan Gilbert (git)
2015-09-16 18:11 ` [Qemu-devel] [PATCH 1/2] Move dirty page search state into separate structure Dr. David Alan Gilbert (git)
2015-09-23 12:20 ` Amit Shah [this message]
2015-09-16 18:11 ` [Qemu-devel] [PATCH 2/2] ram_find_and_save_block: Split out the finding Dr. David Alan Gilbert (git)
2015-09-23 12:26 ` Amit Shah
2015-09-23 12:42 ` Dr. David Alan Gilbert
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=20150923122003.GA25273@grmbl.mre \
--to=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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).