lkml.org 
[lkml]   [2019]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v6 04/10] s390: vfio-ap: filter CRYCB bits for unavailable queue devices
From
Date
On 9/18/19 1:04 PM, Halil Pasic wrote:
> On Fri, 13 Sep 2019 17:26:52 -0400
> Tony Krowiak <akrowiak@linux.ibm.com> wrote:
>
>> +static void vfio_ap_mdev_get_crycb_matrix(struct ap_matrix_mdev *matrix_mdev)
>> +{
>> + unsigned long apid, apqi;
>> + unsigned long masksz = BITS_TO_LONGS(AP_DEVICES) *
>> + sizeof(unsigned long);
>> +
>> + memset(matrix_mdev->crycb.apm, 0, masksz);
>> + memset(matrix_mdev->crycb.apm, 0, masksz);
>
> I guess you wanted to zero out aqm here (and not apm again)!

Cut and paste without edit. I'll fix it.

>
>> + memcpy(matrix_mdev->crycb.adm, matrix_mdev->matrix.adm, masksz);
>

\
 
 \ /
  Last update: 2019-09-18 23:22    [W:1.794 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site