qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Mulyadi Santosa <mulyadi.santosa@gmail.com>
Cc: Dennis <dennis@satanclaus.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Virtual memory question
Date: Mon, 9 Aug 2010 09:17:38 +0100	[thread overview]
Message-ID: <AANLkTikv_Bi7uOX4GZh+de9XTcQMs4F8PdUJAZrbZsVt@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimDgoHU-jsEKX=v8RYz5af0b=4ihJ2KV-QgKyKS@mail.gmail.com>

On Mon, Aug 9, 2010 at 7:15 AM, Mulyadi Santosa
<mulyadi.santosa@gmail.com> wrote:
> On Mon, Aug 9, 2010 at 03:33, Dennis <dennis@satanclaus.com> 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

  reply	other threads:[~2010-08-09  8:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-08 20:33 [Qemu-devel] Virtual memory question Dennis
2010-08-09  5:01 ` C K Kashyap
2010-08-09 18:49   ` Dennis
2010-08-09 19:41     ` Stefan Hajnoczi
2010-08-09 19:54       ` Dennis
2010-08-09  6:15 ` Mulyadi Santosa
2010-08-09  8:17   ` Stefan Hajnoczi [this message]
2010-08-09 16:46     ` Michael Roth
2010-08-09 18:49       ` Michael Roth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikv_Bi7uOX4GZh+de9XTcQMs4F8PdUJAZrbZsVt@mail.gmail.com \
    --to=stefanha@gmail.com \
    --cc=dennis@satanclaus.com \
    --cc=mulyadi.santosa@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).