Re: [PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-11-19 Thread Tony Krowiak
On 11/13/20 6:12 PM, Halil Pasic wrote: On Fri, 13 Nov 2020 12:27:32 -0500 Tony Krowiak wrote: On 10/28/20 4:17 AM, Halil Pasic wrote: On Thu, 22 Oct 2020 13:12:02 -0400 Tony Krowiak wrote: +static ssize_t guest_matrix_show(struct device *dev, +struct

Re: [PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-11-13 Thread Halil Pasic
On Fri, 13 Nov 2020 12:27:32 -0500 Tony Krowiak wrote: > > > On 10/28/20 4:17 AM, Halil Pasic wrote: > > On Thu, 22 Oct 2020 13:12:02 -0400 > > Tony Krowiak wrote: > > > >> +static ssize_t guest_matrix_show(struct device *dev, > >> + struct device_attribute *attr,

Re: [PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-11-13 Thread Tony Krowiak
On 10/28/20 4:17 AM, Halil Pasic wrote: On Thu, 22 Oct 2020 13:12:02 -0400 Tony Krowiak wrote: +static ssize_t guest_matrix_show(struct device *dev, +struct device_attribute *attr, char *buf) +{ + ssize_t nchars; + struct mdev_device *mdev =

Re: [PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-10-28 Thread Halil Pasic
On Thu, 22 Oct 2020 13:12:02 -0400 Tony Krowiak wrote: > +static ssize_t guest_matrix_show(struct device *dev, > + struct device_attribute *attr, char *buf) > +{ > + ssize_t nchars; > + struct mdev_device *mdev = mdev_from_dev(dev); > + struct

[PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-10-22 Thread Tony Krowiak
The matrix of adapters and domains configured in a guest's APCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to display the matrix of a guest using the matrix mdev. For a matrix mdev denoted by $uuid, the crycb for a