|
From: | Sławomir Kowalewski |
Subject: | Re: [Qemu-discuss] Memory host - guest sharing |
Date: | Wed, 3 Sep 2014 12:06:24 +0200 |
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.
Thanks,
Tetsuya
(2014/09/03 18:19), Sławomir Kowalewski wrote:
> Hi,
>
> 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] |