]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Add qdev_add_vm_change_state_handler_full()
authorAvihai Horon <avihaih@nvidia.com>
Wed, 2 Aug 2023 08:14:46 +0000 (11:14 +0300)
committerCédric Le Goater <clg@redhat.com>
Mon, 11 Sep 2023 06:34:05 +0000 (08:34 +0200)
commit02b2e25360ea1f10a337ddaf686eb770eebf59de
tree76cbb8274dc91f1f46b286506ce42b57a8b8025f
parent9d3103c81be307b3953f7e3f53ed0f742e9d786c
qdev: Add qdev_add_vm_change_state_handler_full()

Add qdev_add_vm_change_state_handler_full() variant that allows setting
a prepare callback in addition to the main callback.

This will facilitate adding P2P support for VFIO migration in the
following patches.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: YangHang Liu <yanghliu@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/core/vm-change-state-handler.c
include/sysemu/runstate.h