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

[Xen-devel] [PATCH] mem_event: use mem_event_mark_and_pause() in mem_event_check_ring()


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Mon, 05 Sep 2011 15:19:28 +0200
  • Delivery-date: Mon, 05 Sep 2011 06:20:42 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1315228750 -7200
# Node ID c703c8e56b81b538e1a6c64dca9150c608fc99d7
# Parent  b2c8dacb2dc08bd93e4926eb0c2c7823d40e2174
mem_event: use mem_event_mark_and_pause() in mem_event_check_ring()

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r b2c8dacb2dc0 -r c703c8e56b81 xen/arch/x86/mm/mem_event.c
--- a/xen/arch/x86/mm/mem_event.c
+++ b/xen/arch/x86/mm/mem_event.c
@@ -178,10 +178,7 @@ int mem_event_check_ring(struct domain *
     }
 
     if ( (curr->domain->domain_id == d->domain_id) && ring_full )
-    {
-        set_bit(_VPF_mem_event, &curr->pause_flags);
-        vcpu_sleep_nosync(curr);
-    }
+        mem_event_mark_and_pause(curr);
 
     mem_event_ring_unlock(d);
 

_______________________________________________
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®.