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

Re: [Xen-devel] [PATCH][VT] Fix vnc configure problem for vmx guest

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH][VT] Fix vnc configure problem for vmx guest
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Mon, 26 Sep 2005 09:41:51 +0100
Delivery-date: Mon, 26 Sep 2005 08:41:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43375415.1040406@xxxxxxxxx>
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>
References: <3ACA40606221794F80A5670F0AF15F840999E329@pdsmsx403> <20050923160027.GL2439@xxxxxxxxxxxxxxxx> <43375415.1040406@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Mon, Sep 26, 2005 at 09:51:17AM +0800, Xiaofeng Ling wrote:

> Yes, moving ImageGandler.create after domain create resolves the 
> problem. but I guess the original purpose of putting ImageHandler.create 
> after domain creating maybe if ImageHanler.ceate fails(some 
> configuration wrong), there'll be no useless domain struct exists.
> So I seperates the configVNC and put it after the domain creating.
> Maybe better way is have a pre-config and post-config?

Well, if the post-config fails, we still have to be able to clean up, so
there's no extra effort in cleaning up after ImageHandler.create as well.
That said, there's no problem having an explicit phase of post-configuration
that sees the image- and device-configuration structures, just as you suggest.

If it's working for you now, I'll leave it alone for this week, but I'll
revisit it later and if it looks neater to have a post-config phase, I'll do
that.

Thanks for all your help,

Ewan.

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