All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: How to determine memory size in HVM
Date: Mon, 08 Jun 2009 15:32:14 +0100	[thread overview]
Message-ID: <C652DF7E.D024%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D016DD660@trantor>

Hypercall XENMEM_current_reservation.

*But* be aware I'm not sure how that interacts with e.g., virtual
framebuffer memory. Well, actually I know it will include the virtual
framebuffer memory which is not actually really part of normal guest RAM.
The question will be: does the xenstore 'target' value also include it? I
guess you'll have to compare to create a HVM guest and compare the two to
decide.

 -- Keir

On 08/06/2009 15:12, "James Harper" <james.harper@bendigoit.com.au> wrote:

> How can I tell how much memory my VM has under HVM? I want to have
> something concrete to compare the 'target' value in xenstore to for
> ballooning so I am reluctant to ask Windows the question. There seems to
> be a nr_pages in start_info, but HVM doesn't have that...
> 
> My reason for not wanting to ask Windows how much memory is that if it
> says we have 3.5G (reasonable without PAE) and xenstore says we have 4G
> then I'm going to have to fudge things a bit to know whether we are
> ballooning up or down etc.
> 
> I could just read the initial target value from xenstore on boot, but
> even that could be changed before my drivers get to it.
> 
> Thanks
> 
> James
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2009-06-08 14:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-08 14:12 How to determine memory size in HVM James Harper
2009-06-08 14:32 ` Keir Fraser [this message]
2009-06-09  1:59   ` James Harper
2009-06-09  5:38     ` Keir Fraser
2009-06-10 10:47       ` George Dunlap
2009-06-09  7:42   ` James Harper
2009-06-10  8:24     ` Keir Fraser
2009-06-10  9:39       ` James Harper
2009-06-10 13:07         ` Keir Fraser
2009-06-10 13:28           ` James Harper
2009-06-10 13:54             ` Keir Fraser

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=C652DF7E.D024%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --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.