From: Ian Jackson Date: Wed, 10 Dec 2008 15:30:49 +0000 (+0000) Subject: Always treat floppy images as raw X-Git-Tag: xen-3.4.0-rc2~102^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f2ce5c35f60bb606bd3ddb55c361bb8a9aad5c5c;p=qemu-xen-4.1-testing.git Always treat floppy images as raw The fix for the image format guessing vulnerability breaks raw floppy images. In our environment it is difficult to apply the same configuration change as envisaged upstream, so instead we arrange to always treat a floppy image as raw. Two-line patch supplied by James Harper Signed-off-by: Ian Jackson --- diff --git a/vl.c b/vl.c index 5cb54cfa4..99ebd9de8 100644 --- a/vl.c +++ b/vl.c @@ -5847,6 +5847,8 @@ static int drive_init(struct drive_opt *arg, int snapshot, approximation. */ case IF_FLOPPY: bdrv_set_type_hint(bdrv, BDRV_TYPE_FLOPPY); + if (!drv) + drv = &bdrv_raw; break; case IF_PFLASH: case IF_MTD: