xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org, Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH] libxl: create PVH guests with max memory assigned
Date: Tue, 5 Aug 2014 10:34:48 +0100	[thread overview]
Message-ID: <53E0A538.608@citrix.com> (raw)
In-Reply-To: <1407228940.2120.22.camel@kazak.uk.xensource.com>

On 05/08/14 09:55, Ian Campbell wrote:
> On Thu, 2014-07-17 at 13:02 +0200, Roger Pau Monne wrote:
> 
> Sorry for the delay replying, this somehow slipped through my net.
> 
>> Since PVH guests are very similar to HVM guests in terms of memory
>> management, start the guest with the maximum memory assigned and let
>> it balloon down.
> 
> Both before and after this patch an HVM guest would be launched with
> target_memkb though, not max_memkb (presumably relying on PoD), so the
> comparison made in the commit log doesn't tally to me given that you are
> making PVH (and only PVH) use max_memkb.
> 
> This patch seems to make it impossible to boot a PVH guest
> pre-ballooned. It only appears to "work" because I presume you actually
> have enough RAM to satisfy maxmem for a short time, but that defeats the
> purpose.
> 
> Either a PVH guest is similar enough to an HVM guest in this area to
> make use of PoD for early ballooning *or* it is similar enough to a PV
> guest that it can use the PV kernel entry point to get in early enough
> to initialise the balloon driver (via the XEN_EXTRA_MEM_MAX_REGIONS
> stuff, I presume) before the kernels normal init sequence can start
> mucking with that memory.

A decision on which needs to be made and /documented/.  If the PV-like
approach is taken, I won't be accepting any Linux patches without such
documentation.

I now regret accepting the PVH support in Linux without a clear
specification of what PVH actually is.

David

  reply	other threads:[~2014-08-05  9:34 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17 11:02 [PATCH] libxl: create PVH guests with max memory assigned Roger Pau Monne
2014-07-18 16:49 ` Konrad Rzeszutek Wilk
2014-07-18 17:00   ` Roger Pau Monné
2014-07-18 17:11     ` Andrew Cooper
2014-07-21 10:16       ` Ian Campbell
2014-07-18 20:53     ` Konrad Rzeszutek Wilk
2014-08-05  8:57       ` Ian Campbell
2014-07-18 17:19   ` Olaf Hering
2014-07-18 19:33     ` Konrad Rzeszutek Wilk
2014-08-01 15:34 ` Roger Pau Monné
2014-08-04 18:44   ` Konrad Rzeszutek Wilk
2014-08-05  8:55 ` Ian Campbell
2014-08-05  9:34   ` David Vrabel [this message]
2014-08-05 11:08     ` Roger Pau Monné
2014-08-05 14:06       ` Ian Campbell
2014-08-05 14:10       ` George Dunlap
2014-08-05 21:22         ` Mukesh Rathor
2014-08-05 14:18       ` Is: PVH - how to solve maxmem != memory scenario? Was:Re: " Konrad Rzeszutek Wilk
2014-08-05 14:36         ` Jan Beulich
2014-08-05 14:48           ` Konrad Rzeszutek Wilk
2014-08-05 15:12             ` Jan Beulich
2014-08-05 15:41               ` Konrad Rzeszutek Wilk
2014-08-05 15:05         ` David Vrabel
2014-08-05 15:40           ` Konrad Rzeszutek Wilk
2014-08-05 15:51             ` Jan Beulich
2014-08-05 15:56               ` Konrad Rzeszutek Wilk
2014-08-05 16:07                 ` Jan Beulich
2014-08-05 19:45           ` Tim Deegan
2014-08-05 21:36         ` Mukesh Rathor

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=53E0A538.608@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.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).