From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 0 of 5] Memory event interface improvements Date: Tue, 29 Nov 2011 16:55:09 -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 In this patch series we improve the management of congestion in the memory events ring. We ensure no guest events are lost, even in the face of unbounded flooding from foreign maps, or balloon. Also, we enable resumption of mem events via an event channel kick from user-space to Xen. This is more light-weight and scalable than the current domctl interface, and allows for batching as well. Signed-off-by: Andres Lagar-Cavilla Signed-off-by: Adin Scannell xen/common/memory.c | 29 +++++- xen/arch/x86/hvm/hvm.c | 20 ++- xen/arch/x86/mm/mem_event.c | 205 ++++++++++++++++++++++++++++++--------- xen/arch/x86/mm/mem_sharing.c | 27 +++- xen/arch/x86/mm/p2m.c | 104 ++++++++++--------- xen/common/memory.c | 7 +- xen/include/asm-x86/mem_event.h | 16 ++- xen/include/asm-x86/p2m.h | 6 +- xen/include/xen/mm.h | 2 + xen/include/xen/sched.h | 5 +- xen/arch/ia64/vmx/vmx_init.c | 2 +- xen/arch/x86/hvm/hvm.c | 7 +- xen/arch/x86/mm/mem_event.c | 3 +- xen/common/event_channel.c | 75 +++++++++++--- xen/include/xen/event.h | 5 +- xen/include/xen/sched.h | 2 +- xen/arch/x86/mm/mem_access.c | 3 +- xen/arch/x86/mm/p2m.c | 3 +- xen/include/asm-x86/p2m.h | 2 +- xen/arch/x86/mm/mem_event.c | 26 +++- 20 files changed, 389 insertions(+), 160 deletions(-)