[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 Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 3 Feb 2022 12:55:56 +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=hlIUFxMgWGxdAvsZ3Zpu7XbgD5YlGha65sq9XotFu8A=; b=Pl91cN5r/EhNs94ZeylOwRwZQBAGyXFnTQQOGetiIcYPIDLiwbzBQGkrr0Yxe72wN0DMC+ba1ccd1s8bf02KydIa0LjDHvJ/O0l53qu+UlEM6z05pyYjMTF0pHffJgrbMc78CQrm9pbS+/Atbrj5StoiUtzJZokT979pbD8WFR8Ccvm0N5hXONdABzyS+e6Y/vMqRoR8jYrnuxqdmQvaQzrFtV/ecsKzlD1tgFp89N3RT2mNSym6tITM9afY4OZGw3y4SgzGj9tMep4RstHB/hFPZEZinVrxKYkQFmhL0J0syG6rC7CQJoDJf4NU6zrWYIZXYsR2qHzdWDObiTLcuw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UQiBWnyhviWF2+thkcauOmmHorNiCfjw9LoUcfM3BYSjkB0Ja29vhXVygWKgw50PZovJR+63LWGK1DjDvoyoV4UdVTN4qxF+KTSH7qiGk7raIFNp9UgfzOxBEGuEStwfnrJCuerqoJJevuCwIv1hsxK/ukOr6Zc1ltSV3yjBOPwb+m6HlXyPzJ739hL1KY/kgPQKqqzxRghfrhfVgRk39pNRuhW6WXhe66dAj6U6WuTeoIMHmGz2IisrfVFn9EMn5K4QRRE3pu+cHbAkSBs/2nQGAOVyl3K8ZEzTvfgXzDxgzKJ+xPpzEKIXOmIlk9r/rVV7Rr6akxNfM7+SbvOdnw==
  • 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 11:56:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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).

(FWIW the wording in code comment and log message read fine to me.)

Jan




 


Rackspace

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