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

Re: [xen-devel][PATCH 3/5] xl disk configuration parsing changes


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
  • From: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxx>
  • Date: Tue, 08 Feb 2011 14:08:52 -0500
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 08 Feb 2011 11:09:27 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=v5swvUiiLuTLMrKq8ZsJZd5OIuCctAgEw646q3G+UKW1+2YN2GelT7Ebjr39kEBLn4 rT+ySNoU+gu/X70+SQHGCvHvEXIgbqTSV3M/mqafZdz2TwalJYlcySbRZpcqmanLdeq8 IMDBzEE9874AohS8MLkoyW14Pj96K8f9ist7w=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

>> -#define DSTATE_INITIAL   0
>> -#define DSTATE_TAP       1
>> -#define DSTATE_PHYSPATH  2
>> -#define DSTATE_VIRTPATH  3
>> -#define DSTATE_VIRTTYPE  4
>> -#define DSTATE_RW        5
>> -#define DSTATE_TERMINAL  6
>> +#define DSTATE_INITIAL           0
>> +#define DSTATE_ATTRIB_PARSED     1
>> +#define DSTATE_VDEV_PARSED       2
> 
> Why did you need to remove 4 states?
I didn't have a need for it.

> Also it would be nice to split this patch in two: a patch that
> introduces parse_disk_attrib, parse_disk_vdev_info, etc, and a second
> patch that makes any necessary changes to the state machine.
> Otherwise it is very difficult to understand the reason behind each
> change to the state machine.
>
That might be a little tricky.  I will talk to you on this offline.

>>  static int parse_disk_config(libxl_device_disk *disk, char *buf2)
>>  {
> 
> There doesn't seem to be a way to set DISK_FORMAT_EMPTY anymore, in fact
> a config line like ',hdc:cdrom,w' seems to be broken.
> 
Patch 5/5, validation code should take care of it.

Kamala

_______________________________________________
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®.