qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared memory between host and guest


From: Alex Bennée
Subject: Re: Shared memory between host and guest
Date: Wed, 10 Aug 2022 16:03:37 +0100
User-agent: mu4e 1.8.8; emacs 28.1.91

"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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]