[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0 of 2] Mem event ring management overhaul


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
  • Date: Mon, 05 Dec 2011 10:24:07 -0500
  • Cc: andres@xxxxxxxxxxxxxx, keir.xen@xxxxxxxxx, tim@xxxxxxx, olaf@xxxxxxxxx, adin@xxxxxxxxxxxxxx
  • Delivery-date: Mon, 05 Dec 2011 15:24:18 +0000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=lagarcavilla.org; h=content-type :mime-version:content-transfer-encoding:subject:message-id:date :from:to:cc; q=dns; s=lagarcavilla.org; b=f7G68TJvZ4WAbMH+dLj5O8 O4BdEEP8qPrSUOFk0lMul0NbfGxLTIXrfUcYOX5/WUzZAM9BNkON5kJzyt6iL2T3 rmoIvTN58Z+x903Z8AREfvr11K8279ow2I7ZZWY+3jauQE4PXf6wpGmYpxbPVZAG I8qagMHOQd+jWv2L0JcSE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Ensure no guest events are ever lost in the mem event ring.

This is one of two outstanding proposals to solve this issue. One
key difference between them being that ours does not necessitate wait 
queues.

Instead, we rely on foreign domain retry (already in place), preempting
hypercalls that may cause unbounded guest events (such as 
decrease_reservation), and ensuring there is always space left in the 
ring for each guest vcpu to place at least one event.
 
The patch has been refreshed to apply on top of 62ff6a318c5d, and untangled
from other mem event modifications that are essentially orthogonal and can 
go in independently. 

Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
Signed-off-by: Adin Scannell <adin@xxxxxxxxxxx>
 

 xen/common/memory.c             |   29 +++++-
 xen/arch/x86/hvm/hvm.c          |   21 ++-
 xen/arch/x86/mm/mem_event.c     |  203 +++++++++++++++++++++++++++++----------
 xen/arch/x86/mm/mem_sharing.c   |   17 ++-
 xen/arch/x86/mm/p2m.c           |   47 +++++----
 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 +-
 10 files changed, 257 insertions(+), 96 deletions(-)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.