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

Re: [PATCH v2 3/6] gnttab: allow per-domain control over transitive grants


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 15 Oct 2021 13:46:33 +0200
  • 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=ouqg4ZcgVSb17GN+FWPxCQe48GIW9ahi4s1Ln/bTg8s=; b=SRstMUdTd3JULuDTK8+0dQ+m8k6zBe5PlVArln0YK4nU6BNhAHv56gA8Pu9MdeDTjf1+MsHYHp8kKQ2l3OaVauSI9nuW0y6WPfV6aV4xq2ieSh0KHDsFLI+mdXqkJlqtEgjbWYlevK6aI0zcGUq+dKJcjCJqJ1HtM8GN7h2Gm5mfm92gcTEW2Vqxz8mF4l9FaiPDl74kG4opVGY8Ss8o2Y/JDGCKunq87gzYIsc1Zf4VYOztHEu4uZSSgnZZDs7bUO5gWd6db9HhNknC46lGellByB98TltKPtBmgwFrmm5Hf8oZIl9rQ8/su3BnTBb89Bsvh+uC/7lIZtTrlUFojA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wh7m/V1QLBy6HcKy3wqiYe55dJGUB06PdOPkOCUGla0sIDbEa7rJCgarkuCiLOo2UF2O4KEJNpXdjSLTnI5Vaat9fJLxaOcDhp8ZoXSsFyT4GnmYTW2TuD6d38FwUM+zqVGvERit5ENhcjawfiP+G/1uOaBccFmkE62q6xP1Vx+tQcllQqL397t4T9VWi7I/FtU+Yhx/6RHGo/wIoXS7NtdeXwMuLppHgx/LWaz5c5dpRFuoJoZ2QO9ZA5x2oDGh1bcwC2Vj+SdLrtkE3a3oM0+dcETjC8A1oJ85RcJtfNWFd8OjgMA7GGs7X2cMLwJl93hzC39qJGswGefKgMCb7A==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, 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>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 15 Oct 2021 11:46:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 22.09.2021 10:21, Roger Pau Monne wrote:
> @@ -1965,6 +1969,8 @@ int grant_table_init(struct domain *d, int 
> max_grant_frames,
>      gt->max_grant_frames = max_grant_frames;
>      gt->max_maptrack_frames = max_maptrack_frames;
>      gt->max_grant_version = max_grant_version;
> +    gt->allow_transitive = !!(options & XEN_DOMCTL_GRANT_transitive) &&
> +                           opt_transitive_grants;

Btw, should you perhaps reject the flag being set when max version isn't 2?

Jan




 


Rackspace

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