All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Andres Lagar-Cavilla <andres@lagarcavilla.org>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: libxl/xl memory paging/sharing/ballooning/etc proposal.
Date: Thu, 15 Mar 2012 16:14:25 +0100	[thread overview]
Message-ID: <20120315151424.GA7421@aepfle.de> (raw)
In-Reply-To: <1331805673.26979.59.camel@zakaz.uk.xensource.com>

On Thu, Mar 15, Ian Campbell wrote:


> low level libxl interface
> -------------------------
> 
> It is expected that toolstacks primary user interface will be via the
> above high level interface. The lowlevel interface is provided in order
> to allow implementation of memory policy actors using libxl and to allow
> toolstacks to optionally provide an interface for expert users to shoot
> themselves in the foot with ( ;-) )
> 
> libxl_domain_(set|get)_balloon_target(ctx, domid, target_memkb, relative, enforce):
>         
>         Read/write /local/domain/X/memory/target to control the in guest
>         balloon driver. This is basically the existing
>         libxl_domain_memory_target with a new name
>                 
>         As before this is a request to the guest balloon driver to try
>         and use this much actual RAM. This is an existing guest
>         interface which we cannot change.
> 
> libxl_domain_(set|get)_paging_target(ctx, domid, target_memkb, relative)
> 
>         Read/write whichever XS path controls the xenpaging daemon's
>         target. (Olaf?). I think this path should not be
>         under /local/domain since it should not be guest visible
>         (probably it already isn't).

Its currently /local/domain/X/memory/target-tot_pages, but can still be
changed if needed.

>         It is an error to call this for a PV guest (ERROR_??) for a
>         guest which does not have paging enabled
>         (ERROR_PAGING_DISABLED?).

Error is ok.

> libxl_domain_(enable|disable)_paging(ctx, domid)
> 
>         Idempotently starts or stops the xenpaging daemon for a domain.

In what context should this run?
In case of 'xl $enable_paging' it would be good if this acts as a
trigger for the xl monitoring process, so that the pager is a child of
the monitoring process.

Olaf

  parent reply	other threads:[~2012-03-15 15:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15 10:01 libxl/xl memory paging/sharing/ballooning/etc proposal Ian Campbell
2012-03-15 14:12 ` Andres Lagar-Cavilla
2012-03-15 14:35   ` Ian Campbell
2012-03-15 14:40     ` Andres Lagar-Cavilla
2012-03-15 14:47       ` Ian Campbell
2012-03-15 14:50         ` Andres Lagar-Cavilla
2012-03-15 15:26   ` Olaf Hering
2012-03-15 15:30     ` Ian Campbell
2012-03-15 15:42       ` Olaf Hering
2012-03-15 15:47         ` Ian Campbell
2012-03-15 16:00           ` Olaf Hering
2012-03-15 17:11             ` Ian Campbell
2012-03-15 15:14 ` Olaf Hering [this message]
2012-03-15 15:29   ` Ian Campbell
2012-03-19 16:10 ` Ian Jackson
2012-03-19 16:17   ` Andres Lagar-Cavilla
2012-03-19 16:30   ` Ian Campbell

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=20120315151424.GA7421@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andres@lagarcavilla.org \
    --cc=xen-devel@lists.xen.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.