xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v15] claim and its friends for allocating multiple self-ballooning guests.
@ 2013-04-10 19:59 Konrad Rzeszutek Wilk
  2013-04-10 19:59 ` [PATCH 1/6] xc: use XENMEM_claim_pages hypercall during guest creation Konrad Rzeszutek Wilk
                   ` (6 more replies)
  0 siblings, 7 replies; 36+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-04-10 19:59 UTC (permalink / raw)
  To: xen-devel, ian.campbell, ian.jackson; +Cc: George.Dunlap, dan.magenheimer

Changes since v14:
 - Added 'xl claims' call. Reintroduced the 'outstanding_pages' patches for libxc and libxl.
 - Broke up one of the patches line-lengths.
Changes since v13:
 - Addressed Ian Jacksons' comments - added extra docs, redid the parsing
   of claim_mode.
 - s/global_claim_mode/claim_mode/
 - Dropped xend patch
 - Dropped 'outstanding_pages' patches for libxc and libxl.
Changes since v12:
 - Addressed Ian Campbells' comments.

The patch (mmu: Introduce XENMEM_claim_pages (subop of memory ops) is already
in the hypervisor and described in details the problem/solution/alternative
solutions. This builds upon that new hypercall to expand the toolstack to
utilize it.

The patches follow the normal code-flow - the patch to implement the two 
hypercalls: XENMEM_claim_pages and XENMEM_get_outstanding_pages.

Then the patches to utilize them in the libxc. The hypercall's are only utilized
if the toolstack (libxl) sets the claim_mode to 1 (true).

Then the toolstack (libxl + xl) patches. They revolve around three different 
changes:
 1). Add 'claim_mode=0|1' global configuration value that determines
     whether the claim hypercall should be used as part of guest creation.
 2). As part of  'xl info' output how many pages are claimed by different guests.
     This is more of a diagnostic patch.
 3). New 'xl claims' provides per domain outstanding claim value along with
     the guest currently populated count.

These patches are also visible at:

  git://xenbits.xen.org/people/konradwilk/xen.git claim.v15

 docs/man/xl.conf.pod.5         | 41 ++++++++++++++++++++++++++++
 docs/man/xl.pod.1              | 27 +++++++++++++++++++
 tools/examples/xl.conf         |  6 +++++
 tools/libxc/xc_dom.h           |  1 +
 tools/libxc/xc_dom_x86.c       | 12 +++++++++
 tools/libxc/xc_domain.c        | 31 +++++++++++++++++++++
 tools/libxc/xc_hvm_build_x86.c | 23 +++++++++++++---
 tools/libxc/xenctrl.h          |  7 +++++
 tools/libxc/xenguest.h         |  2 ++
 tools/libxl/libxl.c            | 15 +++++++++++
 tools/libxl/libxl.h            |  2 +-
 tools/libxl/libxl_create.c     |  2 ++
 tools/libxl/libxl_dom.c        |  3 ++-
 tools/libxl/libxl_types.idl    |  3 ++-
 tools/libxl/xl.c               |  5 ++++
 tools/libxl/xl.h               |  2 ++
 tools/libxl/xl_cmdimpl.c       | 61 ++++++++++++++++++++++++++++++++++++++++--
 tools/libxl/xl_cmdtable.c      |  6 +++++
 18 files changed, 240 insertions(+), 9 deletions(-)

Dan Magenheimer (2):
      xc: use XENMEM_claim_pages hypercall during guest creation.
      xc: export outstanding_pages value in xc_dominfo structure.

Konrad Rzeszutek Wilk (4):
      xl: Implement XENMEM_claim_pages support via 'claim_mode' global config
      xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf)
      xl: export 'outstanding_pages' value from xcinfo
      xl: 'xl claims' print outstanding per domain claims if enabled (claim_mode=1 in xl.conf)

^ permalink raw reply	[flat|nested] 36+ messages in thread
* [PATCH v13] claim and its friends for allocating multiple self-ballooning guests
@ 2013-03-27 20:55 Konrad Rzeszutek Wilk
  2013-03-27 20:55 ` [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 36+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-03-27 20:55 UTC (permalink / raw)
  To: xen-devel, ian.campbell, ian.jackson, dan.magenheimer

The patch (mmu: Introduce XENMEM_claim_pages (subop of memory ops) is already 
in the hypervisor and described in details the problem/solution/alternative solutions.
This builds upon that new hypercall to expand the toolstack to use it.

The patches follow the normal code-flow - the patch to implement the two 
hypercalls: XENMEM_claim_pages and XENMEM_get_outstanding_pages.

Then the patches to utilize them in the libxc. The hypercall's are only utilized
if the toolstack (libxl) sets the claim_mode to 1 (true).

Then the toolstack (libxl + xl) patches. They revolve around two different 
changes:
 1). Add 'claim_mode=0|1' global configuration value that determines
     whether the claim hypercall should be used as part of guest creation.
 2). As part of  'xl info' output how many pages are claimed by different guests.
     This is more of a diagnostic patch.

iNote that these two pages:
 [PATCH 4/6] xc: export outstanding_pages value in xc_dominfo
 [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo

could very well be squashed together. I don't know whather that is OK with
the maintainers or not so I left them as two seperate ones. I am OK with
them being squashed.

These patches are also visible at:

  git://xenbits.xen.org/people/konradwilk/xen.git claim.v13


 docs/man/xl.conf.pod.5               | 41 ++++++++++++++++++++++++++++++++++++
 tools/examples/xend-config.sxp       |  5 +++++
 tools/examples/xl.conf               |  6 ++++++
 tools/libxc/xc_dom.h                 |  1 +
 tools/libxc/xc_dom_x86.c             | 12 +++++++++++
 tools/libxc/xc_domain.c              | 31 +++++++++++++++++++++++++++
 tools/libxc/xc_hvm_build_x86.c       | 23 ++++++++++++++++----
 tools/libxc/xenctrl.h                |  7 ++++++
 tools/libxc/xenguest.h               |  2 ++
 tools/libxl/libxl.c                  | 13 ++++++++++++
 tools/libxl/libxl.h                  |  2 +-
 tools/libxl/libxl_dom.c              |  3 ++-
 tools/libxl/libxl_types.idl          |  3 ++-
 tools/libxl/xl.c                     |  5 +++++
 tools/libxl/xl.h                     |  1 +
 tools/libxl/xl_cmdimpl.c             | 26 +++++++++++++++++++++++
 tools/python/xen/lowlevel/xc/xc.c    | 29 ++++++++++++++++---------
 tools/python/xen/xend/XendOptions.py |  8 +++++++
 tools/python/xen/xend/balloon.py     |  4 ++++
 tools/python/xen/xend/image.py       | 13 +++++++++---
 20 files changed, 215 insertions(+), 20 deletions(-)


Dan Magenheimer (2):
      xc: use XENMEM_claim_pages hypercall during guest creation.
      xc: export outstanding_pages value in xc_dominfo structure.

Konrad Rzeszutek Wilk (4):
      xl: Implement XENMEM_claim_pages support via 'claim_mode' global config
      xend: Implement XENMEM_claim_pages support via 'claim-mode' global config
      xl: export 'outstanding_pages' value from xcinfo
      xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf)

^ permalink raw reply	[flat|nested] 36+ messages in thread
* [PATCH v11] claim and its friends for allocating multiple self-ballooning guests.
@ 2013-03-11 14:20 Konrad Rzeszutek Wilk
  2013-03-11 14:20 ` [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 36+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-03-11 14:20 UTC (permalink / raw)
  To: xen-devel, keir, tim, konrad

[This is mostly a copy-n-paste from the cover letter from v10 of the patches]

Two of these patches (Dan's) have been posted in the past, but I took it upon
myself to expand them and address some of the concerns and also continue the
discussion around them. I believe most people have been roped in the email
conversation about this and know what these patches are for. The first patch
(mmu: Introduce XENMEM_claim_pages (subop of memory ops) has a good blurb
about the problem/solution/alternative solutions.

The patches follow the normal code-flow - the patch to implement the two hypercalls:
XENMEM_claim_pages and XENMEM_get_outstanding_pages.

Then the patches to utilize them in the libxc. The hypercall's are only utilized
if the toolstack (libxl) sets the claim_mode to anything but zero.

Then the toolstack (libxl + xl) patches. They revolve around two different changes:
 1). Add 'claim_mode=[off|on]' global configuration value that determines
     whether the claim hypercall should be used as part of guest creation.
 2). Add an extra parameter -c to the 'xl info' to provide the output of how many
     pages are claimed by different guests. This is more of a diagnostic patch.

That is it.

 docs/man/xl.conf.pod.5         |  25 +++++++++
 tools/examples/xl.conf         |   5 ++
 tools/libxc/xc_dom.h           |   1 +
 tools/libxc/xc_dom_x86.c       |  12 +++++
 tools/libxc/xc_domain.c        |  25 +++++++++
 tools/libxc/xc_hvm_build_x86.c |  17 ++++++
 tools/libxc/xenctrl.h          |   7 +++
 tools/libxc/xenguest.h         |   2 +
 tools/libxl/libxl.c            |  18 +++++++
 tools/libxl/libxl.h            |   3 ++
 tools/libxl/libxl_dom.c        |   3 +-
 tools/libxl/libxl_types.idl    |  12 ++++-
 tools/libxl/xl.c               |   5 ++
 tools/libxl/xl.h               |   1 +
 tools/libxl/xl_cmdimpl.c       |  34 ++++++++++--
 tools/libxl/xl_cmdtable.c      |   4 +-
 tools/libxl/xl_sxp.c           |   1 +
 xen/common/domain.c            |   1 +
 xen/common/domctl.c            |   1 +
 xen/common/memory.c            |  33 ++++++++++++
 xen/common/page_alloc.c        | 116 ++++++++++++++++++++++++++++++++++++++++-
 xen/include/public/domctl.h    |   3 +-
 xen/include/public/memory.h    |  35 ++++++++++++-
 xen/include/xen/mm.h           |   3 ++
 xen/include/xen/sched.h        |   1 +
 25 files changed, 356 insertions(+), 12 deletions(-)


Dan Magenheimer (3):
      mmu: Introduce XENMEM_claim_pages (subop of memory ops).
      xc: use XENMEM_claim_pages during guest creation.
      xc: XENMEM_claim_pages outstanding claims value

Konrad Rzeszutek Wilk (3):
      xl: Implement XENMEM_claim_pages support via 'claim_mode' global config
      xl: export 'outstanding_pages' value from xcinfo
      xl: 'xl list' supports '-c' for global claim information.

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2013-04-16 10:58 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 19:59 [PATCH v15] claim and its friends for allocating multiple self-ballooning guests Konrad Rzeszutek Wilk
2013-04-10 19:59 ` [PATCH 1/6] xc: use XENMEM_claim_pages hypercall during guest creation Konrad Rzeszutek Wilk
2013-04-12 15:16   ` Ian Jackson
2013-04-10 19:59 ` [PATCH 2/6] xl: Implement XENMEM_claim_pages support via 'claim_mode' global config Konrad Rzeszutek Wilk
2013-04-12 15:17   ` Ian Jackson
2013-04-12 17:18   ` Ian Jackson
2013-04-12 18:03     ` Ian Jackson
2013-04-12 18:04       ` Ian Jackson
2013-04-12 19:51       ` Konrad Rzeszutek Wilk
2013-04-12 20:07         ` Konrad Rzeszutek Wilk
2013-04-15  9:26           ` Ian Campbell
2013-04-15  9:34       ` Ian Campbell
2013-04-15 23:20         ` konrad wilk
2013-04-16  8:50           ` Ian Campbell
2013-04-10 19:59 ` [PATCH 3/6] xl: 'xl info' print outstanding claims if enabled (claim_mode=1 in xl.conf) Konrad Rzeszutek Wilk
2013-04-12 15:18   ` Ian Jackson
2013-04-10 19:59 ` [PATCH 4/6] xc: export outstanding_pages value in xc_dominfo structure Konrad Rzeszutek Wilk
2013-04-12 15:18   ` Ian Jackson
2013-04-10 19:59 ` [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo Konrad Rzeszutek Wilk
2013-04-12 15:19   ` Ian Jackson
2013-04-10 19:59 ` [PATCH 6/6] xl: 'xl claims' print outstanding per domain claims if enabled (claim_mode=1 in xl.conf) Konrad Rzeszutek Wilk
2013-04-10 20:08   ` Konrad Rzeszutek Wilk
2013-04-12 15:24   ` Ian Jackson
2013-04-12 16:49     ` Konrad Rzeszutek Wilk
2013-04-12 17:10       ` Ian Jackson
2013-04-12 10:55 ` [PATCH v15] claim and its friends for allocating multiple self-ballooning guests George Dunlap
2013-04-12 13:44   ` Konrad Rzeszutek Wilk
2013-04-12 17:20     ` Ian Jackson
2013-04-16 10:19       ` George Dunlap
2013-04-16 10:57         ` Ian Jackson
2013-04-16 10:58           ` George Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2013-03-27 20:55 [PATCH v13] " Konrad Rzeszutek Wilk
2013-03-27 20:55 ` [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo Konrad Rzeszutek Wilk
2013-03-28 16:44   ` Ian Jackson
2013-03-29 20:07     ` Konrad Rzeszutek Wilk
2013-03-11 14:20 [PATCH v11] claim and its friends for allocating multiple self-ballooning guests Konrad Rzeszutek Wilk
2013-03-11 14:20 ` [PATCH 5/6] xl: export 'outstanding_pages' value from xcinfo Konrad Rzeszutek Wilk
2013-03-13 10:44   ` Ian Campbell

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).