From: Eduardo Habkost <ehabkost@redhat.com>
To: Marcel Apfelbaum <marcel@redhat.com>
Cc: qemu-devel@nongnu.org, mst@redhat.com, cohuck@redhat.com,
yuval.shaia@oracle.com, pbonzini@redhat.com, dotanb75@yahoo.com
Subject: Re: [Qemu-devel] [PATCH V9 1/4] mem: add share parameter to memory-backend-ram
Date: Thu, 8 Feb 2018 19:00:35 -0200 [thread overview]
Message-ID: <20180208210035.GK13301@localhost.localdomain> (raw)
In-Reply-To: <20180201205511.19198-2-marcel@redhat.com>
On Thu, Feb 01, 2018 at 10:55:08PM +0200, Marcel Apfelbaum wrote:
> Currently only file backed memory backend can
> be created with a "share" flag in order to allow
> sharing guest RAM with other processes in the host.
>
> Add the "share" flag also to RAM Memory Backend
> in order to allow remapping parts of the guest RAM
> to different host virtual addresses. This is needed
> by the RDMA devices in order to remap non-contiguous
> QEMU virtual addresses to a contiguous virtual address range.
>
> Moved the "share" flag to the Host Memory base class,
> modified phys_mem_alloc to include the new parameter
> and a new interface memory_region_init_ram_shared_nomigrate.
>
> There are no functional changes if the new flag is not used.
>
> Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Code looks correct, so:
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
But later can we please stop the explosion of memory_init_ram*()
functions and replace them with a single function with a flags
parameter?
--
Eduardo
next prev parent reply other threads:[~2018-02-08 21:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-01 20:55 [Qemu-devel] [PATCH V9 0/4] hw/pvrdma: PVRDMA device implementation Marcel Apfelbaum
2018-02-01 20:55 ` [Qemu-devel] [PATCH V9 1/4] mem: add share parameter to memory-backend-ram Marcel Apfelbaum
2018-02-08 21:00 ` Eduardo Habkost [this message]
2018-02-12 18:19 ` Marcel Apfelbaum
2018-02-01 20:55 ` [Qemu-devel] [PATCH V9 2/4] docs: add pvrdma device documentation Marcel Apfelbaum
2018-02-01 20:55 ` [Qemu-devel] [PATCH V9 3/4] pvrdma: initial implementation Marcel Apfelbaum
2018-02-02 12:08 ` Dotan Barak
2018-02-02 12:27 ` Marcel Apfelbaum
2018-02-01 20:55 ` [Qemu-devel] [PATCH V9 4/4] MAINTAINERS: add entry for hw/rdma Marcel Apfelbaum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180208210035.GK13301@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=cohuck@redhat.com \
--cc=dotanb75@yahoo.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yuval.shaia@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).