Re: [libvirt] [PATCH RFC 1/5] conf: Introduce readonly to hostdev and change helper function

2013-03-21 Thread Osier Yang
On 2013年03月06日 20:38, Han Cheng wrote: Thanks for your comments~ Please correct me if I'm wrong. As I know,source inhostdev is parsed by virDomainHostdevSubsys(Pci/Usb)DefParseXML. Everything else inhostdev is parsed by virDomainDeviceInfoParseXML. I add readonly follow this. I do think

Re: [libvirt] [PATCH RFC 1/5] conf: Introduce readonly to hostdev and change helper function

2013-03-06 Thread Han Cheng
Thanks for your comments~ Please correct me if I'm wrong. As I know, source in hostdev is parsed by virDomainHostdevSubsys(Pci/Usb)DefParseXML. Everything else in hostdev is parsed by virDomainDeviceInfoParseXML. I add readonly follow this. And this XML is tested by hostdev-scsi-readonly(named

Re: [libvirt] [PATCH RFC 1/5] conf: Introduce readonly to hostdev and change helper function

2013-03-05 Thread Osier Yang
On 2013年03月04日 14:01, Han Cheng wrote: The only parameter in -drive affect scsi-generic is readonly. Introduce readonly/ tohostdev. The helper function to look up disk controller model may be used by scsi hostdev. But it should be changed to use info. --- docs/schemas/domaincommon.rng |

[libvirt] [PATCH RFC 1/5] conf: Introduce readonly to hostdev and change helper function

2013-03-03 Thread Han Cheng
The only parameter in -drive affect scsi-generic is readonly. Introduce readonly/ to hostdev. The helper function to look up disk controller model may be used by scsi hostdev. But it should be changed to use info. --- docs/schemas/domaincommon.rng |5 + src/conf/domain_conf.c|