[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for <= 5.4] xen/privcmd: allow fetching resource sizes


  • To: Greg KH <greg@xxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 26 Jan 2021 17:22:59 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DbwPhCPnskchRDmL1tvYgzjZ8Efur8tL/415t6LC6v8=; b=G8DBWgIHrnybAnsAEyFAGVdDT2iMVaQEkrAPdCo0aDiFkegf9xDb7kzV7fBEZ0ECYNG2z35q6E2QqmaNdtyEBJCpMqAQC0nFzBRzWYQQmkk6Z0JzOmnhI9G4GuS3sK0HLqXI994+hkEP2cFPGYWM7BFsM/fMuhEUnuDd/9CIN1BVVjy9a29YtGHjySzlsRH/8QzDZm14jb9uLU39UBd3VFZd9PFRzeCWKbQnh4WoUbFJCCn8/3ikLHrIJw1MRcpWzrA19x4ZVWOKRm+llevRg7F9L96/bFtwF6FbC69I7X454RvzT54a1a56OF3EhTzbgL3tRKcbPS1BPAkNfisOtQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CpjJ8lp65THn+6rPBL7/uOiTp1EpUabZPOwBgJ2CeZXogVR3iJ3QXfdVt7t7uAkvki6HMqlxJZVGZfdqsU5qTLsK4OEmRElqDN3ERQmzRUTv7xW6aYH8sSXwwNUWMlHLB8HlOocxOi0vu5cVQ930QhKV5UELJ0/H/0h8gOamPAM/7oQPzhqOQ/ifXNOqlv3PQcsRJW+fydKvX2Zt/SJpZRy3EHevL+bXXiPEfs4C+kZC3FmreR/WXYrFJPLbQ6pOFa3cgxyWHv4tZWPvskmHBrV2cmahDMWK1LBjzdujDvHPnmgmPfLGgLsG+oBzMdhXwdT/oRSfqRYu/CK1U/vD6A==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: <stable@xxxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 26 Jan 2021 17:23:26 +0000
  • Ironport-sdr: Lp5TFtVM00pkPgaNGhUdBqhlZNMzxb6hXhtQjW5JoLp+Kp1kSq+p9cEsS4WMx8Ly7AvoLNR+PL QalhoZ7AxjubF8CnjHIbb4O8RvkWTYCaAGKeHSNOy8EaT2TNB1Hvf81avL/UEZoAyb2guhaRW2 MP/Nattb4w4GVst/XsKwyESiGvCaFdQe8xAANZJBdXxrxEjOtB0BsU7qNZV9pi7VNPsK903LZi PLaG0Avdt8quHRZXJzeaRnjxSBpFV7lf/MVFmHP4GRIqA37A3q65XXza3K9valIS+ynHqHgddX O0c=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 20/01/2021 11:03, Greg KH wrote:
> On Mon, Jan 18, 2021 at 03:04:26PM +0100, Roger Pau Monne wrote:
>> commit ef3a575baf53571dc405ee4028e26f50856898e7 upstream
>>
>> Allow issuing an IOCTL_PRIVCMD_MMAP_RESOURCE ioctl with num = 0 and
>> addr = 0 in order to fetch the size of a specific resource.
>>
>> Add a shortcut to the default map resource path, since fetching the
>> size requires no address to be passed in, and thus no VMA to setup.
>>
>> This is missing from the initial implementation, and causes issues
>> when mapping resources that don't have fixed or known sizes.
>>
>> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>> Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
>> Tested-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>> Cc: stable@xxxxxxxxxxxxxxx # >= 4.18
>> Link: https://lore.kernel.org/r/20210112115358.23346-1-roger.pau@xxxxxxxxxx
>> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
>> ---
>> Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
>> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
>> ---
>>  drivers/xen/privcmd.c | 25 +++++++++++++++++++------
>>  1 file changed, 19 insertions(+), 6 deletions(-)
> Now queued up, thanks.

Hello,

The upstream version of this patch was queued against 5.4 and 4.19, both
of which suffered a patch conflict, and are fixed by this version.

Was it an oversight that this version didn't get queued for 4.19?

Thanks,

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.