All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] x86/iommu: improve setup time of hwdom IOMMU
@ 2023-12-15 14:18 Roger Pau Monne
  2023-12-15 14:18 ` [PATCH v3 1/7] iommu/vt-d: do not assume page table levels for quarantine domain Roger Pau Monne
                   ` (6 more replies)
  0 siblings, 7 replies; 18+ messages in thread
From: Roger Pau Monne @ 2023-12-15 14:18 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Kevin Tian, Jan Beulich, Andrew Cooper, Wei Liu,
	Paul Durrant, Lukasz Hawrylko, Daniel P. Smith,
	Mateusz Mówka

Hello,

The aim of the series is to reduce boot time setup of IOMMU page tables
for dom0.

The first patch is completely unrelated leftover work from XSA-445, just
included in the series because it's IOMMU code.

Second and third patches are a pre-req, as further patches can end up
attempting to create maps above the max RAM address, and hence without
properly setting the IOMMU page tables levels those attempts to map
would fail.

Last 4 patches rework the hardware domain IOMMU setup to use a rangeset
instead of iterating over all addresses up to the max RAM page.  See
patch 6/7 for performance figures.

Thanks, Roger.

Roger Pau Monne (7):
  iommu/vt-d: do not assume page table levels for quarantine domain
  x86/p2m: move and rename paging_max_paddr_bits()
  amd-vi: set IOMMU page table levels based on guest reported paddr
    width
  x86/iommu: introduce a rangeset to perform hwdom IOMMU setup
  x86/iommu: remove regions not to be mapped
  x86/iommu: switch hwdom IOMMU to use a rangeset
  x86/iommu: cleanup unused functions

 xen/arch/x86/cpu-policy.c                   |   2 +-
 xen/arch/x86/domain.c                       |  21 ++
 xen/arch/x86/hvm/io.c                       |  15 +-
 xen/arch/x86/include/asm/domain.h           |   3 +
 xen/arch/x86/include/asm/hvm/io.h           |   4 +-
 xen/arch/x86/include/asm/paging.h           |  22 --
 xen/arch/x86/include/asm/setup.h            |   2 +-
 xen/arch/x86/setup.c                        |  81 +++---
 xen/arch/x86/tboot.c                        |   2 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c |  20 +-
 xen/drivers/passthrough/vtd/iommu.c         |   2 +-
 xen/drivers/passthrough/x86/iommu.c         | 277 +++++++++++++-------
 12 files changed, 269 insertions(+), 182 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-12-20 10:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 14:18 [PATCH v3 0/7] x86/iommu: improve setup time of hwdom IOMMU Roger Pau Monne
2023-12-15 14:18 ` [PATCH v3 1/7] iommu/vt-d: do not assume page table levels for quarantine domain Roger Pau Monne
2023-12-15 14:18 ` [PATCH v3 2/7] x86/p2m: move and rename paging_max_paddr_bits() Roger Pau Monne
2023-12-19 15:38   ` Jan Beulich
2023-12-15 14:18 ` [PATCH v3 3/7] amd-vi: set IOMMU page table levels based on guest reported paddr width Roger Pau Monne
2023-12-19 15:40   ` Jan Beulich
2023-12-15 14:18 ` [PATCH v3 4/7] x86/iommu: introduce a rangeset to perform hwdom IOMMU setup Roger Pau Monne
2023-12-19 16:06   ` Jan Beulich
2023-12-20  9:52     ` Roger Pau Monné
2023-12-15 14:18 ` [PATCH v3 5/7] x86/iommu: remove regions not to be mapped Roger Pau Monne
2023-12-19 16:18   ` Jan Beulich
2023-12-20 10:22     ` Roger Pau Monné
2023-12-15 14:18 ` [PATCH v3 6/7] x86/iommu: switch hwdom IOMMU to use a rangeset Roger Pau Monne
2023-12-19 16:21   ` Jan Beulich
2023-12-15 14:18 ` [PATCH v3 7/7] x86/iommu: cleanup unused functions Roger Pau Monne
2023-12-19 16:23   ` Jan Beulich
2023-12-20 10:31     ` Roger Pau Monné
2023-12-20 10:36       ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.