From: Gerd Hoffmann <kraxel@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 5/5] switch -drive to QemuOpts.
Date: Thu, 16 Jul 2009 20:55:05 +0200 [thread overview]
Message-ID: <4A5F7789.8070500@redhat.com> (raw)
In-Reply-To: <4A5F5053.5000809@codemonkey.ws>
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
On 07/16/09 18:07, Anthony Liguori wrote:
> Gerd Hoffmann wrote:
>> Demo QemuOpts in action ;)
>>
>> Implementing a alternative way to specify the filename should be
>> just a few lines of code now once we decided how the cmd line syntax
>> should look like.
>>
>> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>
> $ x86_64-softmmu/qemu-system-x86_64 -hda ~/images/linux.img -snapshot
> drive: <noid>: index="0" media="disk"
> file="/home/anthony/images/linux.img" snapshot="1"
> qemu: '1' invalid snapshot option
>
> Not quite sure that's the action you were looking for...
Quick fix (incremental) attached.
Oh, and a leftover debug line ...
cheers,
Gerd
[-- Attachment #2: fix --]
[-- Type: text/plain, Size: 714 bytes --]
diff --git a/vl.c b/vl.c
index dfdea55..7d07d69 100644
--- a/vl.c
+++ b/vl.c
@@ -2346,7 +2346,7 @@ static int drive_init_func(QemuOpts *opts, void *opaque)
QEMUMachine *machine = opaque;
int fatal_error = 0;
- qemu_opts_print(opts, NULL);
+// qemu_opts_print(opts, NULL);
if (drive_init(opts, machine, &fatal_error) == NULL) {
if (fatal_error)
return 1;
@@ -2357,7 +2357,7 @@ static int drive_init_func(QemuOpts *opts, void *opaque)
static int drive_enable_snapshot(QemuOpts *opts, void *opaque)
{
if (NULL == qemu_opt_get(opts, "snapshot")) {
- qemu_opt_set(opts, "snapshot", "1");
+ qemu_opt_set(opts, "snapshot", "on");
}
return 0;
}
next prev parent reply other threads:[~2009-07-16 18:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 14:56 [Qemu-devel] [PATCH v3 0/5] cleanup drive handling Gerd Hoffmann
2009-07-16 14:57 ` [Qemu-devel] [PATCH v3 1/5] kill drives_table Gerd Hoffmann
2009-07-16 14:57 ` [Qemu-devel] [PATCH v3 2/5] add support for drive ids Gerd Hoffmann
2009-07-16 14:57 ` [Qemu-devel] [PATCH v3 3/5] kill drives_opt Gerd Hoffmann
2009-07-16 14:57 ` [Qemu-devel] [PATCH v3 4/5] QemuOpts: framework for storing and parsing options Gerd Hoffmann
2009-07-16 16:35 ` [Qemu-devel] " Jan Kiszka
2009-07-16 18:50 ` Gerd Hoffmann
2009-07-17 7:03 ` [Qemu-devel] " Kevin Wolf
2009-07-21 7:25 ` Gerd Hoffmann
2009-07-21 7:42 ` Kevin Wolf
2009-07-21 13:59 ` Gerd Hoffmann
2009-07-21 15:58 ` Kevin Wolf
2009-07-22 6:58 ` Gerd Hoffmann
2009-07-22 7:31 ` Kevin Wolf
2009-07-22 7:55 ` Gerd Hoffmann
2009-07-16 14:57 ` [Qemu-devel] [PATCH v3 5/5] switch -drive to QemuOpts Gerd Hoffmann
2009-07-16 16:07 ` Anthony Liguori
2009-07-16 18:55 ` Gerd Hoffmann [this message]
2009-07-16 19:03 ` Anthony Liguori
2009-07-16 19:32 ` Gerd Hoffmann
2009-07-16 20:08 ` Anthony Liguori
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=4A5F7789.8070500@redhat.com \
--to=kraxel@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.