]> xenbits.xensource.com Git - xen.git/commit
libxl: restore passing "readonly=" to qemu for SCSI disks
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 28 Jun 2018 09:23:11 +0000 (11:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 09:23:11 +0000 (11:23 +0200)
commit321254a107fe695a84c45acadcec842e36fe8bbf
treebc521722c6a8c6745224ee8f8d5f1516c22c4b02
parent500d567b08ef890dddafdfaf0ac47ee63a48a0dd
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