All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] x86/hyperv/Swiotlb: Add swiotlb_set_alloc_from_low_pages() switch function.
@ 2022-02-09 12:23 ` Tianyu Lan
  0 siblings, 0 replies; 30+ messages in thread
From: Tianyu Lan @ 2022-02-09 12:23 UTC (permalink / raw)
  To: kys, haiyangz, sthemmin, wei.liu, decui, tglx, mingo, bp,
	dave.hansen, x86, hpa, hch, m.szyprowski, robin.murphy,
	michael.h.kelley
  Cc: Tianyu Lan, iommu, linux-hyperv, linux-kernel, vkuznets,
	brijesh.singh, konrad.wilk, hch, parri.andrea, thomas.lendacky

From: Tianyu Lan <Tianyu.Lan@microsoft.com>

Hyper-V Isolation VM may fail to allocate swiotlb bounce buffer due
to there is no enough contiguous memory from 0 to 4G in some cases.
Current swiotlb code allocates bounce buffer in the low end memory.
This patchset adds a new function swiotlb_set_alloc_from_low_pages()
to control swiotlb bounce buffer from low pages or no limitation.
Devices in Hyper-V Isolation VM may use memory above 4G as DMA memory
and switch swiotlb allocation in order to avoid no enough contiguous
memory in low pages.

Tianyu Lan (2):
  Swiotlb: Add swiotlb_alloc_from_low_pages switch
  x86/hyperv: Make swiotlb bounce buffer allocation not just from low
    pages

 arch/x86/kernel/cpu/mshyperv.c |  1 +
 include/linux/swiotlb.h        |  1 +
 kernel/dma/swiotlb.c           | 18 ++++++++++++++++--
 3 files changed, 18 insertions(+), 2 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-03-01 14:01 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 12:23 [PATCH V2 0/2] x86/hyperv/Swiotlb: Add swiotlb_set_alloc_from_low_pages() switch function Tianyu Lan
2022-02-09 12:23 ` Tianyu Lan
2022-02-09 12:23 ` [PATCH V2 1/2] Swiotlb: Add swiotlb_alloc_from_low_pages switch Tianyu Lan
2022-02-09 12:23   ` Tianyu Lan
2022-02-14  8:19   ` Christoph Hellwig
2022-02-14  8:19     ` Christoph Hellwig
2022-02-14 11:28     ` Tianyu Lan
2022-02-14 11:28       ` Tianyu Lan
2022-02-14 13:58       ` Christoph Hellwig
2022-02-14 13:58         ` Christoph Hellwig
2022-02-15 15:32         ` Tianyu Lan
2022-02-15 15:32           ` Tianyu Lan
2022-02-21 15:14           ` Tianyu Lan
2022-02-21 15:14             ` Tianyu Lan
2022-02-22  8:05             ` Christoph Hellwig
2022-02-22  8:05               ` Christoph Hellwig
2022-02-22 15:07               ` Tianyu Lan
2022-02-22 15:07                 ` Tianyu Lan
2022-02-22 16:00                 ` Christoph Hellwig
2022-02-22 16:00                   ` Christoph Hellwig
2022-02-23  9:46                   ` Tianyu Lan
2022-02-23  9:46                     ` Tianyu Lan
2022-02-25 14:28                     ` Tianyu Lan
2022-02-25 14:28                       ` Tianyu Lan
2022-03-01 11:53                       ` Christoph Hellwig
2022-03-01 11:53                         ` Christoph Hellwig
2022-03-01 14:01                         ` Tianyu Lan
2022-03-01 14:01                           ` Tianyu Lan
2022-02-09 12:23 ` [PATCH V2 2/2] x86/hyperv: Make swiotlb bounce buffer allocation not just from low pages Tianyu Lan
2022-02-09 12:23   ` Tianyu Lan

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.