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

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


  • To: Viresh Kumar <viresh.kumar@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Fri, 2 Feb 2024 14:31:37 +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=OG/j2KF9G6OvLae5GXWX3zztvjbeOfZVwZa2+PowQ44=; b=UGFn9KtHBxZV+wgRmq7qhx0jMxNE9Mv7jhOJRWSb3hhyBEUDykJmqTtwnALjrTbzI/nveHN3BCpoT+zkfg7bpKf3LxdPwsIxOmUGyS9a9i5iqYLvlq+w6hU//wErhio5WWiSml9/QtJMfQwTXKxYls0Vf+IecYMR1/7BUDj5rWJmASpXp+ZxrtwmYcHqgRkGKEwPtHKKfX7IEVVTZEWEfqUd2sSjOkDl1paJwxAccXayE8lFHZ6WrBtaUTo+zjDKoqGt3wfRQZvgNlFYf9BKW1WPGhAFOmV8yFLGCfUm5HuX9pbyWwF20H968kri4JB/OAvI17Zo9YMzT8aZ5g051A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O9AREyWShnAijfjFnLr86in0QK3cFn8L8Rb4Mrgv0wXgftdHoKdfCVLrjPYFqCekSKawO7J1qY40YlXiG/bu6MVyfTdjYfF2TQvvsuoumT2V/vYaS0p3SwH6H0QkfoUkJJda8W1cVWd3x7m4rSyDCTB0JKqfKDimL/CvN8NICV9D75Ylazolgd8ep9ovxJxJFr8QLX/6IHfyXx0ANHfdT91rXUPF+gdp3TXLGZgnwvYc1WtsqDs/4fW1NQRHENELyrdbZVcooexpotKmV+FghpH4VzU/EkwCsr+cpWLsZkxp+nsisZgnt8G73vc3ie70kRtN6C6h1grSPEFexscyaQ==
  • Cc: Wei Liu <wl@xxxxxxx>, Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Fri, 02 Feb 2024 14:31:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHaVcWXJV0m8uwkbEKeSgAhd5N6SLD240wAgAA6LgA=
  • Thread-topic: [PATCH] libxl: Add "grant_usage" parameter for virtio disk devices


On 02.02.24 13:03, Viresh Kumar wrote:

Hello Viresh


> On 02-02-24, 12:49, Oleksandr Tyshchenko wrote:
>> 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
>>   device (vdev) is not passed to the guest in that case, but it still must be
>>   specified for the internal purposes.
>>   
>> +=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.
>> +
>> +=item Mandatory
>> +
>> +No
>> +
>> +=item Default value
>> +
>> +If this option is missing, then the default grant setting will be used,
>> +i.e. enable grants if backend-domid != 0.
>> +
>> +=back
>> +
>>   =back
>>   
>>   =head1 COLO Parameters
> 
> I wonder if there is a way to avoid the duplication here and use the 
> definition
> from: docs/man/xl.cfg.5.pod.in somehow ?


That's good point. I am not 100% sure, but if we could use something 
like that it would be really nice. Let's see what other reviewers will say.


=item B<grant_usage=BOOLEAN>

=over 4

Specifies the usage of Xen grants for accessing guest memory. Only 
applicable to specification "virtio". Please see B<grant_usage> in 
L<xl.cfg(5)> for more information on this option.

=back

 


Rackspace

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