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

Re: [PATCH] libxl: Add "grant_usage" parameter for virtio disk devices


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Tue, 6 Feb 2024 12:30:38 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kjTwo6Y8AhEnUu4RAdJb86EaseaQxPTBS9Cm49fcLlo=; b=XJKAnmV0DDZ/U+GCwpxAVQzmhb/c4oUi/fnd0Ekb95Ly3/xQWcfork9j9Y/iWZFUfMSnHuL4winqelTAZcDBb9IoM30KOEIzOn9nswZSh//d6/RiSsEpnTvAJ3ts/J6aPTSxoOcg2c2o/42h0uBwEDDcwO197e8gQnAa4tKfd5RDzhTCiBTS/Xntz3rDUi8pVScom8wBRusFXeS48o/30DeXbgsi/1MMJUgxFtG1jEynSgb4UHBtbYn10R1EhGMxzUtB9ai/nUO59cDVGkLyISIKDEzYFqcjcJb+jxZbXeUJgmHYhxFsWzm3LGbU6+5ZfAynJZuHCReHYnZPSA4ENA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MVmDq/FgSdIlQfS7hCz9xbOFKGHzYD5ecsBFcnS/vEIHhiFhQ+TxxcIsSVBYH4F+jzstCAQxadQIDHmFr+Z0AhudJESOkzHmgbLPgQsM/EXZCQDVqvHt2SJKUOry52uvs+IcXSPMR3Nxv101r0LilzX//am919R1ZRFCasB96EjAjLiu59pz90Kv8OCVG6XQnl2hnQxT721sJ6wPUbWgpG7TopctBusssQI6MBAFhqa5F8n84zozKvYslDLl2INKL1b5LZh9tGZk/SEsolXwP+9d+jdlehvuz2cE4Y/tjopWNW8fXLMn66CmEbnDI5w8YRSUJSCbRIbPVFSeSgMOCQ==
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Viresh Kumar <viresh.kumar@xxxxxxxxxx>
  • Delivery-date: Tue, 06 Feb 2024 12:31:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHaVcWXJV0m8uwkbEKeSgAhd5N6SLD734GAgAAcRoCAASbqgIAAIlMA
  • Thread-topic: [PATCH] libxl: Add "grant_usage" parameter for virtio disk devices


On 06.02.24 12:27, Anthony PERARD wrote:


Hello Anthony

[snip]

>>>> diff --git a/docs/man/xl-disk-configuration.5.pod.in 
>>>> b/docs/man/xl-disk-configuration.5.pod.in
>>>> index bc945cc517..3c035456d5 100644
>>>> --- a/docs/man/xl-disk-configuration.5.pod.in
>>>> +++ b/docs/man/xl-disk-configuration.5.pod.in
>>>> @@ -404,6 +404,31 @@ Virtio frontend driver (virtio-blk) to be used. 
>>>> Please note, the virtual
>>>> +=item B<grant_usage=BOOLEAN>
>>>>
>>>> +=over 4
>>>> +
>>>> +=item Description
>>>> +
>>>> +Specifies the usage of Xen grants for accessing guest memory. Only 
>>>> applicable
>>>> +to specification "virtio".
>>>> +
>>>> +=item Supported values
>>>> +
>>>> +If this option is B<true>, the Xen grants are always enabled.
>>>> +If this option is B<false>, the Xen grants are always disabled.
>>>
>>> Unfortunately, this is wrong, the implementation in the patch only
>>> support two values: 1 / 0, nothing else, and trying to write "true" or
>>> "false" would lead to an error. (Well actually it's "grant_usage=1" or
>>> "grant_usage=0", there's nothing that cut that string at the '='.)
>>
>>
>> You are right, only 1 / 0 can be set unlike for virtio=[...] which seems
>> happy with false/true.
>>
>>
>>>
>>> Also, do we really need the extra verbal description of each value here?
>>> Is simply having the following would be enough?
>>>
>>>       =item Supported values
>>>
>>>       1, 0
>>>
>>> The description in "Description" section would hopefully be enough.
>>
>>
>> I think, this makes sense.
>>
>> So, shall I leave "grant_usage=1/grant_usage=0" or use proposed option
>> "use-grant/no-use-grant"?
> 
> Let's go with "grant_usage=*", at least this will be consistent with the
> option for "virtio".


thanks for the confirmation, will do


> 
> Cheers,
> 

 


Rackspace

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