]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Extend the virDomainDeviceAddress struture to allow disk controller addresses
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 1 Dec 2009 16:56:24 +0000 (16:56 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 15 Jan 2010 16:37:57 +0000 (16:37 +0000)
commitd812e7aeb88da21a8b0175ea86a0353e05e4453f
tree68462c24f72875258b9d29e7bb513c7fb2e899f1
parent1b0cce7d3a458839367f4a12c1300ebe1cdf5972
Extend the virDomainDeviceAddress struture to allow disk controller addresses

Introduce a new structure

      struct _virDomainDeviceDriveAddress {
        unsigned int controller;
        unsigned int bus;
        unsigned int unit;
      };

and plug that into virDomainDeviceAddress and generates XML that
looks like

  <address type='drive' controller='1' bus='0' unit='5'/>

This syntax will be used by the QEMU driver to explicitly control
how drives are attached to the bus

* src/conf/domain_conf.h, src/conf/domain_conf.c: Parsing and
  formatting of drive addresses
* docs/schemas/domain.rng: Define new address format for drives
docs/schemas/domain.rng
src/conf/domain_conf.c
src/conf/domain_conf.h