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

Re: [PATCH for-4.16 v6] gnttab: allow setting max version per-domain


  • To: Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 4 Nov 2021 13:25:31 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=r1WfbRWjZHG5PbM9FFk92+xJ8AVB/z5YNIg62yAl33Y=; b=JsirQPa3KSRKiAdlSw4UttGQjqP6UtGt8dKEmM+AhEnRTeen+8TaLr9n7cpATyiQDlmOjHYfWqaPphatRYWkc/F/XiB3yYcOEK2aFZxy2jqKm3u6XCyakWEncPFLPzwdeTYId0sCtTF8avMutMiYtGBfcYvbPKhkl5kD28xICMGz+TYFEFq2QaYJ0CsQGdcTSRuwkL0fIWGwXqWlGEuH/WXUBSXmvEqXN2OSKfIJ2CUE3jxHUJ6MED+6VMeujnuJlS7Co98SCDn+w6cjogoOyddSRogkNMLdMENyC5xQJ4bLLbeFTARVtu85BAme4PhcHJ1ZKoeqK8CxWTnIkXIZGQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SMxRn275xd66ufF2a+C60q3vlDnNSHzPGucxmvduzV5dSxd1nZ+qAqUniXI5RkNR5Ey0HNnNheQx73djqCBx9dWWK8Lly5YByQJIpYX2n4OOc67peyxcqiHpQ2Q/Z+qwnxKW+MDfHXX7ebsmWhS4lDEFepvrx7ffh3bv+GjkUfKK9sjFGIO9/on79fedP+IOcF2VVyMBKxwhQTpbb2CRLW0qYpteALEumHNd+xmCuONK6PU77e9Cfv0Jh71+UHCbgDPJX1G2P/h+AgiOZH+uvb/LugEuNvEhNieaOi29p4SFr/LtzI/itcFsXkSJAmlZqwfUEjYbDXGXOrmXP1H1ew==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 04 Nov 2021 12:25:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04.11.2021 13:09, Ian Jackson wrote:
> Roger Pau Monne writes ("[PATCH for-4.16 v6] gnttab: allow setting max 
> version per-domain"):
>> Introduce a new domain create field so that toolstack can specify the
>> maximum grant table version usable by the domain. This is plumbed into
>> xl and settable by the user as max_grant_version.
>>
>> Previously this was only settable on a per host basis using the
>> gnttab command line option.
>>
>> Note the version is specified using 4 bits, which leaves room to
>> specify up to grant table version 15. Given that we only have 2 grant
>> table versions right now, and a new version is unlikely in the near
>> future using 4 bits seems more than enough.
>>
>> xenstored stubdomains are limited to grant table v1 because the
>> current MiniOS code used to build them only has support for grants v1.
>> There are existing limits set for xenstored stubdomains at creation
>> time that already match the defaults in MiniOS.
> ...
>> This needs to be applied on top of Andrew's:
>>
>> xen: Report grant table v1/v2 capabilities to the toolstack
>> https://lore.kernel.org/xen-devel/20211029173813.23002-1-andrew.cooper3@xxxxxxxxxx/
> 
> Thanks.
> 
> We have discussed this wrt 4.16.  I am minded to grant a release ack
> for this.  If anyone has a contrary opinion please speak now.
> 
> (I think committing both of these would be subject to maintainer acks
> for "Report grant table v1/v2 capabilities", which I didn't see but
> perhaps I am missing.)

Afaic that patch looks okay (albeit not really a scalable way to express
things, if we were to consider further versions to appear), but it wasn't
clear to me whether Roger's reply was meant as an objection, a direction
towards doing things differently, or merely a benign comment. Hence it
didn't feel appropriate to give an A-b just yet.

Jan




 


Rackspace

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