[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220126161053.297386-1-ltykernel@gmail.com>
Date: Wed, 26 Jan 2022 11:10:51 -0500
From: Tianyu Lan <ltykernel@...il.com>
To: kys@...rosoft.com, haiyangz@...rosoft.com, sthemmin@...rosoft.com,
wei.liu@...nel.org, decui@...rosoft.com, tglx@...utronix.de,
mingo@...hat.com, bp@...en8.de, dave.hansen@...ux.intel.com,
x86@...nel.org, hpa@...or.com, hch@...radead.org,
m.szyprowski@...sung.com, robin.murphy@....com,
michael.h.kelley@...rosoft.com
Cc: Tianyu Lan <Tianyu.Lan@...rosoft.com>,
iommu@...ts.linux-foundation.org, linux-hyperv@...r.kernel.org,
linux-kernel@...r.kernel.org, vkuznets@...hat.com,
brijesh.singh@....com, konrad.wilk@...cle.com, hch@....de,
parri.andrea@...il.com, thomas.lendacky@....com
Subject: [PATCH 0/2] x86/hyperv/Swiotlb: Add swiotlb_alloc_from_low_pages switch
From: Tianyu Lan <Tianyu.Lan@...rosoft.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 allocate bounce buffer in the low end memory.
This patchset adds a switch "swiotlb_alloc_from_low_pages" and it's
set to true by default. Platform may clear it if necessary. Devices
in Hyper-V Isolation VM may use memory above 4G as DMA memory and set
the switch to false in order to avoid no enough contiguous memory in
low end address space.
Tianyu Lan (2):
Swiotlb: Add swiotlb_alloc_from_low_pages switch
x86/hyperv: Set swiotlb_alloc_from_low_pages to false
arch/x86/kernel/cpu/mshyperv.c | 1 +
include/linux/swiotlb.h | 1 +
kernel/dma/swiotlb.c | 13 +++++++++++--
3 files changed, 13 insertions(+), 2 deletions(-)
--
2.25.1
Powered by blists - more mailing lists