All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Thomas Beinicke <thomas.beinicke@fsd-web.de>,
	Mark McLoughlin <markmc@redhat.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: 0.12.x: message "Option 'ipv4': Use 'on' or 'off'"
Date: Wed, 6 Jan 2010 06:29:26 -0200	[thread overview]
Message-ID: <20100106082926.GA2369@amt.cnet> (raw)
In-Reply-To: <201001040918.01964.thomas.beinicke@fsd-web.de>

On Mon, Jan 04, 2010 at 09:18:01AM +0100, Thomas Beinicke wrote:
> I get the same message since the update, is it -chardev option related?
> 
> 
> On Saturday 02 January 2010 11:53:42 Thomas Mueller wrote:
> > hi
> > 
> > since 0.12.x i get the following messages starting a vm:
> > 
> > Option 'ipv4': Use 'on' or 'off'
> > Failed to parse "yes" for "dummy.ipv4"
> > 
> > 
> > command is:
> > 
> > 
> > kvm -usbdevice tablet -drive file=~/virt/xp/drive1.qcow2,cache=writeback -
> > drive file=~/virt/xp/drive2.qcow2,cache=writeback -net nic -net
> > user,hostfwd=tcp:127.0.0.1:3389-:3389 -k de-ch -m 1024 -smp 2 -vnc
> > 127.0.0.1:20 -monitor unix:/var/run/kvm-winxp.socket,server,nowait -
> > daemonize -localtime
> > 
> > what is option ipv4?

This patch should fix it:

Fix inet_parse typo

qemu_opt_set wants on/off, not yes/no.

diff --git a/qemu-sockets.c b/qemu-sockets.c
index 8850516..a88b2a7 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -424,7 +424,7 @@ static int inet_parse(QemuOpts *opts, const char *str)
                     __FUNCTION__, str);
             return -1;
         }
-        qemu_opt_set(opts, "ipv6", "yes");
+        qemu_opt_set(opts, "ipv6", "on");
     } else if (qemu_isdigit(str[0])) {
         /* IPv4 addr */
         if (2 != sscanf(str,"%64[0-9.]:%32[^,]%n",addr,port,&pos)) {
@@ -432,7 +432,7 @@ static int inet_parse(QemuOpts *opts, const char *str)
                     __FUNCTION__, str);
             return -1;
         }
-        qemu_opt_set(opts, "ipv4", "yes");
+        qemu_opt_set(opts, "ipv4", "on");
     } else {
         /* hostname */
         if (2 != sscanf(str,"%64[^:]:%32[^,]%n",addr,port,&pos)) {
@@ -450,9 +450,9 @@ static int inet_parse(QemuOpts *opts, const char *str)
     if (h)
         qemu_opt_set(opts, "to", h+4);
     if (strstr(optstr, ",ipv4"))
-        qemu_opt_set(opts, "ipv4", "yes");
+        qemu_opt_set(opts, "ipv4", "on");
     if (strstr(optstr, ",ipv6"))
-        qemu_opt_set(opts, "ipv6", "yes");
+        qemu_opt_set(opts, "ipv6", "on");
     return 0;
 }
 

  reply	other threads:[~2010-01-06  8:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-02 10:53 0.12.x: message "Option 'ipv4': Use 'on' or 'off'" Thomas Mueller
2010-01-04  8:18 ` Thomas Beinicke
2010-01-06  8:29   ` Marcelo Tosatti [this message]
2010-02-10  8:30     ` xming
2010-02-10  9:04       ` Thomas Beinicke
2010-02-12 15:11         ` xming

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=20100106082926.GA2369@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=markmc@redhat.com \
    --cc=thomas.beinicke@fsd-web.de \
    /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.