|Subject:||Re: [Qemu-discuss] Memory host - guest sharing|
|Date:||Fri, 5 Sep 2014 15:44:18 +0200|
Hi,this is one of possible solution but we can't use pci but sysbus instead.So there will be need to rewrite IVSHMEM.PozdrawiamSławomir Kowalewski2014-09-03 11:47 GMT+02:00 Tetsuya.Mukawa <address@hidden>:Hi Sławomir,
If you are using linux, how about using IVSHMEM?
You may be able to get physical memory from hugetlbfs on host, then
export it as pci memory to a guest.
Then, mmap it from user application of the guest.
(2014/09/03 18:19), Sławomir Kowalewski wrote:
> I have application on host system that using part of RAM to create
> some kind of tables. I need to give access to this memory to
> application that is running on guest system.
> What is the easiest way to do it?
> I came up with two ideas.
> 1. Write driver for Qemu and kernel that will use sysbus to get
> addresses from host and map memory into file on guest.
> 2. Map part of memory into file on host and then use libvirt XML
> configuration file to pass created file into guest system.
> Do you have better ideas or know why one of mine will not work?
> Best Regards
> Sławomir Kowalewski
|[Prev in Thread]||Current Thread||[Next in Thread]|