]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Correctly format controller's driver
authorLuyao Huang <lhuang@redhat.com>
Wed, 7 Jan 2015 10:39:37 +0000 (18:39 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Jan 2015 15:01:55 +0000 (16:01 +0100)
commit97fac17c77d9bdfacafff1c5c39b2df3c1530614
treec0bdd2d1c63042ae69bd6d3433db685bd01d2c82
parent1390c26847518faed81c344544109e097d800ce1
conf: Correctly format controller's driver

https://bugzilla.redhat.com/show_bug.cgi?id=1179684

The way that we currently generate the <driver/> for <controller/> is
just madness:

    <controller type='scsi' index='0' model='virtio-scsi'>
      <driver queues='12'/>
      <driver cmd_per_lun='123'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>

It's obvious that we should be aiming at the following:

    <controller type='scsi' index='0' model='virtio-scsi'>
      <driver queues='12' cmd_per_lun='123'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_conf.c