[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: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 4 Nov 2021 14:48:55 +0100
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=E7IdaPAf2jJ7QOUmRRBkAHEm3RXcsFbubNZC17kL7o4=; b=oA0/tR1aBMkwOWSQM++f8LPmYOlO5GtM3moh/EnkHXjrR+OD56GqZMyI9WPtNeCVWq0ZVtZ/H2SglmDdc4oSU4527pH7Vov3tgHMKzWmF4VNxc7fansnomg90E7TXW0ahYDBeYYIzCHsf8fHFXc1K2+rygLojw6Ya9/wsaYr7HeVvK798qo8qjIKZvKVzRSi0CGT0GRgNml5OetkIEvcVd0kBWAY6rg3qlGnzvPb5pW111cuwAKrZemzQ/ry6NegGoORxwYt0gxfA860JZbQ4dt++KnSYy/qJXPyCsxqM/DxFbPkqC1NTajfYVNGEgDs4G6d4LNwwySpT0Q+CV/aOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jekYKNhgO4DV/Nmr/yAg4ZJ/T79XInwbY6ebzfiiALG8asJqbUb5xkoSFNBjUzAruHwFMI9WbQJx+72J+vv/uUqrk4V1DR+gBE2nyOfICwTNf2n4n/U/527h19OFRNp2eOJPPBe5PvWcCEsNWtwk7fIHusNCVKp4ntCz+Db9MTKyYIQ9XFfwbsVf29EUo1KOokUYnCp+KgvB40jFViCXSMm9uFKjzA276j22RjQAWc7cPCYc3XuRJfa4EPXKTeazgrc+25FDw7mq693Sm+13VYyiPVfiDN9JMmWL82Zo4OVAMA5Z+aqp80btRd7f0tvWmUqHbgxReYBPS37rggj5VA==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, <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>
  • Delivery-date: Thu, 04 Nov 2021 13:49:47 +0000
  • Ironport-data: A9a23:U0zBnqsu28UUTvsUET/aOlBrG+fnVAZYMUV32f8akzHdYApBsoF/q tZmKW3UPfePMWWjL9kka9yx/UkDvZ/WyIM3Gldt/31nEShG+JbJXdiXEBz9bniYRiHhoOOLz Cm8hv3odp1coqr0/0/1WlTZQP0VOZigHtIQMsadUsxKbVIiGHhJZS5LwbZj29cx2YThWmthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ Npl6rOrd1k7OrD3nt8eDCEJCyx3ZJFa5+qSSZS/mZT7I0zudnLtx7NlDV0sPJ1e8eFyaY1M3 aVGcnZXNEnF3r/ohuLgIgVvrp1LwM3DJoQQt2sm1TjEJf0nXYrCU+PB4towMDIY25EWRKiDP Zpxh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Kh1k2ANGxHceY qpBncunFojydnYhVHnwxumPNWm0G7ZajAxd+4jlXM04LP1t+qhAM9kxWt636KFlTL+seFu0ReY 30Pmcn9Q4vlMzHIx9BN9NaK6
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Nov 04, 2021 at 01:25:31PM +0100, Jan Beulich wrote:
> 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.

I think it's fine, let me reply there. Overall I think it's best to
express supported grant versions independently, and we might wish to
also allow to select a discrete set of grant versions that a domain
supports. IMO it might be sensible in the future if a new grant
version appears (v3), to select to expose grant v1 and v3 only to the
domain, and avoid v2. This would require some changes here, but we can
see about those when the time comes.

Thanks, Roger.



 


Rackspace

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