parallels: fix usage of disk->info.addr.drive structure
parallels: fix usage of disk->info.addr.drive structure

For SCSI and SATA devices controller and unit are used
to specify drive address. For IDE devices - bus specifies
IDE bus, becase usually there are 2 IDE buses on IDE
controller.

Parallels SDK allows to set drive position by calling
PrlVmDev_SetStackIndex. Since PCS VMs have only one
controller of each type, for SATA and SCSI devices it
simple means position on bus, for IDE devices -
2 * bus_number + position_on_bus.

This patch fixes mapping from libvirt's disk->info.addr.drive
to parallels's 'StackIndex'.

Signed-off-by: Dmitry Guryanov <82bcdc4bd8b0265ee488eb5c489ce233d2f86b5c@parallels.com>

rlaager/libvirt,elmarco/libvirt,libvirt/libvirt,VenkatDatta/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,eskultety/libvirt,nertpinx/libvirt,zippy2/libvirt,shugaoye/libvirt,datto/libvirt,taget/libvirt,shugaoye/libvirt,agx/libvirt,andreabolognani/libvirt,agx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt,jardasgit/libvirt,jardasgit/libvirt,datto/libvirt,datto/libvirt,elmarco/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,crobinso/libvirt,olafhering/libvirt,crobinso/libvirt,rlaager/libvirt,libvirt/libvirt,rlaager/libvirt,elmarco/libvirt,olafhering/libvirt,zippy2/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,eskultety/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,datto/libvirt,agx/libvirt,taget/libvirt,rlaager/libvirt,datto/libvirt,andreabolognani/libvirt,jfehlig/libvirt,nertpinx/libvirt,rlaager/libvirt,agx/libvirt,taget/libvirt,jfehlig/libvirt,jfehlig/libvirt,shugaoye/libvirt,agx/libvirt,olafhering/libvirt,eskultety/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,nertpinx/libvirt,nertpinx/libvirt,jardasgit/libvirt,elmarco/libvirt,eskultety/libvirt,olafhering/libvirt,taget/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,elmarco/libvirt,eskultety/libvirt,libvirt/libvirt,zippy2/libvirt,jardasgit/libvirt,taget/libvirt