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

Re: [PATCH for-4.16 2/2] xen: Report grant table v1/v2 capabilities to the toolstack


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Sat, 30 Oct 2021 13:20:57 +0200
  • 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=eL9d3AAwjismmBUI/evhcZFncUj6y6jknF/XdMOfg6M=; b=SHN6KAc0y56wCDihIDTBrxa99QQhSquiITBJCuPh7vIn9bTfgxrZLmGND30OpBx3Zluiohf594QYrCHsB4iao41IYT3Zlr/TP8sGcIsXQKy4PQDLgUidmxNiDZB1CCLcls1LMUSCK6s3kKQqmczaCKYstTM8u/4nY4vGHbrRXnCfL22WquaaLryeHSw2HTsiW/OWq0jtkXM98vVTV6rDaWySSToHC0SkgUaUtiWG2K9Gb98MlvdnqU0obO+/R/QM8EeuJhj0jMF2mc5+iHNQplgPprLD97AHSMw9MSVB4zHmruM5i94ASOsGOW/DMIlysEjWkf2QoBP76Kfk57nMjQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mll9BnUoqrMnYSSkxMOupgQPnlrh9KRa1YjOoQ3P4JiOqLWD62Otf5J1MloIVbQPhMnIj/RD1d0ZThDDOJFd2PoPE5g6hBVJ/i0lE4csdiYp5HALH/PLQtF/+XM8rrElnU5JmmE2r8F57s74GmIEzQRtMz5JQBxMclzhMcVeE3057Yo2DdlGpGi9RQ8KeaAfW+vGuoHzmEnSSowN6jK48t9kO1un1jdHyQV6I764x+YbaggK4E/gN1tuRl+yzNiWkiIQ2Zj7ouNae5pcIWnHh55AbOo5QyErf98M4LarCvU3ODcqvgfeOWmkWGxXXnpOvB0dA7ne86HE2C84EoTr9g==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, Edwin Török <edvin.torok@xxxxxxxxxx>
  • Delivery-date: Sat, 30 Oct 2021 11:21:28 +0000
  • Ironport-data: A9a23:1sVfn67Z9gbup8bFdjmVLgxRtKvAchMFZxGqfqrLsTDasY5as4F+v mAXWW/QaareZGOnL9Agbd6z9EtSsZXXnd9rHgpqqys3Hi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuV3zyIQUBUjclkfJKlYAL/En03FVAMpBsJ00o5wrdh2dYw2LBVPivW0 T/Mi5yHULOa82Yc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pGTU2FFFPqQ5E8IwKPb 72rIIdVXI/u10xF5tuNyt4Xe6CRK1LYFVDmZnF+A8BOjvXez8CbP2lS2Pc0MC9qZzu1c99Z4 o4TmZOWEisTFYbgk8gnXhhmNxhMIvgTkFPHCSDXXc27ykTHdz3nwul0DVFwNoodkgp1KTgQr 7pCcmlLN03dwbLtqF64YrAEasALNs7kMZlZonh95TrYEewnUdbIRKCiCdpwgWdu3Z4QQae2i 8wxSSpBXjb+eAV2IFI4OsJnwaCDn0H4SmgNwL6SjfVuuDWCpOBr65D2K8bccNGOQcRTn26bq 3jA8mC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uIifeQnL9b3EfDLyI+GHWlMTCxXnjSVMSmFGM/Gmk=
  • Ironport-hdrordr: A9a23:HraR9aGgIJ/IIjHkpLqE7MeALOsnbusQ8zAXPidKOHtom62j5q STdZEgviMc5wx8ZJhNo7+90cq7IU80l6Qa3WB5B97LNmTbUQCTTb1K3M/PxCDhBj271sM179 YET0GmMqySMbGtt7eZ3DWF
  • Ironport-sdr: v2R6uMXalIAMQYJ4EFPs7ugp4dMr3OHgreGRSlq1OaFYAf5qAXyGJJmmWJ2hXrAo8o2Cvrn/Np eQ5ZiUlL6A34JG92CvW3XSPiPyxKP6+WTsd+237VUgOCbBhM8bBXxaLNK6/eVsqnnHdK/bHR3T EM89pucHnCbC0FjvMGvdIT9NPZSkWrMg7lpqivs2MpIwvowWz2BX1oTHQ4ycPyjl9QESd0G3hp sUqikMNN8DtfsHb4GXpddaZjSnAaiEIPcfbLznyUjdeCZJ8X2qqyl0QYEmxojs55M6f66faVar K6ZzM+LRYOf4npHfLF2bJn20
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Oct 29, 2021 at 06:38:13PM +0100, Andrew Cooper wrote:
> In order to let the toolstack be able to set the gnttab version on a
> per-domain basis, it needs to know which ABIs Xen supports.  Introduce
> XEN_SYSCTL_PHYSCAP_gnttab_v{1,2} for the purpose, and plumb in down into
> userspace.

I did consider exposing the versions supported together with
max_{grant,maptrack}_frames using a new grant-table dedicated sysctl,
but maybe it's fine to expose the version as a physcap and fetch the
other two separately?

I certainly didn't look much into this, maybe it's pointless to expose
max_{grant,maptrack}_frames. I think the toolstack will need to be
able to fetch grant related limits on a per-domain basis like we plan
to do with the grant version in order to assert the destination host
supports the current limit applied to the domain.

Thanks, Roger.



 


Rackspace

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