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] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025122459-blimp-bobble-c772@gregkh>
Date: Wed, 24 Dec 2025 16:53:34 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: joaopeixoto@...x.tech
Cc: linux-kernel@...r.kernel.org, ajd@...ux.ibm.com, alex@...ti.fr,
	aou@...s.berkeley.edu, bagasdotme@...il.com,
	catalin.marinas@....com, conor+dt@...nel.org, corbet@....net,
	dan.j.williams@...el.com, davidmcerdeira@...x.tech,
	devicetree@...r.kernel.org, dev@...l-k.io, haren@...ux.ibm.com,
	heiko@...ech.de, jose@...x.tech, kever.yang@...k-chips.com,
	krzk+dt@...nel.org, linux-arm-kernel@...ts.infradead.org,
	linux@...linux.org.uk, linux-doc@...r.kernel.org,
	linux-riscv@...ts.infradead.org, maddy@...ux.ibm.com,
	mani@...nel.org, nathan@...nel.org, neil.armstrong@...aro.org,
	palmer@...belt.com, pjw@...nel.org,
	prabhakar.mahadev-lad.rj@...renesas.com, robh@...nel.org,
	will@...nel.org
Subject: Re: [PATCH 2/5] virt: add Bao IPC shared memory driver

On Wed, Dec 24, 2025 at 01:52:14PM +0000, joaopeixoto@...x.tech wrote:
> From: João Peixoto <joaopeixoto@...x.tech>
> 
> Add a new driver providing an interface for communication with guests
> hosted by the Bao hypervisor using shared-memory channels. The driver
> exposes read/write regions defined in device tree and notifies the
> hypervisor via an architecture-specific hypercall (SMC/HVC on ARM and
> SBI ecall on RISC-V).
> 
> The patch introduces:
>   - drivers/bao/ with the initial Bao IPC shared-memory implementation
>   - Kconfig entry enabling BAO_SHMEM
>   - Makefile integration for building the driver
>   - A character device interface supporting mmap(), read(), and write()
>   - Platform driver support using DT properties for channel layout
> 
> Each device instance maps its assigned shared-memory region, validates
> read/write channel configuration, and exposes a /dev/baoipc<N> node
> used by user space to exchange data with Bao guests.
> 
> Signed-off-by: João Peixoto <joaopeixoto@...x.tech>
> ---
>  drivers/virt/Kconfig                 |   2 +
>  drivers/virt/Makefile                |   1 +
>  drivers/virt/bao/Kconfig             |   3 +
>  drivers/virt/bao/Makefile            |   3 +
>  drivers/virt/bao/ipcshmem/Kconfig    |   9 +
>  drivers/virt/bao/ipcshmem/Makefile   |   3 +
>  drivers/virt/bao/ipcshmem/ipcshmem.c | 539 +++++++++++++++++++++++++++

Why two subdirs deep for a single .c file?  Why not just put this in
drivers/virt/ instead?

thanks,

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ