Projects
home:dongzhihai
qemu
_service:tar_scm:vdpa-correct-param-passed-in-w...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:vdpa-correct-param-passed-in-when-unregister-save.patch of Package qemu
From 5714aaddcbc313e63da435a253d9d472984d7b49 Mon Sep 17 00:00:00 2001 From: libai <libai12@huawei.com> Date: Thu, 14 Dec 2023 11:22:54 +0800 Subject: [PATCH] vdpa: correct param passed in when unregister save The idstr passed in the unregister_savevm function is inconsisten with the idstr passed in when register_savevm_live registration. Needs to be modified, otherwise migration will fail after hotunplug all vdpa devices. Signed-off-by: libai <libai12@huawei.com> --- hw/virtio/vdpa-dev-mig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/vdpa-dev-mig.c b/hw/virtio/vdpa-dev-mig.c index b889dd4715..1d299019da 100644 --- a/hw/virtio/vdpa-dev-mig.c +++ b/hw/virtio/vdpa-dev-mig.c @@ -404,6 +404,6 @@ void vdpa_migration_register(VhostVdpaDevice *vdev) void vdpa_migration_unregister(VhostVdpaDevice *vdev) { migration_remove_notifier(&vdev->migration_state); - unregister_savevm(VMSTATE_IF(&vdev->parent_obj.parent_obj), "vdpa", DEVICE(vdev)); + unregister_savevm(NULL, "vdpa", DEVICE(vdev)); qemu_del_vm_change_state_handler(vdev->vmstate); } -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2