[pve-devel] [PATCH qemu-server 1/1] QemuServer.pm: add support for storing VM memory in /dev/shm

Fiona Ebner f.ebner at proxmox.com
Wed Jan 14 13:53:04 CET 2026


Hi,

Am 19.11.25 um 10:50 PM schrieb Drew Green via pve-devel:
> PVE supports the VM option "ivshmem" which creates a memory-backed file on
> the host operating system in /dev/shm to allow sharing resources between
> the guest and host and other guests.  There is currently no support for
> utilizing the Qemu feature to make the guest's system memory available via
> the filesystem, which can be useful for experimentation and testing
> purposes.  This patch adds an additional boolean option to the existing
> "ivshmem" configuration called "ram", which when set to 1 will store the
> guest's memory in the same location in /dev/shm that "ivshmem" normally
> would.  Additional logic is added to support that option, such as adding an
> additional "-machine" argument required for this and excluding the
> "-device" argument normally required for traditional "ivshmem".

yes, it is a rather niche use case. You can also add the machine flag
and object via custom '-args' in the VM configuration. Would using that
instead work for you? If yes, I'd rather postpone this, but feel free to
open a feature request on the bugzilla (referring back to your patch),
so we can better track interest from other users.

For completeness, regarding the patch submission: please use 'git
format-patch' to generate the email. And we'd also need a signed CLA and
a Signed-off-by trailer to be able to accept your patch. For details,
see: https://pve.proxmox.com/wiki/Developer_Documentation

Best Regards,
Fiona




More information about the pve-devel mailing list