|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH v3 1/2] migration: Split ram_bytes_total_common() in two functions |
Date: | Wed, 8 Feb 2023 15:54:01 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 |
On 8/2/23 15:14, Juan Quintela wrote:
It is just a big if in the middle of the function, and we need two functions anways.
Typo "anyways".
Signed-off-by: Juan Quintela <quintela@redhat.com> --- migration/ram.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) @@ -3222,7 +3224,8 @@ static int ram_save_setup(QEMUFile *f, void *opaque) (*rsp)->pss[RAM_CHANNEL_PRECOPY].pss_channel = f;WITH_RCU_READ_LOCK_GUARD() {- qemu_put_be64(f, ram_bytes_total_common(true) | RAM_SAVE_FLAG_MEM_SIZE); + qemu_put_be64(f, ram_bytes_total_with_ignored() + | RAM_SAVE_FLAG_MEM_SIZE);
Per CODING_STYLE the '|' should go under ram_bytes_total_with_ignored ;) qemu_put_be64(f, ram_bytes_total_with_ignored() | RAM_SAVE_FLAG_MEM_SIZE);
RAMBLOCK_FOREACH_MIGRATABLE(block) { qemu_put_byte(f, strlen(block->idstr));
[Prev in Thread] | Current Thread | [Next in Thread] |