From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: Cam Macdonell <cam@cs.ualberta.ca>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH v7 0/4] Inter-VM shared memory device
Date: Mon, 26 Jul 2010 15:41:24 -0500 [thread overview]
Message-ID: <4C4DF2F4.1070109@codemonkey.ws> (raw)
In-Reply-To: <4C4DEFBD.9000700@redhat.com>
On 07/26/2010 03:27 PM, Avi Kivity wrote:
> On 07/26/2010 10:41 PM, Anthony Liguori wrote:
>>
>> kvm_set_irqfd() is fine, it just needs to be ported. It should be
>> there due to vhost though?
>>
>
> It should, but isn't.
>
>> qemu_ram_map() is more difficult. I would think the better approach
>> would be to invert things. Instead of a "give me a stable mapping
>> that is shared atomically with a guest to this ram region", I would
>> go with "go create a ram region with this preallocated memory" and
>> then just assume that afterwards, you can make use of it and it's
>> exposed as atomic memory.
>
> Isn't that what qemu_ram_map() does?
Yup, name is misleading. I thought it was the equivalent of
cpu_physical_memory_map() but took a ram_addr_t instead of a target_ulong.
Regards,
Anthony Liguori
>
>> ram_addr_t qemu_ram_map(DeviceState *dev, const char *name,
>> ram_addr_t size, void *host)
>
> 'host' is your "this preallocated memory", no?
>
next prev parent reply other threads:[~2010-07-26 20:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 20:23 [Qemu-devel] [PATCH v7 0/4] Inter-VM shared memory device Cam Macdonell
2010-06-15 20:23 ` [Qemu-devel] [PATCH v7 1/4] Device specification for shared memory PCI device Cam Macdonell
2010-06-15 20:23 ` [Qemu-devel] [PATCH v7 2/4] Add function to assign ioeventfd to MMIO Cam Macdonell
2010-06-15 20:23 ` [Qemu-devel] [PATCH v7 3/4] Support marking a device as non-migratable Cam Macdonell
2010-06-15 20:23 ` [Qemu-devel] [PATCH v7 4/4] Inter-VM shared memory PCI device Cam Macdonell
2010-06-23 15:57 ` [Qemu-devel] [PATCH v7 RESEND " Cam Macdonell
2010-07-08 21:08 ` Cam Macdonell
2010-07-08 23:45 ` [Qemu-devel] " David S. Ahern
2010-07-02 18:12 ` [Qemu-devel] Re: [PATCH v7 0/4] Inter-VM shared memory device Cam Macdonell
2010-07-26 13:48 ` [Qemu-devel] " Anthony Liguori
2010-07-26 19:01 ` Cam Macdonell
2010-07-26 19:41 ` Anthony Liguori
2010-07-26 20:27 ` Avi Kivity
2010-07-26 20:41 ` Anthony Liguori [this message]
2010-07-26 21:46 ` Cam Macdonell
2010-07-26 22:18 ` Anthony Liguori
2010-07-26 19:51 ` Avi Kivity
2010-07-26 20:03 ` Cam Macdonell
2010-07-26 20:11 ` Avi Kivity
2010-07-26 20:16 ` Cam Macdonell
2010-07-26 20:20 ` Avi Kivity
2010-07-26 20:05 ` Anthony Liguori
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=4C4DF2F4.1070109@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=cam@cs.ualberta.ca \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/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).