From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Lu, Jingdong" <jingdong.lu@intel.com>
Cc: qemu-devel@nongnu.org
Subject: Re: Shared memory between host and guest
Date: Wed, 10 Aug 2022 16:03:37 +0100 [thread overview]
Message-ID: <87h72kjfzv.fsf@linaro.org> (raw)
In-Reply-To: <MN0PR11MB61090F118B8D3977D0EC03FEF0659@MN0PR11MB6109.namprd11.prod.outlook.com>
"Lu, Jingdong" <jingdong.lu@intel.com> writes:
> Hi experts,
>
>
>
> I have some basic questions regarding shared memory between host and guest based on QEMU/KVM:
>
>
>
> 1, Can host and guest share the same block of physical memory? Ivshmem? Is it continuous physical memory?
>
>
>
> 2, More specifically, is there any way to support the following operations?
>
> 1 Guest starts.
>
> 2 Host side allocates one block of physical memory like 2MB.
>
> 3 Host side adds this memory to running guest memory mapping.
With support for pci hotplug you can add/remove virtio-pmem blocks to
the guest.
>
> 4 Both of host and guest can access this shared memory.
Yes - you can back the memory with a file. See:
https://qemu.readthedocs.io/en/latest/system/devices/virtio-pmem.html
>
>
>
> Best Regards,
>
> Jingdong
--
Alex Bennée
prev parent reply other threads:[~2022-08-10 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 10:45 Shared memory between host and guest Lu, Jingdong
2022-08-10 15:03 ` Alex Bennée [this message]
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=87h72kjfzv.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=jingdong.lu@intel.com \
--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 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.