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

[Xen-devel] IOMMU page-tables


  • To: "xen-devel (xen-devel@xxxxxxxxxxxxxxxxxxxx)" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Thu, 18 Jul 2019 09:49:12 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Delivery-date: Thu, 18 Jul 2019 09:49:23 +0000
  • Ironport-sdr: lyQztnwyoQlzCXYuaxOuaUrUYkmfoZRNyw9aQSKgGfoGIFo3ya4bIiirinejKg99kXlp+lSQ+B nmoUmDLOPHoYp850vhLUH14Bj7Kvk2kdd8Q6CmQDifowXQgbhdLzXl0ezjtu5DZ16hm+W/z77N j8O4kv2yWNZDvZzrG1eoZJbEUAN2XIb5LdsnbsjXvzDx1IiGq44bPixgYxbp5mHYV38hzUzMp2 mecrn2zO7t+CzO2TCdIOuPIbNiMtOGSRKVud8qdvBOuap/Ad8KInj/dCNPfLdbfWYS/gnD+3AW qRc=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdU9TCP6x7BzOdjWTRO+l3/aOrPvEA==
  • Thread-topic: IOMMU page-tables

Hi,

  Before I get too far into this I want to get some opinions from the wider 
community...

  At the moment when the first PCI device is assigned to a domain (i.e. passed 
through) this will trigger construction of IOMMU page tables for that domain. 
Similarly when the last PCI device is de-assigned the tables are torn down 
again. Both of these operations can be quite expensive if the domain is a large 
amount for RAM, and if the IOMMU does not support sharing the second level CPU 
page tables (or the domain is PV). Moreover, the guest could simultaneously be 
ballooning or doing other operations that affect its page types and so the 
process of building the tables has to take into account such races.
  If we were instead to say that giving a domain IOMMU page tables is an option 
that needs to be selected at domain create time then it makes the code 
significantly simpler and there is no need to deal with page type 
change/ballooning races any more. I hacked together a test patch and it gets 
rid of roughly 200 lines of code (and there may be more that I missed).
  Does anyone think that deciding whether a domain should get IOMMU page tables 
is not a reasonable thing to have to do at create time?

  Cheers,

    Paul

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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