* qemu-system-i386: -mem-path not supported with Xen when try to use memory-backend-memfd to share the memory with external processes on qemu-xen stable-4.16
@ 2022-04-06 9:00 Trigger Huang
0 siblings, 0 replies; only message in thread
From: Trigger Huang @ 2022-04-06 9:00 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
Hello,
The QEMU Documentation suggests to use memory-backend-memfd to share the
memory with external processes, so I add the following patch to
libxl__build_device_model_args_new() @ tools/libs/light/libxl_dm.c
*+ flexarray_append_pair(dm_args, "-object",
"memory-backend-memfd,id=mem1,size=4G");+
flexarray_append_pair(dm_args, "-machine", "memory-backend=mem1");*
However, I always got error '*qemu-system-i386: -mem-path not supported
with Xen*'
After check the qemu-xen source, the error is from
'qemu_ram_alloc_from_fd() @ softmmu/physmem.c
* if (xen_enabled()) { error_setg(errp, "-mem-path not supported
with Xen"); return NULL; }*
So, any suggestions on how to enable *-mem-path* on Xen?
Thanks,
Trigger
[-- Attachment #2: Type: text/html, Size: 1256 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-06 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 9:00 qemu-system-i386: -mem-path not supported with Xen when try to use memory-backend-memfd to share the memory with external processes on qemu-xen stable-4.16 Trigger Huang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.