lkml.org 
[lkml]   [2022]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 0/2] x86/hyperv/Swiotlb: Add swiotlb_alloc_from_low_pages switch
From
On 2022-02-02 08:12, Christoph Hellwig wrote:
> I think this interface is a little too hacky. In the end all the
> non-trusted hypervisor schemes (including the per-device swiotlb one)
> can allocate the memory from everywhere and want for force use of
> swiotlb. I think we need some kind of proper interface for that instead
> of setting all kinds of global variables.

Right, if platform/hypervisor code knows enough to be able to set magic
non-standard allocation flags correctly, surely it could equally just
perform whatever non-standard allocation it needs and call
swiotlb_init_with_tbl() instead of swiotlb_init().

Robin.

\
 
 \ /
  Last update: 2022-02-02 14:24    [W:0.087 / U:1.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site