Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Tony Krowiak
On 12/22/20 2:43 PM, Halil Pasic wrote: On Tue, 22 Dec 2020 16:57:06 +0100 Cornelia Huck wrote: On Tue, 22 Dec 2020 10:37:01 -0500 Tony Krowiak wrote: On 12/21/20 11:05 PM, Halil Pasic wrote: On Mon, 21 Dec 2020 13:56:25 -0500 Tony Krowiak wrote: static int vfio_ap_mdev_group_notif

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Halil Pasic
On Tue, 22 Dec 2020 16:57:06 +0100 Cornelia Huck wrote: > On Tue, 22 Dec 2020 10:37:01 -0500 > Tony Krowiak wrote: > > > On 12/21/20 11:05 PM, Halil Pasic wrote: > > > On Mon, 21 Dec 2020 13:56:25 -0500 > > > Tony Krowiak wrote: > > > >> static int vfio_ap_mdev_group_notifier(struct not

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Cornelia Huck
On Tue, 22 Dec 2020 10:37:01 -0500 Tony Krowiak wrote: > On 12/21/20 11:05 PM, Halil Pasic wrote: > > On Mon, 21 Dec 2020 13:56:25 -0500 > > Tony Krowiak wrote: > >> static int vfio_ap_mdev_group_notifier(struct notifier_block *nb, > >> unsigned long action,

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Tony Krowiak
On 12/21/20 11:05 PM, Halil Pasic wrote: On Mon, 21 Dec 2020 13:56:25 -0500 Tony Krowiak wrote: The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a VFIO mediated device for a KVM guest is opened to receive notification that the KVM pointer is set (V

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-21 Thread Halil Pasic
On Mon, 21 Dec 2020 13:56:25 -0500 Tony Krowiak wrote: > The vfio_ap device driver registers a group notifier with VFIO when the > file descriptor for a VFIO mediated device for a KVM guest is opened to > receive notification that the KVM pointer is set (VFIO_GROUP_NOTIFY_SET_KVM > event). When t

[PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-21 Thread Tony Krowiak
The vfio_ap device driver registers a group notifier with VFIO when the file descriptor for a VFIO mediated device for a KVM guest is opened to receive notification that the KVM pointer is set (VFIO_GROUP_NOTIFY_SET_KVM event). When the KVM pointer is set, the vfio_ap driver takes the following act