* Shared memory between host and guest
@ 2022-08-10 10:45 Lu, Jingdong
2022-08-10 15:03 ` Alex Bennée
0 siblings, 1 reply; 2+ messages in thread
From: Lu, Jingdong @ 2022-08-10 10:45 UTC (permalink / raw)
To: qemu-devel@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
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.
4. Both of host and guest can access this shared memory.
Best Regards,
Jingdong
[-- Attachment #2: Type: text/html, Size: 4539 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Shared memory between host and guest
2022-08-10 10:45 Shared memory between host and guest Lu, Jingdong
@ 2022-08-10 15:03 ` Alex Bennée
0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2022-08-10 15:03 UTC (permalink / raw)
To: Lu, Jingdong; +Cc: qemu-devel
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-10 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 10:45 Shared memory between host and guest Lu, Jingdong
2022-08-10 15:03 ` Alex Bennée
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).