Re: [PATCH V7 18/29] vfio-pci: refactor for cpr

2022-03-07 Thread Steven Sistare
On 3/3/2022 6:21 PM, Alex Williamson wrote: > On Wed, 22 Dec 2021 11:05:23 -0800 > Steve Sistare wrote: > >> +if (vfio_notifier_init(vdev, &vdev->intx.unmask, "intx-unmask", 0)) { > ... >> +vfio_notifier_cleanup(vdev, &vdev->intx.unmask, "intx-unmask", 0); > ... >> +vfio_notifier_clea

Re: [PATCH V7 18/29] vfio-pci: refactor for cpr

2022-03-03 Thread Alex Williamson
On Wed, 22 Dec 2021 11:05:23 -0800 Steve Sistare wrote: > +if (vfio_notifier_init(vdev, &vdev->intx.unmask, "intx-unmask", 0)) { ... > +vfio_notifier_cleanup(vdev, &vdev->intx.unmask, "intx-unmask", 0); ... > +vfio_notifier_cleanup(vdev, &vdev->intx.unmask, "intx-unmask", 0); ... > +

[PATCH V7 18/29] vfio-pci: refactor for cpr

2021-12-22 Thread Steve Sistare
Export vfio_address_spaces. Refactor vector use into a helper vfio_vector_init. Add vfio_notifier_init and vfio_notifier_cleanup for named notifiers, and pass additional arguments to vfio_remove_kvm_msi_virq. All for use by cpr in a subsequent patch. No functional change. Signed-off-by: Steve Si