[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] RFC: add -mem-shared option
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH 0/2] RFC: add -mem-shared option |
Date: |
Thu, 28 Nov 2019 16:59:33 +0000 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
* Marc-André Lureau (address@hidden) wrote:
> Hi,
>
> Setting up shared memory for vhost-user is a bit complicated from
> command line, as it requires NUMA setup such as: m 4G -object
> memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on -numa
> node,memdev=mem.
>
> Instead, I suggest to add a -mem-shared option for non-numa setups,
> that will make the -mem-path or anonymouse memory shareable.
>
> Comments welcome,
It's worth checking with Igor (cc'd) - he said he was going to work on
something similar.
One other thing this fixes is that it lets you potentially do vhost-user
on s390, since it currently has no NUMA.
Dave
> Marc-André Lureau (2):
> memfd: add qemu_memfd_open()
> Add -mem-shared option
>
> exec.c | 11 ++++++++++-
> hw/core/numa.c | 16 +++++++++++++++-
> include/qemu/memfd.h | 3 +++
> include/sysemu/sysemu.h | 1 +
> qemu-options.hx | 10 ++++++++++
> util/memfd.c | 39 +++++++++++++++++++++++++--------------
> vl.c | 4 ++++
> 7 files changed, 68 insertions(+), 16 deletions(-)
>
> --
> 2.24.0
>
>
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
Re: [PATCH 0/2] RFC: add -mem-shared option, Eduardo Habkost, 2019/11/28
Re: [PATCH 0/2] RFC: add -mem-shared option,
Dr. David Alan Gilbert <=
Re: [PATCH 0/2] RFC: add -mem-shared option, no-reply, 2019/11/28
Re: [PATCH 0/2] RFC: add -mem-shared option, no-reply, 2019/11/29
Re: [PATCH 0/2] RFC: add -mem-shared option, Gerd Hoffmann, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Marc-André Lureau, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Daniel P . Berrangé, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Marc-André Lureau, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Daniel P . Berrangé, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Marc-André Lureau, 2019/11/29
- Re: [PATCH 0/2] RFC: add -mem-shared option, Gerd Hoffmann, 2019/11/29