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-devel

[Xen-devel] [PATCH][IOEMU]Attempt to setup tap interface up to 3 times.

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][IOEMU]Attempt to setup tap interface up to 3 times.
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Thu, 17 May 2007 16:35:07 +0200
Delivery-date: Thu, 17 May 2007 07:34:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceYkJCLHreJVZn1QS2eWcGkjnj0JQ==
Thread-topic: [PATCH][IOEMU]Attempt to setup tap interface up to 3 times.
Resend: Now with patch attached.

As there is a (small) chance that vl.c:tap_open() fails (due to some
sort of race-condition in the Linux kernel, which is noted as a bug in
the source .../net/core/dev.c), we should attempt it again a couple of
times if it doesn't succeed on the first attempt. I think three times in
total is sufficient to avoid the problem. 

If tap_open() fails, qemu-dm will exit, which means that the domain dies
- which is not such a good thing when attempting to restore a saved
domain [of course, it would be even worse if it started, but didn't have
networking - because there may not be a way to shut it down cleanly
without network]. 

Attached is an updated patch to the one I sent a few days ago, which
matches the latest Xen-unstable. 

Signed off by: Mats Petersson (mats.petersson@xxxxxxx)

--
Mats

Attachment: patch.try_tap_3_times
Description: patch.try_tap_3_times

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>