From: Dario Faggioli <dario.faggioli@citrix.com>
To: xen-devel@lists.xen.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH v2 0/6] some libxc cleanups and xen-mfndump
Date: Wed, 11 Sep 2013 10:09:22 +0200 [thread overview]
Message-ID: <1378886962.2821.98.camel@Solace> (raw)
In-Reply-To: <20130910174758.7735.13358.stgit@hit-nxdomain.opendns.com>
[-- Attachment #1.1: Type: text/plain, Size: 3044 bytes --]
[Amending the Cc-list, since I seem to have managed in including people
that shouldn't be bothered by changes like these (Jan, Keir, sorry), as
well as missing someone that should instead have been there in the
first place (IanJ sorry)]
On mar, 2013-09-10 at 19:53 +0200, Dario Faggioli wrote:
> Hi everyone,
>
> This is take 2 of an old submission of mine, doing some basic libxc cleanups
> and introducing a debugging tool I called xen-mfndump.
>
> 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.
>
> Patches with an '*' next to their name below have been Reviewed-by Andrew
> Cooper.
>
> Thanks and Regards,
> Dario
>
> ---
> Dario Faggioli (6):
> libxc: introduce xc_domain_get_guest_width()
> * 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 | 20 --
> tools/libxc/xc_cpuid_x86.c | 8 -
> tools/libxc/xc_dom_boot.c | 31 +--
> tools/libxc/xc_dom_x86.c | 13 -
> 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 | 21 --
> tools/libxc/xenctrl.h | 13 +
> 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 -
> 17 files changed, 679 insertions(+), 273 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)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-09-11 8:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 17:53 [PATCH v2 0/6] some libxc cleanups and xen-mfndump Dario Faggioli
2013-09-10 17:53 ` [PATCH v2 1/6] libxc: introduce xc_domain_get_guest_width() Dario Faggioli
2013-09-10 17:53 ` [PATCH v2 2/6] libxc: use xc_vcpu_setcontext() instead of calling do_domctl() Dario Faggioli
2013-09-10 17:53 ` [PATCH v2 3/6] libxc: use xc_vcpu_getinfo() " Dario Faggioli
2013-09-10 17:54 ` [PATCH v2 4/6] libxc: allow for ctxt to be NULL in xc_vcpu_setcontext Dario Faggioli
2013-09-10 17:54 ` [PATCH v2 5/6] libxc: introduce xc_map_domain_meminfo (and xc_unmap_domain_meminfo) Dario Faggioli
2013-09-13 12:05 ` Ian Campbell
2013-09-13 12:21 ` Dario Faggioli
2013-09-13 12:24 ` Ian Campbell
2013-09-13 13:02 ` Dario Faggioli
2013-09-13 13:12 ` Ian Campbell
2013-09-13 13:25 ` Ian Campbell
2013-09-13 13:35 ` Dario Faggioli
2013-09-10 17:54 ` [PATCH v2 6/6] tools/misc: introduce xen-mfndump Dario Faggioli
2013-09-11 8:09 ` Dario Faggioli [this message]
2013-09-13 12:33 ` [PATCH v2 0/6] some libxc cleanups and xen-mfndump 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=1378886962.2821.98.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--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 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).