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

[Xen-devel] [PATCH] x86/mem_event: Fix foregin domain flag in grab_slot


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
  • Date: Thu, 12 Apr 2012 10:06:42 -0400
  • Cc: andres@xxxxxxxxxxxxxx, tim@xxxxxxx, adin@xxxxxxxxxxxxxx
  • Delivery-date: Thu, 12 Apr 2012 14:02:07 +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=XU1S5JqacYBmFwV7T4TnEL DBbfZaxNnHBE0chtxg3zRpUpeWSUo51yYGZZ7n1h4Zp/FMFH2gbFKH9a30/XcZQ7 5mDUggg7xFq/kJ5BiaVoKmcwawUrLPkeGHAlOiopMYQTEq2Mp0glAxQBsBDtwvTk qiqjkFFYuqXb5z4QLhJeQ=
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

 xen/arch/x86/mm/mem_event.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>

diff -r 84c3a14dc28a -r c74fe64aafeb xen/arch/x86/mm/mem_event.c
--- a/xen/arch/x86/mm/mem_event.c
+++ b/xen/arch/x86/mm/mem_event.c
@@ -415,7 +415,7 @@ int __mem_event_claim_slot(struct domain
     if ( (current->domain == d) && allow_sleep )
         return mem_event_wait_slot(med);
     else
-        return mem_event_grab_slot(med, 1);
+        return mem_event_grab_slot(med, (current->domain != d));
 }
 
 /* Registered with Xen-bound event channel for incoming notifications. */

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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