libxl: qemu_disk_scsi_drive_string: Break out common parts of disk config
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 13 Jun 2018 14:51:36 +0000 (15:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:04:55 +0000 (09:04 +0200)
commit724e5aa31b58d1e430ad36b484cf0ec021497399
tree8ccd0f07ba61e20606c311bd88081fccf877c5c9
parent17bf51297220dcd74da29de99320b6b1c72d1fa5
libxl: qemu_disk_scsi_drive_string: Break out common parts of disk config

The generated configurations are identical apart from, in some cases,
reordering of the id=%s element.  So, overall, no functional change.

This is part of XSA-266.

Reported-by: Andrew Reimers <andrew.reimers@orionvm.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl_dm.c