]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: vboxAttachDrives now relies on address info
authorDawid Zamirski <dzamirski@datto.com>
Tue, 24 Oct 2017 19:35:27 +0000 (15:35 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 3 Nov 2017 17:13:09 +0000 (13:13 -0400)
commitc739a6bdfe4459eb9688055641d69927472c9b5a
tree477836ab964dc76cc7b8e2268dea78842f8ac1cd
parent7651debbc116b83054437112e22b89a255383ca3
vbox: vboxAttachDrives now relies on address info

Previously, the driver was computing VBOX's devicePort/deviceSlot values
based on device name and max port/slot values. While this worked, it
completely ignored <address> values. Additionally, libvirt's built-in
virDomainDiskDefAssignAddress already does a good job  setting default
values on virDomainDeviceDriveAddress struct which we can use to set
devicePort and deviceSlot and accomplish the same result while allowing
the customizing those via XML. Also, this allows to remove some code
which will make further patches smaller.
src/vbox/vbox_common.c