All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Peter Feiner <peter@gridcentric.ca>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] pc: map pc ram from user-specified file
Date: Sun, 27 Nov 2011 23:43:42 +0100	[thread overview]
Message-ID: <87ipm5uqxt.fsf@trasno.mitica> (raw)
In-Reply-To: <CADiFPYJSjeXf_zO756vUcn6UMELQHYeW9kmCZ+ynDJstSuFHyQ@mail.gmail.com> (Peter Feiner's message of "Fri, 25 Nov 2011 14:02:39 -0500")

Peter Feiner <peter@gridcentric.ca> wrote:
> Enables providing a backing file for the PC's ram. The file is specified by the
> new -pcram-file option. The file is mmap'd shared, so the RAMBlock that it backs
> doesn't need to be saved by vm_save / migration.
>
> Signed-off-by: Peter Feiner <peter@gridcentric.com>

Hi

Do you have any performance number for this?  And examples on how your
are using it?

> +#ifdef __linux__
> +    new_block->host = mem_file_ram_alloc(new_block, size);
> +    if (new_block->host) {
> +        assert(!host);
> +    } else
> +#endif
>      if (host) {

This test is (at least suspicious).  Shouldn't we check first if host
is not NULL? (Not that I fully understand that part)

Thanks, Juan.

  reply	other threads:[~2011-11-27 22:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-25 19:02 [Qemu-devel] [PATCH] pc: map pc ram from user-specified file Peter Feiner
2011-11-27 22:43 ` Juan Quintela [this message]
2011-12-01 16:46   ` Peter Feiner
2011-12-08 22:24     ` Peter Feiner
2011-12-19 18:26       ` Peter Feiner
2011-12-19 19:15         ` Anthony Liguori

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=87ipm5uqxt.fsf@trasno.mitica \
    --to=quintela@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=peter@gridcentric.ca \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.