]> Git Repo - qemu.git/blobdiff - blockdev.c
ehci: implement Interrupt Threshold Control support
[qemu.git] / blockdev.c
index 9e0a72a269a8e2e50de620cdd36a365c974c98f0..a85a429aef5a6215d89f70d626d1d66816f251db 100644 (file)
@@ -609,6 +609,10 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
 
     bdrv_flags |= ro ? 0 : BDRV_O_RDWR;
 
+    if (ro && copy_on_read) {
+        error_report("warning: disabling copy_on_read on readonly drive");
+    }
+
     ret = bdrv_open(dinfo->bdrv, file, bdrv_flags, drv);
     if (ret < 0) {
         error_report("could not open disk image %s: %s",
This page took 0.023879 seconds and 4 git commands to generate.