Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-13 Thread Halil Pasic
On 07/12/2018 06:03 PM, Tony Krowiak wrote: +static int vfio_ap_mdev_open(struct mdev_device *mdev) +{ +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); +struct ap_matrix_dev *matrix_dev = +to_ap_matrix_dev(mdev_parent_dev(mdev)); +unsigned long events; +

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-13 Thread Halil Pasic
On 07/12/2018 06:03 PM, Tony Krowiak wrote: +static int vfio_ap_mdev_open(struct mdev_device *mdev) +{ +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); +struct ap_matrix_dev *matrix_dev = +to_ap_matrix_dev(mdev_parent_dev(mdev)); +unsigned long events; +

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-12 Thread Tony Krowiak
On 07/12/2018 02:47 PM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-12 Thread Tony Krowiak
On 07/12/2018 02:47 PM, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-12 Thread Halil Pasic
On 06/29/2018 11:11 PM, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm

Re: [PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-07-12 Thread Halil Pasic
On 06/29/2018 11:11 PM, Tony Krowiak wrote: Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm

[PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-06-29 Thread Tony Krowiak
Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. The open callback must ensure that only one

[PATCH v6 14/21] s390: vfio-ap: implement mediated device open callback

2018-06-29 Thread Tony Krowiak
Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. The open callback must ensure that only one