qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 2/2] qdev: add command line option to set global defaults for properties.
Date: Tue, 24 Nov 2009 16:11:22 +0200	[thread overview]
Message-ID: <20091124141122.GM2405@redhat.com> (raw)
In-Reply-To: <1259060788-17411-2-git-send-email-kraxel@redhat.com>

On Tue, Nov 24, 2009 at 12:06:28PM +0100, Gerd Hoffmann wrote:
> This patch adds infrastructure and command line option for setting
> global defaults for device properties, i.e. you can for example use
> 
>   -global virtio-blk-pci.vectors=0
> 
> to turn off msi by default for all virtio block devices.  The config
> file syntax is:
> 
> [global]
>   driver = "virtio-blk-pci"
>   property = "vectors"
>   value = "0"

Where's this documented?

> This can also be used to set properties for devices which are not
> created via -device but implicitly via machine init, i.e.
> 
>   -global isa-fdc,driveA=<name>
> 

...

> diff --git a/qemu-options.hx b/qemu-options.hx
> index b65fd74..420b7d8 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -109,6 +109,9 @@ DEF("set", HAS_ARG, QEMU_OPTION_set,
>      "-set group.id.arg=value\n"
>      "                set <arg> parameter for item <id> of type <group>\n"
>      "                i.e. -set drive.$id.file=/path/to/image\n")
> +DEF("global", HAS_ARG, QEMU_OPTION_global,
> +    "-global driver.property=value\n"
> +    "                set a global default for a driver property\n")
>  STEXI
>  @item -drive @var{option}[,@var{option}[,@var{option}[,...]]]

Let's add a hint on how to get the list of drivers and properties?
How would one figure out the command lines you give in
the examples above?


-- 
MST

  reply	other threads:[~2009-11-24 14:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 11:06 [Qemu-devel] [PATCH 1/2] qdev: make compat stuff more generic Gerd Hoffmann
2009-11-24 11:06 ` [Qemu-devel] [PATCH 2/2] qdev: add command line option to set global defaults for properties Gerd Hoffmann
2009-11-24 14:11   ` Michael S. Tsirkin [this message]
2009-11-25 12:55     ` [Qemu-devel] " Gerd Hoffmann
2009-11-25 13:18       ` Michael S. Tsirkin
2009-11-25 14:03         ` Paul Brook

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=20091124141122.GM2405@redhat.com \
    --to=mst@redhat.com \
    --cc=kraxel@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).