Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-11-23 Thread Tony Krowiak
On 11/23/20 12:03 PM, Cornelia Huck wrote: On Sat, 14 Nov 2020 00:47:22 +0100 Halil Pasic wrote: On Fri, 13 Nov 2020 12:14:22 -0500 Tony Krowiak wrote: [..] } +#define MDEV_SHARING_ERR "Userspace may not re-assign queue %02lx.%04lx " \ +"already assigned

Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-11-23 Thread Cornelia Huck
On Sat, 14 Nov 2020 00:47:22 +0100 Halil Pasic wrote: > On Fri, 13 Nov 2020 12:14:22 -0500 > Tony Krowiak wrote: > [..] > > >> } > > >> > > >> +#define MDEV_SHARING_ERR "Userspace may not re-assign queue %02lx.%04lx > > >> " \ > > >> + "already assigned to %s" > >

Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-11-16 Thread Tony Krowiak
On 11/13/20 6:47 PM, Halil Pasic wrote: On Fri, 13 Nov 2020 12:14:22 -0500 Tony Krowiak wrote: [..] } +#define MDEV_SHARING_ERR "Userspace may not re-assign queue %02lx.%04lx " \ +"already assigned to %s" + +static void vfio_ap_mdev_log_sharing_err(const char

Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-11-13 Thread Halil Pasic
On Fri, 13 Nov 2020 12:14:22 -0500 Tony Krowiak wrote: [..] > >> } > >> > >> +#define MDEV_SHARING_ERR "Userspace may not re-assign queue %02lx.%04lx " > >> \ > >> + "already assigned to %s" > >> + > >> +static void vfio_ap_mdev_log_sharing_err(const char *mdev_name, > >>

Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-11-13 Thread Tony Krowiak
On 10/27/20 9:27 AM, Halil Pasic wrote: On Thu, 22 Oct 2020 13:12:00 -0400 Tony Krowiak wrote: Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask would result in one or more queue

Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-10-27 Thread Halil Pasic
On Thu, 22 Oct 2020 13:12:00 -0400 Tony Krowiak wrote: > Let's implement the callback to indicate when an APQN > is in use by the vfio_ap device driver. The callback is > invoked whenever a change to the apmask or aqmask would > result in one or more queue devices being removed from the driver.

[PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-10-22 Thread Tony Krowiak
Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask would result in one or more queue devices being removed from the driver. The vfio_ap device driver will indicate a resource is in use if