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

Re: [PATCH for-4.15] tools/tests: Introduce a test for acquire_resource


  • To: Oleksandr <olekstysh@xxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Thu, 4 Feb 2021 16:39:45 +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=b+ohvtkQ6WIL6lyHcHQX1ywWa3j8CpFE9vJ1L1NZCuQ=; b=OiaZb0AMwmwh2cxESzl+v4ux1XAzVhMpcxoFoItoK3idDwTpRDFuRZNIO4moyV1UBKfOlnerCACzE4oHH2wJ6OYBxfbzIN5VsYNP9aINXTpSxl9RjFTEPB0z/8oQMlBA24/9md1UN45nlmFA+PEphLJceQWK1JaYK/4fnOFWbZkf++BBGarlqG9EJ3cPGdROvxYJyp9KJvepq8ShaUWXElOIvENY0MMiM1k8QEGnlcUjl0DdM1/Ma/DUsl99FOVKntL/b+r7vn2dqDv/4PFJBPD5eOBoJjlwXZ9vakix4FwkjhU1l+odvVsnK48nG3xgTssk5DvNKAMP+9RYtNX89w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QJDFa6x3WM1wxU7B5kLJcXUopys0t1Cnj8PKOSi7RJJu6aiRVc4hZQqu1TwQay7sYmzy52+E4PiP4KkoFllEIfgKdsSuTVMY+90vkCwlZBJl5xH13r4MItWlgC3Af1Y2ypNvjesxWAG7p2mEo9ESpi0XM40enMgnu9df4PTRzjm3k/dTRnXQtD44gZCiVDqkG1zjNaOVi6gJQH1JLJesDh1SLdUeaCunmmE+qDaoCZBsf734W/Vyp/APlEXWMjBMKnMRXzyCeXxM81Ic3EpDGHatRNI/qhK6RueS1p7aN0wKg+F9RPg/NwweL2/oYpPdQzoFmQkuN4vOCZZN9vqR1A==
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 04 Feb 2021 16:40:22 +0000
  • Ironport-sdr: rWpVNWfGsy+Ejq/Jxndnnz4grAutGk1AcZsKPPOqZRZdPP5mVnt3sKpr5H6Ixs16R9+NvQ7lzZ +N7McoNZ9t1MUSlE7mRbG1GOf67sSV1T8F/vyuHXAbBRYdbvMah+YqdP+YSTVsZLOww0XsQsen um0IUp40J60du0wSuXmpozNqFvLbbvmrZvGJL+CnWcuMEZmvNnjfBfTz/1rgLIUDWj0gRC1gmc Ksp457jXC8kpuhZirs2WMKGIu6vO9J8CV15Aa+3T7uxGpwPe72z7Qe+aa4d7KHFjHIo/aU1hQ6 6a0=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04/02/2021 16:33, Oleksandr wrote:
> On 04.02.21 17:44, Andrew Cooper wrote:
>> On 04/02/2021 15:38, Oleksandr wrote:
>>>
>>>
>>> I got the following result without and with "[PATCH v9 01/11]
>>> xen/memory: Fix mapping grant tables with XENMEM_acquire_resource"
>>>
>>> root@generic-armv8-xt-dom0:~# test-resource
>>> XENMEM_acquire_resource tests
>>> Test ARM
>>>   d3: grant table
>>> xenforeignmemory: error: ioctl failed: Invalid argument
>>>     Fail: Get size: 22 - Invalid argument
>>>
>>
>> Ah yes - you also need a bugfix in the dom0 kernel.  "xen/privcmd:
>> allow fetching resource sizes" which is in mainline, and also
>> backported to the LTS trees.
>
> Well, my dom0 Linux is old)
>
> uname -a
> Linux generic-armv8-xt-dom0 4.14.75-ltsi-yocto-tiny #1 SMP PREEMPT Thu
> Nov 5 10:52:32 UTC 2020 aarch64 GNU/Linux
> so I use ported "xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE".
> I didn't find "xen/privcmd: allow fetching resource sizes" for my
> Linux version, so I backported it by myself.
>
> So, with "[PATCH v9 01/11] xen/memory: Fix mapping grant tables with
> XENMEM_acquire_resource"
>
> root@generic-armv8-xt-dom0:~# test-resource
> XENMEM_acquire_resource tests
> Test ARM
>   d7: grant table
> (XEN) grant_table.c:1854:d0v1 Expanding d7 grant table from 1 to 32 frames
> (XEN) grant_table.c:1854:d0v1 Expanding d7 grant table from 32 to 40
> frames
>
> [I didn't test without your patch]
>
> Hope that helps.
>

Yup - fantastic thankyou.

~Andrew



 


Rackspace

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