]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add new domain device: "controller"
authorWolfgang Mauerer <wolfgang.mauerer@siemens.com>
Wed, 2 Dec 2009 19:15:38 +0000 (19:15 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 15 Jan 2010 16:38:59 +0000 (16:38 +0000)
commit74ec5e65ceba7b0665d8c377694ca412c29c46f4
tree8ab23b166d8a9e080a0b691337424b51be016bd3
parent776e37e1eb33543c1194fd55c8da924b946e2a1d
Add new domain device: "controller"

This augments virDomainDevice with a <controller> element
that is used to represent disk controllers (e.g., scsi
controllers). The XML format is given by

  <controller type="scsi" index="<num>">
     <address type="pci" domain="0xNUM" bus="0xNUM" slot="0xNUM"/>
  </controller>

where type denotes the disk interface (scsi, ide,...), index
is an integer that identifies the controller for association
with disks, and the <address> element specifies the controller
address on the PCI bus as described in previous commits
The address element can be omitted; in this case, an address
will be assigned automatically.

Most of the code in this patch is from Wolfgang Mauerer's
previous disk controller series

 * docs/schemas/domain.rng: Define syntax for <controller>
   XML element
 * src/conf/domain_conf.c, src/conf/domain_conf.h: Define
   virDomainControllerDef struct, and routines for parsing
   and formatting XML
* src/libvirt_private.syms: Add virDomainControllerInsert
   and virDomainControllerDefFree
docs/schemas/domain.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms