[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <83353b34-2abb-9dfc-bed6-21d500abf49f@oracle.com>
Date: Wed, 16 Jun 2021 11:33:50 -0400
From: Boris Ostrovsky <boris.ostrovsky@...cle.com>
To: Christoph Hellwig <hch@....de>
Cc: Roman Skakun <rm.skakun@...il.com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Juergen Gross <jgross@...e.com>,
Stefano Stabellini <sstabellini@...nel.org>,
xen-devel@...ts.xenproject.org, iommu@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org,
Oleksandr Tyshchenko <oleksandr_tyshchenko@...m.com>,
Oleksandr Andrushchenko <oleksandr_andrushchenko@...m.com>,
Volodymyr Babchuk <volodymyr_babchuk@...m.com>,
Roman Skakun <roman_skakun@...m.com>,
Andrii Anisov <andrii_anisov@...m.com>
Subject: Re: [PATCH 2/2] swiotlb-xen: override common mmap and get_sgtable dma
ops
On 6/16/21 10:21 AM, Christoph Hellwig wrote:
> On Wed, Jun 16, 2021 at 10:12:55AM -0400, Boris Ostrovsky wrote:
>> I wonder now whether we could avoid code duplication between here and dma_common_mmap()/dma_common_get_sgtable() and use your helper there.
>>
>>
>> Christoph, would that work? I.e. something like
> You should not duplicate the code at all, and just make the common
> helpers work with vmalloc addresses.
Isn't the expectation of virt_to_page() that it only works on non-vmalloc'd addresses? (This is not a rhetorical question, I actually don't know).
-boris
Powered by blists - more mailing lists