From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJMcD-0001uh-IK for qemu-devel@nongnu.org; Wed, 03 Oct 2012 06:55:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJMc6-0004sH-KS for qemu-devel@nongnu.org; Wed, 03 Oct 2012 06:55:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJMc6-0004ri-BU for qemu-devel@nongnu.org; Wed, 03 Oct 2012 06:55:38 -0400 Message-Id: <20121003105509.614535373@amt.cnet> Date: Wed, 03 Oct 2012 07:53:00 -0300 From: Marcelo Tosatti References: <20121003105255.972669952@amt.cnet> Content-Disposition: inline; filename=qemukvm-commandline-boot-option Subject: [Qemu-devel] [patch 5/6] Emulate qemu-kvms drive parameter boot=on|off List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Gerd Hoffmann Cc: Anthony Liguori , Marcelo Tosatti , kvm@vger.kernel.org Commit 841280b6c224ea2c6edc2f5afc2add513c85181d from qemu-kvm.git. From: Jan Kiszka We do not want to maintain this option forever. It will be removed after a grace period of a few releases. So warn the user that this option has no effect and will become invalid soon. Signed-off-by: Marcelo Tosatti Index: qemu-compat-kvm/blockdev.c =================================================================== --- qemu-compat-kvm.orig/blockdev.c +++ qemu-compat-kvm/blockdev.c @@ -432,6 +432,12 @@ DriveInfo *drive_init(QemuOpts *opts, in return NULL; } + if (qemu_opt_get(opts, "boot") != NULL) { + fprintf(stderr, "qemu-kvm: boot=on|off is deprecated and will be " + "ignored. Future versions will reject this parameter. Please " + "update your scripts.\n"); + } + on_write_error = BLOCK_ERR_STOP_ENOSPC; if ((buf = qemu_opt_get(opts, "werror")) != NULL) { if (type != IF_IDE && type != IF_SCSI && type != IF_VIRTIO && type != IF_NONE) { Index: qemu-compat-kvm/qemu-config.c =================================================================== --- qemu-compat-kvm.orig/qemu-config.c +++ qemu-compat-kvm/qemu-config.c @@ -114,6 +114,10 @@ static QemuOptsList qemu_drive_opts = { .name = "copy-on-read", .type = QEMU_OPT_BOOL, .help = "copy read data from backing file into image file", + },{ + .name = "boot", + .type = QEMU_OPT_BOOL, + .help = "(deprecated, ignored)", }, { /* end of list */ } },