WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] ioemu: Fix IDE DMA thread race.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] ioemu: Fix IDE DMA thread race.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Jan 2008 08:20:18 -0800
Delivery-date: Thu, 31 Jan 2008 08:20:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1201770720 0
# Node ID df56245d48f51e6cdd2139434af9f835681a92c0
# Parent  d4f63f0d162f801bc284d42e059d8bbb0d552afb
ioemu: Fix IDE DMA thread race.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/ioemu/hw/ide.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r d4f63f0d162f -r df56245d48f5 tools/ioemu/hw/ide.c
--- a/tools/ioemu/hw/ide.c      Tue Jan 29 22:09:20 2008 +0000
+++ b/tools/ioemu/hw/ide.c      Thu Jan 31 09:12:00 2008 +0000
@@ -422,7 +422,8 @@ static void *dma_thread_func(void* opaqu
         if (rv != 0) {
             if (read(file_pipes[0], &req, sizeof(req)) == 0)
                 return NULL;
-            dma_thread_loop(req);
+           if (req->status & BM_STATUS_DMAING)
+               dma_thread_loop(req);
         } else {
             if (suspend_requested)  {
                 /* Need to tidy up the DMA thread so that we don't end up 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] ioemu: Fix IDE DMA thread race., Xen patchbot-3.1-testing <=