All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: query the page type of a hvm page from within a hvm guest
Date: Thu, 7 Apr 2011 12:12:02 +0200	[thread overview]
Message-ID: <20110407101202.GA31553@aepfle.de> (raw)


Now that kdump works with pv-on-hvm guests, one issue remains:
The balloon driver in the guest frees guest pages and marks them as
mmio. When the kernel crashes and the crash kernel attempts to read the
oldmem via /proc/vmcore a read from ballooned pages will generate 100%
load in dom0 because Xen asks qemu-dm for the page content. Since the
reads come in as 8byte requests each ballooned page is tried 512 times.

If the crash kernel had a way to ask the hypervisor wether a specific
guest gfn is ballooned and thus backed by ram, the load issue would not
happen.  There seems to be no interface to query the type of a guest gfn
from within the hvm guest.

Any ideas how to implement that?
I see HVMOP_set_mem_type, but no HVMOP_get_mem_type.


Olaf

             reply	other threads:[~2011-04-07 10:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-07 10:12 Olaf Hering [this message]
2011-04-07 11:16 ` query the page type of a hvm page from within a hvm guest Tim Deegan
2011-05-02  9:17   ` Olaf Hering
2011-05-02  9:43     ` Jan Beulich
2011-05-02  9:56       ` Olaf Hering
2011-05-02 16:27       ` Olaf Hering
2011-05-03  7:49         ` Jan Beulich

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=20110407101202.GA31553@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=xen-devel@lists.xensource.com \
    /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.