[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 16/18] migration: control_save_page() can take block through
From: |
Lukas Straub |
Subject: |
Re: [PATCH 16/18] migration: control_save_page() can take block through pss |
Date: |
Thu, 22 Jun 2023 13:48:06 +0200 |
On Tue, 13 Jun 2023 16:57:55 +0200
Juan Quintela <quintela@redhat.com> wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Lukas Straub <lukasstraub2@web.de>
> ---
> migration/ram.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/migration/ram.c b/migration/ram.c
> index e3ff98a6ce..293ea87a70 100644
> --- a/migration/ram.c
> +++ b/migration/ram.c
> @@ -1114,14 +1114,14 @@ static int save_zero_page(PageSearchStatus *pss,
> QEMUFile *f, RAMBlock *block,
> *
> * Return true if the pages has been saved, otherwise false is returned.
> */
> -static bool control_save_page(PageSearchStatus *pss, RAMBlock *block,
> +static bool control_save_page(PageSearchStatus *pss,
> ram_addr_t offset, int *pages)
> {
> uint64_t bytes_xmit = 0;
> int ret;
>
> *pages = -1;
> - ret = ram_control_save_page(pss->pss_channel, block->offset, offset,
> + ret = ram_control_save_page(pss->pss_channel, pss->block->offset, offset,
> TARGET_PAGE_SIZE, &bytes_xmit);
> if (ret == RAM_SAVE_CONTROL_NOT_SUPP) {
> return false;
> @@ -2025,7 +2025,7 @@ static int ram_save_target_page_legacy(RAMState *rs,
> PageSearchStatus *pss)
> ram_addr_t offset = ((ram_addr_t)pss->page) << TARGET_PAGE_BITS;
> int res;
>
> - if (control_save_page(pss, block, offset, &res)) {
> + if (control_save_page(pss, offset, &res)) {
> return res;
> }
>
- Re: [PATCH 18/18] migration: Remove not needed file parameter for save_zero_page*, (continued)
- [PATCH 05/18] migration: Move compression_counters cleanup ram-compress.c, Juan Quintela, 2023/06/13
- [PATCH 12/18] migration: Create compression_update_rates(), Juan Quintela, 2023/06/13
- [PATCH 11/18] migration: Move busy++ to migrate_with_multithread, Juan Quintela, 2023/06/13
- [PATCH 14/18] migration: Use "i" as an for index in ram-compress.c, Juan Quintela, 2023/06/13
- [PATCH 16/18] migration: control_save_page() can take block through pss, Juan Quintela, 2023/06/13
- Re: [PATCH 16/18] migration: control_save_page() can take block through pss,
Lukas Straub <=
- [PATCH 17/18] migration: Remove not needed block parameter for save_zero_page*, Juan Quintela, 2023/06/13