]> xenbits.xensource.com Git - xen.git/commit
libxl: handle read-only drives with qemu-xen
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 22 Sep 2015 15:56:35 +0000 (16:56 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 22 Sep 2015 15:56:35 +0000 (16:56 +0100)
commit998424e33db121270690586320e899a03c88b4aa
tree6a397c0d392d8a32ffb6b0ae36fd45bdb2cfd712
parent6d81366482a2fbc418cc96bd2d9875ae99da612c
libxl: handle read-only drives with qemu-xen

The current libxl code doesn't deal with read-only drives at all.

Upstream QEMU and qemu-xen only support read-only cdrom drives: make
sure to specify "readonly=on" for cdrom drives and return error in case
the user requested a non-cdrom read-only drive.

This is XSA-142, discovered by Lin Liu
(https://bugzilla.redhat.com/show_bug.cgi?id=1257893).

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Backport to Xen 4.5 and earlier, apropos of report and review from
Michael Young.

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