[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] migration: In case of postcopy, the memory ends in res_p
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
Re: [PATCH 1/3] migration: In case of postcopy, the memory ends in res_postcopy_only |
Date: |
Thu, 9 Feb 2023 20:36:13 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 08.02.23 16:57, Juan Quintela wrote:
So remove last assignation of res_compatible.
I hoped for some description when asked to split it out :)
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/ram.c b/migration/ram.c
index b966e148c2..85ccbf88ad 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3474,7 +3474,7 @@ static void ram_state_pending_exact(void *opaque,
if (migrate_postcopy_ram()) {
/* We can do postcopy, and all the data is postcopiable */
- *res_compatible += remaining_size;
+ *res_postcopy_only += remaining_size;
Actually, these "remaining_size" bytes are still compatible, i.e. we can
migrate these pending bytes in pre-copy, and we actually do it, until user call
migrate-start-postcopy, yes? But we exploit the fact that, this change don't affect any
logic, just name becomes wrong.. Yes? Or I don't follow:/
} else {
*res_precopy_only += remaining_size;
}
--
Best regards,
Vladimir
- [PATCH 0/3] Remove res_compatible parameter, Juan Quintela, 2023/02/08
- [PATCH 1/3] migration: In case of postcopy, the memory ends in res_postcopy_only, Juan Quintela, 2023/02/08
- Re: [PATCH 1/3] migration: In case of postcopy, the memory ends in res_postcopy_only,
Vladimir Sementsov-Ogievskiy <=
- Re: [PATCH 1/3] migration: In case of postcopy, the memory ends in res_postcopy_only, Juan Quintela, 2023/02/15
- Re: [PATCH 1/3] migration: In case of postcopy, the memory ends in res_postcopy_only, Vladimir Sementsov-Ogievskiy, 2023/02/15
[PATCH 2/3] migration: Remove unused res_compatible, Juan Quintela, 2023/02/08
[PATCH 3/3] migration: Remove _only suffix for res_postcopy/precopy, Juan Quintela, 2023/02/08