Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-22 Thread Tony Krowiak
On 04/18/2018 07:56 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-22 Thread Tony Krowiak
On 04/18/2018 07:56 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-18 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-18 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/17/2018 12:18 PM, Pierre Morel wrote: On 17/04/2018 18:08, Tony Krowiak wrote: On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/17/2018 12:18 PM, Pierre Morel wrote: On 17/04/2018 18:08, Tony Krowiak wrote: On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Pierre Morel
On 17/04/2018 18:08, Tony Krowiak wrote: On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified,

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Pierre Morel
On 17/04/2018 18:08, Tony Krowiak wrote: On 04/16/2018 09:05 AM, Pierre Morel wrote: On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified,

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/16/2018 10:51 AM, Halil Pasic wrote: On 04/16/2018 03:05 PM, Pierre Morel wrote: +static void vfio_ap_mdev_release(struct mdev_device *mdev) +{ +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); + +kvm_ap_deconfigure_matrix(matrix_mdev->kvm); +

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-17 Thread Tony Krowiak
On 04/16/2018 10:51 AM, Halil Pasic wrote: On 04/16/2018 03:05 PM, Pierre Morel wrote: +static void vfio_ap_mdev_release(struct mdev_device *mdev) +{ +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); + +kvm_ap_deconfigure_matrix(matrix_mdev->kvm); +

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-16 Thread Halil Pasic
On 04/16/2018 03:05 PM, Pierre Morel wrote: >> +static void vfio_ap_mdev_release(struct mdev_device *mdev) >> +{ >> +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); >> + >> +kvm_ap_deconfigure_matrix(matrix_mdev->kvm); >> +kvm_ap_interpret_instructions(matrix_mdev->kvm, 

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-16 Thread Halil Pasic
On 04/16/2018 03:05 PM, Pierre Morel wrote: >> +static void vfio_ap_mdev_release(struct mdev_device *mdev) >> +{ >> +struct ap_matrix_mdev *matrix_mdev = mdev_get_drvdata(mdev); >> + >> +kvm_ap_deconfigure_matrix(matrix_mdev->kvm); >> +kvm_ap_interpret_instructions(matrix_mdev->kvm, 

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-16 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the

Re: [PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-16 Thread Pierre Morel
On 15/04/2018 23:22, Tony Krowiak wrote: Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the

[PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-15 Thread Tony Krowiak
Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the VFIO AP device driver has access to KVM,

[PATCH v4 13/15] KVM: s390: configure the guest's AP devices

2018-04-15 Thread Tony Krowiak
Registers a group notifier during the open of the mediated matrix device to get information on KVM presence through the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the pointer to the kvm structure is saved inside the mediated matrix device. Once the VFIO AP device driver has access to KVM,