Skip to contentSkip to conversation

xend: fix regression

PATCH New Christoph Egger 1 participant 1 message Mar 12, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xend: fix regression

Hi,

attached patch fixes a regression in c/s 19330 which prevents to start guests on a Linux Dom0.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
tools/python/xen/xend/image.py +5 -1
diff -r a55a98b36a2a tools/python/xen/xend/image.py
@@ -232,7 +232,11 @@ class ImageHandler:
             # If we use a device model, the pipes for communication between
             # blktapctrl and ioemu must be present before the devices are 
             # created (blktapctrl must access them for new block devices)
-            os.makedirs('/var/run/tap', 0755)
+
+            try:
+                os.makedirs('/var/run/tap', 0755)
+            except:
+                pass
 
             try:
                 os.mkfifo('/var/run/tap/qemu-read-%d' % domid, 0600)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel