x86/hyperv/Swiotlb: Add swiotlb_set_alloc_from_low_pages() switch function.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 12 repliesIn review
- v12 patches 5 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Swiotlb: Add swiotlb_alloc_from_low_pages switchinclude/ kernel/ | +17 | 12 replies | |
| 2/2 | x86/hyperv: Make swiotlb bounce buffer allocation not just from low pagesarch/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH V2 0/2] x86/hyperv/Swiotlb: Add swiotlb_set_alloc_from_low_pages() switch function.
From: Tianyu Lan <[email protected]>
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(-)
Signature · 1 line
2.25.1