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

Re: [PATCH] tools/libxl: don't allow IOMMU usage with PoD


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 3 Feb 2022 15:06:25 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=opj1CAKwFYlKWMUE70JjRXBz6CijP/Uc3r88g87i9BU=; b=AU1uFh0SyR7VzkwH9VgBeK3b+tzVyDx5KEUijsSzwyI3yU00h4jXgBtMWJjG89du/KEANbXp8drzkpXLXwwkxF2eu4TUpHxmEnbr0ho/bcY8zZPeeN/r5/mGGW3hLemy/qekS472nNn7TlSIr1Oko4VyURNy0WDH5iEB7DbOoAohBphErnqHZxD/yP4Kyk2GIyNvKKRGXFpx0UGmNzuD5c7xpACOX0YCgj58klhxnG1wlI3hJNFTZ/mqmwS1r9IjLMjrDdHgRlLBA8Ia/pDAroGHiyFt+djPFOXy5ANzX3dXN+bSvJMph1UvKFqTb8utC6r+iF6YaZqhHynT9+XIYA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJrEr0l8X9xx2dDAeOUhV1+Csz1kziuPiGWlz0umj8qtB7QfgcgrQiY8kbAGT2dWmhQdJXhWc2QZK0/fVNbEnk/KGGDZ3aSRSMHO+YFVQ1q6mPU4iU0SHzQOJrduWo3Pm87x0cptUAv8q3UpuYfaITar7/Fbqfo01uvWUTBiTb47JtYrfa/fkQpobaKZqMgLNhGaROHtQ1+cXSSkmCEyc7kM0LKFxbcFSMLWJy16TzM9BY279TzOqfaPTDjfMD1qZkd9TekFaVs0VAmRzei/nfMQOYqm69mo1Q+mQM/x1r7HtYFlj0FUedzOJJAMjl17ELvLFPqhUJJg5ieaNA5IAw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 03 Feb 2022 14:06:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 03.02.2022 14:50, Roger Pau Monné wrote:
> On Thu, Feb 03, 2022 at 12:55:56PM +0100, Jan Beulich wrote:
>> On 03.02.2022 12:06, Roger Pau Monne wrote:
>>> Prevent libxl from creating guests that attempts to use PoD together
>>> with an IOMMU, even if no devices are actually assigned.
>>>
>>> While the hypervisor could support using PoD together with an IOMMU as
>>> long as no devices are assigned, such usage seems doubtful. There's no
>>> guarantee the guest has ballooned down enough memory for PoD to no
>>> longer be active, and thus a later assignment of a PCI device to such
>>> domain could fail.
>>
>> That's not a precise description of the constraint: The guest ballooning
>> down enough only means entries == cache, but for device assignment we
>> need entries == 0 (and a guarantee that no new entries can appear, but I
>> think this is already the case once a guest was launched).
> 
> Would you be OK with:
> 
> "While the hypervisor could support using PoD together with an IOMMU as
> long as no devices are assigned, such usage seems doubtful. There's no
> guarantee the guest has PoD no longer be active, and thus a later
> assignment of a PCI device to such domain could fail."

Yes, thanks, this sounds better (to me at least).

Jan




 


Rackspace

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