# Re: \[RFC PATCH V3 08/11\] swiotlb: Add bounce buffer remap address setting function

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-06-14 15:33:07 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/06/1413618
- Thread: https://ratatoskr.run/xen-devel/2021/05/1396014/t.md

```text
On Mon, Jun 14, 2021 at 02:49:51PM +0100, Robin Murphy wrote:
> FWIW, I think a better generalisation for this would be allowing 
> set_memory_decrypted() to return an address rather than implicitly 
> operating in-place, and hide all the various hypervisor hooks behind that.

Yes, something like that would be a good idea.  As-is
set_memory_decrypted is a pretty horribly API anyway due to passing
the address as void, and taking a size parameter while it works in units
of pages.  So I'd very much welcome a major overhaul of this API.
```
