libxl: restore passing "readonly=" to qemu for SCSI disks
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:38:48 +0000 (09:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:38:48 +0000 (09:38 +0200)
commitb33b61105c1ab1facf01ab7f46d2aae3a71fcd11
tree2a2d3d7726ae9189815e3446b6fdcc00385de25e
parent3075d22f10af8232c363fa84144e7c34dc004485
libxl: restore passing "readonly=" to qemu for SCSI disks

A read-only check was introduced for XSA-142, commit ef6cb76026 ("libxl:
relax readonly check introduced by XSA-142 fix") added the passing of
the extra setting, but commit dab0539568 ("Introduce COLO mode and
refactor relevant function") dropped the passing of the setting again,
quite likely due to improper re-basing.

Restore the readonly= parameter to SCSI disks.  For IDE disks this is
supposed to be rejected; add an assert.  And there is a bare ad-hoc
disk drive string in libxl__build_device_model_args_new, which we also
update.

This is 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>
master commit: dd64d3c41a2d15139c3a35d22d4cb6b78f4c5c59
master date: 2018-06-28 09:05:06 +0200
tools/libxl/libxl_dm.c