[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v16] claim and its friends for allocating multiple self-ballooning guests.



Changes since v15:
 - Added 'Acked-by: Ian' on many patches.
 - Fixed 'xl claims' call to be smarter about reporting information (reworked
   a patch).
 - Fixed 'xl info', free_memory: to also take into account outstanding claims
   (new patch)
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.

Note that some of the patches could probably be squashed. In the interest
of sanity and patience of Ian I choose to not do that - so that he can
be assured that the ones he Acked have not changed since the last posting.

That means the only new patches since v14 are:
 [PATCH 6/7] xl: 'xl claims' print outstanding per domain claims
 [PATCH 7/7] xl: Fix 'free_memory' to include outstanding_claims

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


 docs/man/xl.conf.pod.5         | 43 ++++++++++++++++++++++++++++
 docs/man/xl.pod.1              | 39 +++++++++++++++++++++++++-
 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            | 19 +++++++++++--
 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       | 63 ++++++++++++++++++++++++++++++++++++------
 tools/libxl/xl_cmdtable.c      |  6 ++++
 18 files changed, 251 insertions(+), 18 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 (5):
      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
      xl: Fix 'free_memory' to include outstanding_claims value.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.