From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 0 of 5] Memory sharing overhaul part 2 Date: Thu, 08 Dec 2011 08:54:36 -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 (Sigh, the previous pachbomb got truncated by an smtp quota in my provider... remaining patches in this series) 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/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 + 12 files changed, 188 insertions(+), 8 deletions(-)