Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-21 Thread Han Cheng
On 03/06/2013 02:24 PM, Osier Yang wrote: On 2013年03月04日 14:01, Han Cheng wrote: @@ -2928,6 +2929,96 @@ virDomainParseLegacyDeviceAddress(char *devaddr, } static int +virDomainHostdevSubsysScsiDefParseXML(const xmlNodePtr node, +

Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-21 Thread Osier Yang
On 2013年03月06日 21:09, Han Cheng wrote: On 03/06/2013 02:24 PM, Osier Yang wrote: On 2013年03月04日 14:01, Han Cheng wrote: Adding scsi hostdev, it should like: hostdev mode='subsystem' type='scsi' source adapter name='scsi_host0'/ address bus='0'

Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-21 Thread Osier Yang
On 2013年03月21日 17:01, Han Cheng wrote: On 03/06/2013 02:24 PM, Osier Yang wrote: On 2013年03月04日 14:01, Han Cheng wrote: @@ -2928,6 +2929,96 @@ virDomainParseLegacyDeviceAddress(char *devaddr, } static int +virDomainHostdevSubsysScsiDefParseXML(const xmlNodePtr node, +

Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-06 Thread Han Cheng
On 03/06/2013 02:24 PM, Osier Yang wrote: On 2013年03月04日 14:01, Han Cheng wrote: Adding scsi hostdev, it should like: hostdev mode='subsystem' type='scsi' source adapter name='scsi_host0'/ address bus='0' target='0' unit='0'/ /source

Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-06 Thread Han Cheng
Acutally, I've changed xml from Paolo's proposal. I deleted the target as it is not easy to parse for virDomainDeviceInfoParseXML and there is nothing else. And I changed address type from scsi to drive as they are the same. On 03/06/2013 09:09 PM, Han Cheng wrote: On 03/06/2013 02:24 PM, Osier

Re: [libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-05 Thread Osier Yang
On 2013年03月04日 14:01, Han Cheng wrote: Adding scsi hostdev, it should like: hostdev mode='subsystem' type='scsi' source adapter name='scsi_host0'/ address bus='0' target='0' unit='0'/ /source address type='drive' controller='0' bus='0'

[libvirt] [PATCH RFC 2/5] conf: Introduce scsi hostdev

2013-03-03 Thread Han Cheng
Adding scsi hostdev, it should like: hostdev mode='subsystem' type='scsi' source adapter name='scsi_host0'/ address bus='0' target='0' unit='0'/ /source address type='drive' controller='0' bus='0' target='4' unit='8'/ /hostdev ---