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] fix vmx domain creation fail with SDL from changset

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix vmx domain creation fail with SDL from changset 7547
From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Date: Tue, 1 Nov 2005 12:19:23 +0800
Delivery-date: Tue, 01 Nov 2005 04:16:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcXeh3nx4Rki+hmJQN6ku8bmbt6CCgAEqxdg
Thread-topic: [PATCH] fix vmx domain creation fail with SDL from changset 7547
Fix the DISPLAY configration that breaks vmx domain creation with SDL on 
vncserver or remote X.
changeset 7547 add a judgement of opts.vals.display when getenv("DISPLAY"), 
because there is
a default value:localhost:0, that cause the judgement always true.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r ea6d9f29dff5 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon Oct 31 17:07:14 2005 +0100
+++ b/tools/python/xen/xm/create.py     Tue Nov  1 09:42:31 2005 +0800
@@ -376,7 +376,7 @@
           use="""Should the device model use SDL?""")
 
 gopts.var('display', val='DISPLAY',
-          fn=set_value, default='localhost:0',
+          fn=set_value, default=None,
           use="X11 display to use")
 
diff -r ea6d9f29dff5 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon Oct 31 17:07:14 2005 +0100
+++ b/tools/python/xen/xm/create.py     Tue Nov  1 09:42:31 2005 +0800
@@ -376,7 +376,7 @@
           use="""Should the device model use SDL?""")
 
 gopts.var('display', val='DISPLAY',
-          fn=set_value, default='localhost:0',
+          fn=set_value, default=None,
           use="X11 display to use")
 
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix vmx domain creation fail with SDL from changset 7547, Ling, Xiaofeng <=