[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] block/fdc: 'phase' is not needed on load
From: |
marcandre . lureau |
Subject: |
[PATCH 1/5] block/fdc: 'phase' is not needed on load |
Date: |
Tue, 26 Sep 2023 19:59:21 +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 0/5] RFC: migration: check required entries and sections are loaded, marcandre . lureau, 2023/09/26
- [PATCH 1/5] block/fdc: 'phase' is not needed on load,
marcandre . lureau <=
- [PATCH 2/5] virtio: make endian_needed() work during loading, marcandre . lureau, 2023/09/26
- [PATCH 3/5] net/slirp: use different IDs for each instance, marcandre . lureau, 2023/09/26
- [PATCH 4/5] RFC: migration: check required subsections are loaded, once, marcandre . lureau, 2023/09/26
- [PATCH 5/5] RFC: migration: check required entries are loaded, once, marcandre . lureau, 2023/09/26