Re: [PATCH v2 6/7] s390: vfio-ap: handle bind and unbind of AP queue device

2019-05-06 Thread Tony Krowiak
On 5/6/19 6:55 AM, Pierre Morel wrote: On 03/05/2019 23:14, Tony Krowiak wrote: There is nothing preventing a root user from inadvertently unbinding an AP queue device that is in use by a guest from the vfio_ap device driver and binding it to a zcrypt driver. This can result in a queue being acc

Re: [PATCH v2 6/7] s390: vfio-ap: handle bind and unbind of AP queue device

2019-05-06 Thread Pierre Morel
On 03/05/2019 23:14, Tony Krowiak wrote: There is nothing preventing a root user from inadvertently unbinding an AP queue device that is in use by a guest from the vfio_ap device driver and binding it to a zcrypt driver. This can result in a queue being accessible from both the host and a guest.

[PATCH v2 6/7] s390: vfio-ap: handle bind and unbind of AP queue device

2019-05-03 Thread Tony Krowiak
There is nothing preventing a root user from inadvertently unbinding an AP queue device that is in use by a guest from the vfio_ap device driver and binding it to a zcrypt driver. This can result in a queue being accessible from both the host and a guest. This patch introduces safeguards that prev