[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Virtual memory question
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] Virtual memory question |
Date: |
Mon, 9 Aug 2010 09:17:38 +0100 |
On Mon, Aug 9, 2010 at 7:15 AM, Mulyadi Santosa
<address@hidden> wrote:
> On Mon, Aug 9, 2010 at 03:33, Dennis <address@hidden> wrote:
>> Hi,
>>
>> I've been looking at the qemu source code but couldn't find anything
>> that would suit my needs.
>> Basically I'm looking for a way to use a file on disk as physical
>> memory inside Qemu.
>
> Once when I did code adventure in Qemu, I conclude Qemu create
> temporary file (possibly using mktemp()) and mmap it, thus creating
> "illusion" file as RAM for guest.
>
> So, I think it's already done. It's just not configurable through
> command parameter
Use -mem-path /path/to/directory. It's used for hugetlbfs support on
Linux but it should work on a normal filesystem too.
Stefan