vfio/common: Move VFIO reset handler registration to a group agnostic function
commitc8fcb90c968717323a763d2152bc6103ce720b65
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 9 Oct 2023 09:09:13 +0000 (9 11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (18 10:10 +0200)
tree0328809f456069084f1687a89d857eff5e618be4
parente08041ece7392aae895487b97299f33ddc8de131
vfio/common: Move VFIO reset handler registration to a group agnostic function

Move the reset handler registration/unregistration to a place that is not
group specific. vfio_[get/put]_address_space are the best places for that
purpose.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c