From: Amit Shah <amit.shah@redhat.com>
To: Thomas Huth <thuth@linux.vnet.ibm.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/5] migration: Remove unused functions
Date: Tue, 24 Feb 2015 14:58:29 +0530 [thread overview]
Message-ID: <20150224092829.GA26558@grmbl.mre> (raw)
In-Reply-To: <1424365943-27563-2-git-send-email-thuth@linux.vnet.ibm.com>
On (Thu) 19 Feb 2015 [18:12:19], Thomas Huth wrote:
> dup_mig_bytes_transferred(), skipped_mig_bytes_transferred(),
> migrate_rdma_pin_all(), qsb_clone() and qsb_set_length()
> are completely unused and thus can be deleted.
>
> Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
> Cc: Juan Quintela <quintela@redhat.com>
> Cc: Amit Shah <amit.shah@redhat.com>
> ---
> arch_init.c | 10 -------
> include/migration/migration.h | 3 --
> include/migration/qemu-file.h | 2 -
> migration/migration.c | 9 -------
> migration/qemu-file-buf.c | 53 -----------------------------------------
> 5 files changed, 0 insertions(+), 77 deletions(-)
>
> diff --git a/arch_init.c b/arch_init.c
> index 89c8fa4..ad5ce28 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -249,21 +249,11 @@ static void acct_clear(void)
> memset(&acct_info, 0, sizeof(acct_info));
> }
>
> -uint64_t dup_mig_bytes_transferred(void)
> -{
> - return acct_info.dup_pages * TARGET_PAGE_SIZE;
> -}
> -
> uint64_t dup_mig_pages_transferred(void)
> {
> return acct_info.dup_pages;
> }
>
> -uint64_t skipped_mig_bytes_transferred(void)
> -{
> - return acct_info.skipped_pages * TARGET_PAGE_SIZE;
> -}
These could be used for reporting; Juan, any idea why these aren't
used?
Rest of the patch is fine.
Amit
next prev parent reply other threads:[~2015-02-24 9:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 17:12 [Qemu-devel] [PATCH v2 0/5] Remove unused functions Thomas Huth
2015-02-19 17:12 ` [Qemu-devel] [PATCH 1/5] migration: " Thomas Huth
2015-02-24 9:28 ` Amit Shah [this message]
2015-02-24 16:28 ` Thomas Huth
2015-03-02 6:44 ` Amit Shah
2015-02-19 17:12 ` [Qemu-devel] [PATCH 2/5] ui: Removed " Thomas Huth
2015-02-23 7:19 ` Gerd Hoffmann
2015-02-19 17:12 ` [Qemu-devel] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread() Thomas Huth
2015-02-23 7:19 ` Gerd Hoffmann
2015-02-19 17:12 ` [Qemu-devel] [PATCH 4/5] util: Remove unused functions Thomas Huth
2015-02-19 17:12 ` [Qemu-devel] [PATCH 5/5] xen: Remove xen_cmos_set_s3_resume() Thomas Huth
2015-02-25 16:47 ` Stefano Stabellini
2015-02-28 9:16 ` [Qemu-devel] [PATCH v2 0/5] Remove unused functions Michael Tokarev
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=20150224092829.GA26558@grmbl.mre \
--to=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=quintela@redhat.com \
--cc=thuth@linux.vnet.ibm.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).