diff options
author | Juergen Gross <jgross@suse.com> | 2019-06-14 07:46:04 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2019-08-01 06:39:33 +0200 |
commit | b877ac9815a8fe7e5f6d7fdde3dc34652408840a (patch) | |
tree | 0b1477601024cd45a16c092feffde094070cf6cd /lib | |
parent | xen/swiotlb: simplify range_straddles_page_boundary() (diff) | |
download | linux-b877ac9815a8fe7e5f6d7fdde3dc34652408840a.tar.xz linux-b877ac9815a8fe7e5f6d7fdde3dc34652408840a.zip |
xen/swiotlb: remember having called xen_create_contiguous_region()
Instead of always calling xen_destroy_contiguous_region() in case the
memory is DMA-able for the used device, do so only in case it has been
made DMA-able via xen_create_contiguous_region() before.
This will avoid a lot of xen_destroy_contiguous_region() calls for
64-bit capable devices.
As the memory in question is owned by swiotlb-xen the PG_owner_priv_1
flag of the first allocated page can be used for remembering.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions