]> xenbits.xensource.com Git - xen.git/commit
libxl_dm: Replace deprecated -drive if=scsi
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 26 Mar 2018 17:38:10 +0000 (18:38 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Mar 2018 12:54:46 +0000 (13:54 +0100)
commita9e6fa0a53b8319d029c580c4aa83f6879f5c6b9
tree88b1f19341deafdae3202400274bbbd1ec9396fb
parent73a10cb91a4e5c6f7049a78a12dcdea3460f0bd1
libxl_dm: Replace deprecated -drive if=scsi

.. by -drive if=none,.. -device scsi-disk,...

The use of if=scsi in QEMU is deprecated and has been removed in 2.12 by
1454509726 scsi: Remove automatic creation of SCSI controllers with -drive if=scsi

It used to create a SCSI controller, now we have to explicitly create
it in libxl. This is done ahead of disks creation in order to try to
keep the controller on the PCI slot as it used to be.

The chosen "id" for drive is the same that QEMU used to create.

This patch also take the opportunity to remove the comments in
qemu_disk_scsi_drive_string() which had a typo and is now out of date.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c