lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <lrkyqecqoky0o.fsf_-_@dev-dsk-mngyadam-1c-cb3f7548.eu-west-1.amazon.com>
Date: Mon, 27 Oct 2025 19:19:51 +0100
From: Mahmoud Nagy Adam <mngyadam@...zon.de>
To: David Matlack <dmatlack@...gle.com>
CC: <kvm@...r.kernel.org>, <jgg@...pe.ca>, <kbusch@...nel.org>,
	<benh@...nel.crashing.org>, David Woodhouse <dwmw@...zon.co.uk>,
	<pravkmr@...zon.de>, <nagy@...aternagy.com>, <linux-kernel@...r.kernel.org>,
	Alex Williamson <alex@...zbot.org>
Subject: Re: [RFC PATCH 0/7] vfio: Add alias region uapi for device feature

David Matlack <dmatlack@...gle.com> writes:

> On Wed, Sep 24, 2025 at 7:11 AM Mahmoud Adam <mngyadam@...zon.de> wrote:
>>
>> This RFC proposes a new uapi VFIO DEVICE_FEATURE to create per-region
>> aliases with selectable attributes, initially enabling write-combine
>> (WC) where supported by the underlying region. The goal is to expose a
>> UAPI for userspace to request an alias of an existing VFIO region with
>> extra flags, then interact with it via a stable alias index through
>> existing ioctls and mmap where applicable.
>
> Would it make sense to build this on top of Leon's dma-buf series [1]?
> My understanding is that dma-buf can support mmap, so WC could just be
> a property attached to a dma-buf fd and passed by userspace via
> VFIO_DEVICE_FEATURE_DMA_BUF. Then VFIO wouldn't have to create or
> manage region aliases.
>

The motivation for this proposal is that it would integrate seamlessly
with DPDK. I haven’t yet investigated the new dma-buf series as a
solution, but my initial impression is that it doesn’t fit well with
DPDK’s existing model.
Enabling write-combine with dma-buf was also proposed here[1] and I
agree that’s a generally good idea and fits naturally with dma-buf. I
think it would be valuable to support WC with both region aliasing and
dma-buf, But maybe Alex have a different opinion on that.

[1]: https://lore.kernel.org/kvm/20250918214425.2677057-1-amastro@fb.com/

> Apologies if this has already been discussed, I did not go through all
> the past discussion.
>
> [1] https://lore.kernel.org/kvm/72ecaa13864ca346797e342d23a7929562788148.1760368250.git.leon@kernel.org/

Thanks,
MNAdam



Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christian Schlaeger
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ