[Qemu-devel] Qemu aborted in ide_restart_bh after migration

2018-02-10 Thread Wang King
Empty IDE CD-ROM configured on the VM: Make migration for this VM, then qemu aborted in ide_restart_bh. IDEState expect end_transfer_func equal to ide_atapi_cmd, but it refer to ide_dummy_transfer_stop. I have no idea about this, can anyone help me? qemu

[Qemu-devel] [PATCH] memory: unref the memory region in simplify flatview

2019-07-12 Thread Wang King
From: King Wang The memory region reference is increased when insert a range into flatview range array, then decreased by destroy flatview. If some flat range merged by flatview_simplify, the memory region reference can not be decreased by destroy flatview any more. In this case, start virtual

[PATCH] hw/pci-host: save/restore pci host config register

2020-07-23 Thread Wang King
From: Hogan Wang The pci host config register is used to save PCI address for read/write config data. If guest write a value to config register, and then pause the vcpu to migrate, After the migration, the guest continue to write pci config data, and the write data will be ignored because of new

[PATCH v1] hw/pci-host: save/restore pci host config register

2020-07-23 Thread Wang King
From: Hogan Wang The pci host config register is used to save PCI address for read/write config data. If guest write a value to config register, and then pause the vcpu to migrate, After the migration, the guest continue to write pci config data, and the write data will be ignored because of new

[PATCH v2] hw/pci-host: save/restore pci host config register

2020-07-23 Thread Wang King
From: Hogan Wang The pci host config register is used to save PCI address for read/write config data. If guest write a value to config register, and then pause the vcpu to migrate, After the migration, the guest continue to write pci config data, and the write data will be ignored because of new