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

Re: [PATCH 1/9] gnttab: defer allocation of maptrack frames table


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Mon, 6 Sep 2021 15:05:28 +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; bh=dP5NkI57FysLi5fpG0vY0d9VkOPvehodDZ8TCsHz7rs=; b=nddb8BYhRQSx//I2snXs91d55aNAE1zhEBSvvabNUc6D+axS7/8Uv2QzNx/32H47YfLM8W0LkzmL0ALnsYJ+3zgKLN6vof+jdDs5LVdBtHePTQxZVRr52NT56HPntKs1nvyG8Js5+kZtMTxNRsHtG362aJLRiO6hMCwGJVypnjKeGEn760z+9W67ZKAEwdpkeWBezg1Plahw6YgJVnSutKKaffizerFDRv8I1HXB3oN93eYYym8QY2Yt65gG40NzrJDNJjoiKZuw0D66wLfOOjvsALFEQR6zBoGXWIIjODFoFEqDJ81OWEvTaZsFtrE7WgDrUrScmGCT7Ql8fhnL2Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oICJRuD1Wix1rzV8+iChMMRYDECxQK+2Bc/XhW4aYl9uyaqm7Rcze38/T2+FhgXuXe4IDcWvfCxS9p39GIrUBjr0zE/0p4Qa8n2pGGQKREeSZJNeFNhqwwkyxXK28Z6UL/g3qfaynMouf97sWhDPy+Q56AnUDcp2yl292zsGxfh5GpIX9WwY0rZgbobu5gDZvuOKhkoZeEhb6q/n0igNMoB+0BPTtjWGDqT5LUTWa94/LNafvaPx80NTsuYpU2IdvwgtdKc/c5hEPLBM/rJ6xGN5fzlruaI6FsamV+vdxEZHJjNCOU9623+XNieUlAIu1xr6aTvXw7E1jic348/Erg==
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Mon, 06 Sep 2021 14:06:17 +0000
  • Ironport-hdrordr: A9a23:xkFLT6h4cUPukwHoDc8dBVSmhHBQX1N13DAbv31ZSRFFG/FwyP rBoB1L73DJYWgqNE3I+erhBEGBKUmskaKdkrNhQ4tKOzOWx1dATbsSkbcKpgeAJ8SQzJ8n6U 4NSdkZNDS0NykGsS+Y2njKLz9D+qj+zEnAv463pB0BPGIaCdAT0+46MHf9LqQffng3OXNTLu vk2iMonUvERZ1aVLXAOpFTNNKz1uEj2aiWLiIuNloC0k2jnDmo4Ln1H1yx2QofaSpGxfMH/X LemwL0y62/u7XjoyWsllP73tBzop/M29FDDMuDhow8LSjtsB+hYMBEV6eZtD44jemz4BIBkc XKoT0nI8NvgkmhMF2dkF/I4U3NwTwu43jtxRuxhmbim9XwQHYAB89IletiA1HkwntlmOs5/L NA3mqfuZYSJwjHhj7B69/BUAwvvlaooFI5+NRjzUB3YM87Uvt8vIYf9ERaHNMrByTh8r0qF+ FoEYX1+OtWS1WHdHrU11Mfg+BEZk5DWituf3Jy/fB8i1Nt7TZEJgojtYwid047hdcAo8Iu3Z WcDkxq/Is+BfP+I5gNXNvo7KOMexrwqCn3QRavyGLcZek60kL22uvKCYoOlZaXkbwzvdYPcc f6IR9lXVBbQTOmNSTJ5uwRzizw
  • Ironport-sdr: i20T5t4R1ZJa3d26qjyEsHMuRn1W1jpNe4yzzfe46ZNz1PT5dGaOdjW3307cp9wLCdOw4PsjMT Xf+0/guVrIPzMESAugdIQKIBmdM2U66COih1hkrU0WpbtXXAbZUXhZSrNX220sdnG4r8j7vkOz OCBo0XShrW146ES54FFx2rj58Cd2Rf2Z/w77Ia1JU00lT0XIkvjIhFOT/dtRgi6RRIeQENoW9s hz1aeWUy8jlnwX5H9WHOYek79JIoZ0K8tNqKWfvKGprgBajCkUsrPJFGMfnuREQBp0zjaUTI4N PNkFfkKktkreKjpiUI/s/Z/V
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26/08/2021 11:09, Jan Beulich wrote:
> By default all guests are permitted to have up to 1024 maptrack frames,
> which on 64-bit means an 8k frame table. Yet except for driver domains
> guests normally don't make use of grant mappings. Defer allocating the
> table until a map track handle is first requested.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Nack.  This creates new dynamic failures outside the VM's control,
therefore regressing Xen's usability.

The maptrack array (and frames for that matter) should be allocated at
domain creation time, like we do for most other structures in the
hypervisor.

Furthermore, seeing as this has come up on multiple community calls, I
will remind you that it is not just Citrix as a downstream which is
firmly of this opinion.

This entire patch should be replaced with one that...

> ---
> I continue to be unconvinced that it is a good idea to allow all DomU-s
> 1024 maptrack frames by default.

... defaults to something smaller for plain domUs, because this improves
the general case without leaving VMs more liable to crash at runtime.

~Andrew




 


Rackspace

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