From: Jan Kiszka <jan.kiszka@web.de>
To: Avi Kivity <avi@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm <kvm@vger.kernel.org>, Anthony Liguori <aliguori@us.ibm.com>
Subject: [PATCH] qemu-kvm: Deprecate drive parameter boot=on|off
Date: Sat, 08 Oct 2011 09:46:37 +0200 [thread overview]
Message-ID: <4E8FFFDD.9010601@web.de> (raw)
In-Reply-To: <4E8EDF7D.2090701@siemens.com>
On 2011-10-07 13:16, Jan Kiszka wrote:
> Except for booting from SCSI via the LSI controller, SeaBIOS has native
> support for mass storage interfaces now. And SCSI can be worked around
> via [1] - or someone finally adds the necessary bits to SeaBIOS if there
> is a real need.
>
> As there might be still scripts around that append "boot=on", continue
> to parse it, but ignore it and issue a deprecation warning instead.
>
> [1] http://thread.gmane.org/gmane.comp.emulators.qemu/78467
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Changes in v2:
> - restore accidentally removed VAPIC option ROM installation
> - continue to parse boot=on|off
As a different version was merged now, here is the required delta patch:
-----8<-----
From: Jan Kiszka <jan.kiszka@siemens.com>
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: Jan Kiszka <jan.kiszka@siemens.com>
---
blockdev.c | 6 ++++++
qemu-config.c | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 0827bf7..9678915 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -353,6 +353,12 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi)
}
}
+ 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) {
diff --git a/qemu-config.c b/qemu-config.c
index acab438..72e86b9 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -88,7 +88,7 @@ static QemuOptsList qemu_drive_opts = {
},{
.name = "boot",
.type = QEMU_OPT_BOOL,
- .help = "make this a boot drive",
+ .help = "(deprecated, ignored)",
},
{ /* end of list */ }
},
next prev parent reply other threads:[~2011-10-08 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 11:16 [PATCH v2] qemu-kvm: Remove extboot support Jan Kiszka
2011-10-08 7:46 ` Jan Kiszka [this message]
2011-10-10 9:43 ` [PATCH] qemu-kvm: Deprecate drive parameter boot=on|off Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E8FFFDD.9010601@web.de \
--to=jan.kiszka@web.de \
--cc=aliguori@us.ibm.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox