xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] xen-mfndump and some libxc cleanups
@ 2013-07-12 16:47 Dario Faggioli
  2013-07-12 16:48 ` [PATCH 1/6] libxc: introduce xc_domain_get_address_size Dario Faggioli
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Dario Faggioli @ 2013-07-12 16:47 UTC (permalink / raw)
  To: xen-devel

Hi everyone,

I submitted some of the patches in this series before, as a part of the first
RFC of the NUMA memory migration feature. While preparing another round of it,
I thought there is enough 'meat' already for a separate series.

Basically, there are a few places in libxc where we issue do_domctl()-s
directly, instead of using the proper xc_xxx() wrapper. This make the code
bigger, redundant, more difficult to understand (e.g., "why xc_xxx() is called
here and is not called there?"), less consistent and less grep-able. The first
4 patches of this series address this.

The last one introduce a little tool I'm using for debugging. It allows one to
see the M2P of the host, the P2M of a domain, some info about the PTEs, and
perform basic searches and comparisons on them. I'm finding it very useful and,
although I do not claim for my situation to be that common, I figured it could
be nice to have it in the tree, so that is patch 6. Patch 5 is the small
rework/additions necessary to make 6 possible.

Let me know what you think.

Thanks and Regards,
Dario

---

Dario Faggioli (6):
      libxc: introduce xc_domain_get_address_size
      libxc: use xc_vcpu_setcontext() instead of calling do_domctl()
      libxc: use xc_vcpu_getinfo() instead of calling do_domctl()
      libxc: allow for ctxt to be NULL in xc_vcpu_setcontext
      libxc: introduce xc_map_domain_meminfo (and xc_unmap_domain_meminfo)
      tools/misc: introduce xen-mfndump.


 tools/libxc/xc_core.c           |   21 --
 tools/libxc/xc_cpuid_x86.c      |    8 -
 tools/libxc/xc_dom_boot.c       |   28 +--
 tools/libxc/xc_domain.c         |  149 +++++++++++++-
 tools/libxc/xc_domain_restore.c |   13 -
 tools/libxc/xc_offline_page.c   |  192 +++---------------
 tools/libxc/xc_pagetab.c        |    8 -
 tools/libxc/xc_private.c        |    8 -
 tools/libxc/xc_resume.c         |   23 +-
 tools/libxc/xenctrl.h           |   12 +
 tools/libxc/xenguest.h          |   17 ++
 tools/libxc/xg_private.h        |    9 +
 tools/libxc/xg_save_restore.h   |    9 -
 tools/misc/Makefile             |    7 -
 tools/misc/xen-mfndump.c        |  425 +++++++++++++++++++++++++++++++++++++++
 tools/xentrace/xenctx.c         |    9 -
 16 files changed, 677 insertions(+), 261 deletions(-)
 create mode 100644 tools/misc/xen-mfndump.c

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

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

end of thread, other threads:[~2013-07-12 17:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12 16:47 [PATCH 0/6] xen-mfndump and some libxc cleanups Dario Faggioli
2013-07-12 16:48 ` [PATCH 1/6] libxc: introduce xc_domain_get_address_size Dario Faggioli
2013-07-12 17:23   ` Andrew Cooper
2013-07-12 17:30   ` Wei Liu
2013-07-12 16:48 ` [PATCH 2/6] libxc: use xc_vcpu_setcontext() instead of calling do_domctl() Dario Faggioli
2013-07-12 17:26   ` Andrew Cooper
2013-07-12 16:48 ` [PATCH 3/6] libxc: use xc_vcpu_getinfo() " Dario Faggioli
2013-07-12 17:35   ` Andrew Cooper
2013-07-12 16:48 ` [PATCH 4/6] libxc: allow for ctxt to be NULL in xc_vcpu_setcontext Dario Faggioli
2013-07-12 17:38   ` Andrew Cooper
2013-07-12 16:48 ` [PATCH 5/6] libxc: introduce xc_map_domain_meminfo (and xc_unmap_domain_meminfo) Dario Faggioli
2013-07-12 16:48 ` [PATCH 6/6] tools/misc: introduce xen-mfndump Dario Faggioli
2013-07-12 16:57 ` [PATCH 0/6] xen-mfndump and some libxc cleanups Dario Faggioli

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