[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/9] block/fdc: 'phase' is not needed on load
From: |
marcandre . lureau |
Subject: |
[PATCH v2 1/9] block/fdc: 'phase' is not needed on load |
Date: |
Tue, 24 Oct 2023 12:40:35 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
It is reconstructed during fdc_post_load()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
hw/block/fdc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/block/fdc.c b/hw/block/fdc.c
index d7cc4d3ec1..fc71660ba0 100644
--- a/hw/block/fdc.c
+++ b/hw/block/fdc.c
@@ -1005,6 +1005,11 @@ static bool fdc_phase_needed(void *opaque)
{
FDCtrl *fdctrl = opaque;
+ /* not needed on load */
+ if (fdctrl->phase == FD_PHASE_RECONSTRUCT) {
+ return false;
+ }
+
return reconstruct_phase(fdctrl) != fdctrl->phase;
}
--
2.41.0
- [PATCH v2 0/9] RFC: migration: check required entries and sections are loaded, marcandre . lureau, 2023/10/24
- [PATCH v2 1/9] block/fdc: 'phase' is not needed on load,
marcandre . lureau <=
- [PATCH v2 2/9] virtio: make endian_needed() work during loading, marcandre . lureau, 2023/10/24
- [PATCH v2 4/9] migration: rename vmstate_save_needed->vmstate_section_needed, marcandre . lureau, 2023/10/24
- [PATCH v2 3/9] net/slirp: use different IDs for each instance, marcandre . lureau, 2023/10/24
- [PATCH v2 6/9] migration: check required entries are loaded, once, marcandre . lureau, 2023/10/24
- [PATCH v2 5/9] migration: check required subsections are loaded, once, marcandre . lureau, 2023/10/24