[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] swiotlb-xen: override common mmap and get_sgtable dma ops
 
- To: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
 
- From: Christoph Hellwig <hch@xxxxxx>
 
- Date: Wed, 16 Jun 2021 17:35:19 +0200
 
- Cc: Christoph Hellwig <hch@xxxxxx>, Roman Skakun <rm.skakun@xxxxxxxxx>,	Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>,	Juergen Gross <jgross@xxxxxxxx>,	Stefano Stabellini <sstabellini@xxxxxxxxxx>,	xen-devel@xxxxxxxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx,	linux-kernel@xxxxxxxxxxxxxxx,	Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>,	Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>,	Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>,	Roman Skakun <roman_skakun@xxxxxxxx>,	Andrii Anisov <andrii_anisov@xxxxxxxx>
 
- Delivery-date: Wed, 16 Jun 2021 15:35:28 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
 
 
 
On Wed, Jun 16, 2021 at 11:33:50AM -0400, Boris Ostrovsky wrote:
> 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).
Yes.  Thus is why I'd suggest to just do the vmalloc_to_page or
virt_to_page dance in ops_helpers.c and just continue using that.
 
 
    
     |