[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v4 21/21] Only set qemu file error if saving state so the file exis
From: |
John Johnson |
Subject: |
[RFC v4 21/21] Only set qemu file error if saving state so the file exists |
Date: |
Tue, 11 Jan 2022 16:43:57 -0800 |
Signed-off-by: John G Johnson <john.g.johnson@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
---
hw/vfio/migration.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c
index df63f5c..e72241d 100644
--- a/hw/vfio/migration.c
+++ b/hw/vfio/migration.c
@@ -742,7 +742,9 @@ static void vfio_vmstate_change(void *opaque, bool running,
RunState state)
*/
error_report("%s: Failed to set device state 0x%x", vbasedev->name,
(migration->device_state & mask) | value);
- qemu_file_set_error(migrate_get_current()->to_dst_file, ret);
+ if (value != 0) {
+ qemu_file_set_error(migrate_get_current()->to_dst_file, ret);
+ }
}
vbasedev->migration->vm_running = running;
trace_vfio_vmstate_change(vbasedev->name, running, RunState_str(state),
--
1.8.3.1
- [RFC v4 08/21] vfio-user: define socket receive functions, (continued)
- [RFC v4 08/21] vfio-user: define socket receive functions, John Johnson, 2022/01/11
- [RFC v4 01/21] vfio-user: introduce vfio-user protocol specification, John Johnson, 2022/01/11
- [RFC v4 12/21] vfio-user: region read/write, John Johnson, 2022/01/11
- [RFC v4 13/21] vfio-user: pci_user_realize PCI setup, John Johnson, 2022/01/11
- [RFC v4 18/21] vfio-user: dma read/write operations, John Johnson, 2022/01/11
- [RFC v4 14/21] vfio-user: get and set IRQs, John Johnson, 2022/01/11
- [RFC v4 11/21] vfio-user: get region info, John Johnson, 2022/01/11
- [RFC v4 20/21] vfio-user: migration support, John Johnson, 2022/01/11
- [RFC v4 16/21] vfio-user: dma map/unmap operations, John Johnson, 2022/01/11
- [RFC v4 21/21] Only set qemu file error if saving state so the file exists,
John Johnson <=
- [RFC v4 19/21] vfio-user: pci reset, John Johnson, 2022/01/11
- [RFC v4 17/21] vfio-user: secure DMA support, John Johnson, 2022/01/11
- [RFC v4 15/21] vfio-user: proxy container connect/disconnect, John Johnson, 2022/01/11