]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Clarify controllers -device string in QEMU driver
authorMatthew Booth <mbooth@redhat.com>
Mon, 1 Feb 2010 15:08:36 +0000 (16:08 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 1 Feb 2010 15:08:36 +0000 (16:08 +0100)
commit09080c38d1670ed1c187cbcedac1aa3f9e57f67b
treea487dca4126f6bba0d78928b6adfb7e46f85eec9
parent62a30a496a142b4bfd4a847d60d9ae456d2ffd5e
Clarify controllers -device string in QEMU driver

The QEMU driver contained code to generate a -device string for piix4-ide, but
wasn't using it. This change removes this string generation. It also adds a
comment explaining why IDE and FDC controllers don't generate -device strings.

The change also generates an error if a sata controller is specified for a QEMU
domain, as this isn't supported.

* src/qemu/qemu_conf.c: Remove VIR_DOMAIN_CONTROLLER_TYPE_IDE handler in
  qemuBuildControllerDevStr(). Ignore IDE and FDC controllers. Error if
  SATA controller is discovered. Add comments.
src/qemu/qemu_conf.c