[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] fix the control panel problem for latest tree


  • To: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
  • From: Christian Limpach <christian.limpach@xxxxxxxxx>
  • Date: Fri, 16 Sep 2005 19:51:17 +0100
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 16 Sep 2005 18:49:04 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KTRns0b9XrDO1t2hLe10GtnOCLQBqfQJP2ZhqYrt1Tg6VGnesQWaWTQxQVgqAErie0dFD96ijWMXhKN2en4ow9OSjbdouk/2TweO3gYir10+rHV4qJ26dbuX3NFnB86DB7kYHJr8oHG+rPC/OF8aBwFW/QWZHmeCXfh2phKOFJU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thanks!

On 9/16/05, Ling, Xiaofeng <xiaofeng.ling@xxxxxxxxx> wrote:
> The new image handling structure break the vmx guest loading, this patch
> fix it.
> 
> Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
> 
> diff -r fe916b4a7d74 -r 089ec1b6817c tools/python/xen/xend/image.py
> --- a/tools/python/xen/xend/image.py    Fri Sep 16 02:53:39 2005
> +++ b/tools/python/xen/xend/image.py    Fri Sep 16 06:30:21 2005
> @@ -271,9 +271,10 @@
>     def configure(self, config):
>         ImageHandler.configure(self, config)
>         if not config:
> -            self.memmap, self.dmargs, self.device_model, self.display = 
> self.vm.gatherVm(
> +            self.memmap, dmargs, self.device_model, self.display = 
> self.vm.gatherVm(
>                 ("image/memmap"), ("image/dmargs"), ("image/device-model"),
>                 ("image/display"))
> +            self.dmargs = dmargs.split(' ')
>             return
> 
>         self.memmap = sxp.child_value(config, 'memmap')
> @@ -283,10 +284,10 @@
>             raise VmError("vmx: missing device model")
>         self.display = sxp.child_value(config, 'display')
> 
> -        self.storeVm(("image/memmap", self.memmap),
> -                     ("image/dmargs", self.dmargs),
> -                     ("image/device-model", self.device_model),
> -                     ("image/display", self.display))
> +        self.vm.storeVm(("image/memmap", self.memmap),
> +                        ("image/dmargs", " ".join(self.dmargs)),
> +                        ("image/device-model", self.device_model),
> +                        ("image/display", self.display))
> 
>     def createImage(self):
>         """Create a VM for the VMX environment.
> @@ -346,7 +347,7 @@
>                 ret.append("%s" % v)
> 
>         # Handle disk/network related options
> -        devices = sxp.children(config, 'device')
> +        devices = sxp.children(self.vm.config, 'device')
>         for device in devices:
>             name = sxp.name(sxp.child0(device))
>             if name == 'vbd':
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 
> 
>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.