All of lore.kernel.org
 help / color / mirror / Atom feed
* [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 1/6] mmu: Introduce XENMEM_claim_pages (subop of memory ops) Konrad Rzeszutek Wilk
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ 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] 23+ messages in thread
* [PATCH v10] claim and its friends for allocating multiple self-ballooning guests.
@ 2013-03-04 17:47 Konrad Rzeszutek Wilk
  2013-03-04 17:47 ` [PATCH 6/6] xl: 'xl list' supports '-c' for global claim information Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 23+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-03-04 17:47 UTC (permalink / raw)
  To: xen-devel, keir, keir.xen; +Cc: dan.magenheimer

Hey,

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_unclaimed_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|tmem]' 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.

Dan Magenheimer (3):
      mmu: Introduce XENMEM_claim_pages (subop of memory ops).
      xc: use XENMEM_claim_pages during guest creation.
      xc: XENMEM_claim_pages claimed but not possesed value.

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

 docs/man/xl.conf.pod.5         |  30 ++++++++++
 tools/examples/xl.conf         |   5 ++
 tools/libxc/xc_dom.h           |   1 +
 tools/libxc/xc_dom_x86.c       |  12 ++++
 tools/libxc/xc_domain.c        |  26 +++++++++
 tools/libxc/xc_hvm_build_x86.c |  17 ++++++
 tools/libxc/xenctrl.h          |   8 +++
 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    |  13 ++++-
 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            |  31 ++++++++++
 xen/common/page_alloc.c        | 126 ++++++++++++++++++++++++++++++++++++++++-
 xen/include/public/domctl.h    |   3 +-
 xen/include/public/memory.h    |  47 ++++++++++++++-
 xen/include/xen/mm.h           |   4 ++
 xen/include/xen/sched.h        |   1 +
 25 files changed, 385 insertions(+), 12 deletions(-)

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

end of thread, other threads:[~2013-03-18 13:10 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 1/6] mmu: Introduce XENMEM_claim_pages (subop of memory ops) Konrad Rzeszutek Wilk
2013-03-11 14:20 ` [PATCH 2/6] xc: use XENMEM_claim_pages during guest creation Konrad Rzeszutek Wilk
2013-03-13 10:23   ` Ian Campbell
2013-03-13 14:42     ` Konrad Rzeszutek Wilk
2013-03-13 14:46       ` Ian Campbell
2013-03-11 14:20 ` [PATCH 3/6] xl: Implement XENMEM_claim_pages support via 'claim_mode' global config Konrad Rzeszutek Wilk
2013-03-13 10:41   ` Ian Campbell
2013-03-13 14:57     ` Konrad Rzeszutek Wilk
2013-03-13 15:05       ` Ian Campbell
2013-03-11 14:20 ` [PATCH 4/6] xc: XENMEM_claim_pages outstanding claims value Konrad Rzeszutek Wilk
2013-03-13 10:43   ` Ian Campbell
2013-03-13 14:57     ` 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
2013-03-11 14:20 ` [PATCH 6/6] xl: 'xl list' supports '-c' for global claim information Konrad Rzeszutek Wilk
2013-03-13 10:51   ` Ian Campbell
2013-03-13 15:02     ` Konrad Rzeszutek Wilk
2013-03-13 16:03       ` Ian Campbell
2013-03-15 18:05         ` Konrad Rzeszutek Wilk
2013-03-18  9:42           ` Ian Campbell
2013-03-18 13:10             ` Konrad Rzeszutek Wilk
  -- strict thread matches above, loose matches on Subject: below --
2013-03-04 17:47 [PATCH v10] claim and its friends for allocating multiple self-ballooning guests Konrad Rzeszutek Wilk
2013-03-04 17:47 ` [PATCH 6/6] xl: 'xl list' supports '-c' for global claim information Konrad Rzeszutek Wilk

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.