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

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


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 18 Feb 2022 09:06:35 +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=PrBq8lgcrPZI8jhsiqj2B0Fr5vp3ju2ZPZOYgHn9a2k=; b=la78hV+1vZeo2QTKMOSc7l5RXbNsmtJlMHe7LeVMoT52oThwOa+dC+CBloW2/8NwJv9qArX21884mp0WfjinG8ox+u490gU1UfIsLcbQQdwptmqWhO2dl9iv0ZbBMu1fqDIG+xiv8o/Ejmnojw3A/qmoisFHY9f5kdUyfqU0TGnhMWQvoes0fEhrhEMeN19nI6sRKsYF0eURCD+L858Su3tg1dDOdS8d4Dev9wlOISWVAlNXsDDwIK8q7ZC3SDwqdygfJmXqQqDgaJ+XoUNpYEj7wWVtqKUQxAW0TFq0Q3/8Akv5A7OMJhNZfFHGWgqMNCUQVLBSV6+1+NnikNBPWg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nYtO8JpamBF5jCaIKtNwaIOAHYmQNS1kpnwUfti+PeY5KLOCOxM6SieujZp6yGG8m54JaAVl5nbWuqCO/VrGymM1kTQNxUiVzxb750Ypo7xaJpbwv11sXln5zuQmuTesIdE1yhZFYjcCYTH443lcG7SH3q/Ul7mu3XLaysiD3im57Ft2Zyucg7ATfHMtrpS1jZOwMHJv9p07tzi69EQvkEwG/QdWk0JPKemQT+6bby0DRIrrZkNQyOKmmtC1/N0e2SkvhujoYH3/5Vb3/fMmjgDynGliK8L5390X+sHEAAvEXDtis/huqZ8fGBtlI4jUVH0IKEGm+V9FBvqRauqcMQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 18 Feb 2022 08:06:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.02.2022 15:09, 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 PoD no longer be active, and thus a later
> assignment of a PCI device to such domain could fail.
> 
> Preventing the usage of PoD together with an IOMMU at guest creation
> avoids having to add checks for active PoD entries in the device
> assignment paths.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

I'm inclined to queue this for the stable trees. Thoughts?

Jan




 


Rackspace

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