From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 00 of 18] Memory sharing overhaul Date: Thu, 08 Dec 2011 02:47:15 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: ian.campbell@citrix.com, andres@gridcentric.ca, tim@xen.org, keir.xen@gmail.com, JBeulich@suse.com, ian.jackson@citrix.com, adin@gridcentric.ca List-Id: xen-devel@lists.xenproject.org This patch series proposes an overhaul of the memory sharing code. Aside from bug fixes and cleanups, the main features are: - Polling of stats via libxc, libxl and console - Removal of global sharing hashtable and global sharing lock (if audit disabled) - Turned sharing audits into a domctl - New domctl to populate vacant physmap entries with shared pages. As a result, the domctl interface to sharing changes. The only in-tree consumer of this interface is updated in the current series. It is important that if any out-of-tree consumer exists, that they state their opinion on this interface change. Patches 5 to 8, 10, 11, 15 and 18 are tools patches. Signed-off-by: Andres Lagar-Cavilla Signed-off-by: Adin Scannell xen/arch/x86/mm.c | 6 +- xen/arch/x86/mm/mem_sharing.c | 91 +++-- xen/arch/x86/mm.c | 2 +- xen/arch/x86/mm/mem_sharing.c | 526 +++++++++++++++++---------------- xen/include/asm-x86/mem_sharing.h | 15 +- xen/include/asm-x86/mm.h | 11 +- xen/include/public/domctl.h | 3 + xen/arch/x86/mm/mem_sharing.c | 65 +++- xen/include/public/domctl.h | 9 + tools/libxc/xc_memshr.c | 3 +- tools/libxc/xenctrl.h | 1 + tools/libxc/xc_memshr.c | 19 +- tools/libxc/xenctrl.h | 7 +- tools/blktap2/drivers/Makefile | 2 +- tools/blktap2/drivers/tapdisk-image.c | 2 +- tools/blktap2/drivers/tapdisk-vbd.c | 6 +- tools/blktap2/drivers/tapdisk.h | 6 +- tools/memshr/bidir-daemon.c | 4 + tools/memshr/bidir-hash.h | 13 +- tools/memshr/interface.c | 31 +- tools/memshr/memshr.h | 11 +- tools/libxl/xl.h | 1 + tools/libxl/xl_cmdimpl.c | 85 +++++ tools/libxl/xl_cmdtable.c | 6 + xen/arch/x86/mm.c | 6 - xen/arch/x86/mm/mem_sharing.c | 31 +- xen/arch/x86/x86_64/compat/mm.c | 6 + xen/arch/x86/x86_64/mm.c | 7 + xen/include/asm-x86/mem_sharing.h | 1 + xen/include/public/memory.h | 1 + tools/libxc/xc_private.c | 10 + tools/libxc/xenctrl.h | 4 + tools/libxl/Makefile | 2 +- tools/libxl/xl_cmdimpl.c | 13 +- xen/arch/x86/mm.c | 4 +- xen/include/asm-x86/mm.h | 3 + xen/arch/x86/mm.c | 16 +- xen/arch/x86/mm/mem_sharing.c | 169 +++++++++- xen/arch/x86/mm/mm-locks.h | 6 +- xen/include/asm-x86/mm.h | 2 +- xen/arch/x86/mm/mem_sharing.c | 106 ++++++ xen/include/public/domctl.h | 3 +- tools/libxc/xc_memshr.c | 23 + tools/libxc/xenctrl.h | 6 + xen/arch/ia64/xen/mm.c | 6 + xen/arch/x86/mm/mem_sharing.c | 8 + xen/common/keyhandler.c | 7 +- xen/include/xen/mm.h | 3 + xen/arch/x86/mm/mem_sharing.c | 17 +- xen/include/public/domctl.h | 1 + tools/libxc/xc_memshr.c | 14 + tools/libxc/xenctrl.h | 2 + 52 files changed, 1005 insertions(+), 397 deletions(-) ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________