[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: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 2 Nov 2021 13:12:41 +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=W//mcTxEnQG24WH8H84I2kT696pxUDWRtyKCBtqPqj4=; b=RoRQ5yf33lkqVgDePJ/k7hpsorQ2u7QAy8bhkxNObg49jiKACNYnNzvMO2Ejc1VzZzQ5g0fW6WBlurtL23+Tt+rX/RXeqpqeurECWbxgPd9e4AKWKANY1Yca4zin0e/W2N0PzPM2wMbVLk2z7L0pN5wn10tXGi4cY9zJCpXZt9ILlr8ohWU1JnpGBxHI7dZ93IVdrsKylfO/mWnAc8fn5vyE33E5qDlRT+rhTdMEqCnDEG8Ci0VBsE3g54+D7UOpYdH4lAexf+ITu0pz4lfjULPauVC+DUZoG9yqLEGp6wibrKA4H5wsjhcSz1YBPY66rSz2pvFTtw7FDyH8/3ijog==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YwNg8SRUK5Drr8uHMdpKg9dOqBEt6+XFmdkfEuurGQo7VxsDIS04mW39475voUIO/KIPYYjK1JpUzb0iAhewz/FsC2FWtF9f7w8WkqpPw45IstUachoLEdX8cb3uWZm4DwHIukyPv0pzo/BOYuMWnX1qaXKKPNvUWiZJJP1YB2RDRyRrRab8qV/7mzxufpvh4TvM6RsQ+AZgraoHWCYoyMtid1prUVqnlODShMc9MlQcutTng2h2nIGtCHBTpQlcMbgQchrZJucxz5GucNxSI41VvhQWsvFNHq6uEShj+vhw0sD761SAKAZmdhi3iu+ROxT/T+Z7bV1NIYHVlPopcQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, Edwin Török <edvin.torok@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Delivery-date: Tue, 02 Nov 2021 12:13:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.10.2021 13:20, Roger Pau Monné wrote:
> 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.

I think the other two are a better fit to expose via hypfs (alongside
the version). And indeed they are being exposed there already, just
not the version (which would imo belong there for completeness, not
to replace the exposure as a physcap here).

Jan




 


Rackspace

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