Statistics
| Branch: | Revision:

root / qemu-config.h @ bb4ea393

History | View | Annotate | Download (542 Bytes)

# Date Author Comment
29b0040b 09/21/2010 07:36 pm Gerd Hoffmann

spice: core bits

Add -spice command line switch. Has support setting passwd and port for
now. With this patch applied the spice client can successfully connect
to qemu. You can't do anything useful yet though.

dfe795e7 08/23/2010 01:11 am Gerd Hoffmann

QemuOpts: allow new option groups be registered at runtime.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

3329f07b 08/23/2010 01:11 am Gerd Hoffmann

QemuOpts: make most qemu_*_opts static

Switch tree to lookup-by-name using qemu_find_opts().
Also hook up virtfs options so qemu_find_opts works for them too.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

3d54abc7 05/03/2010 08:17 pm Gautham R Shenoy

virtio-9p: Create a syntactic shortcut for the file-system pass-thru

Currently the commandline to create a virtual-filesystem pass-through between
the guest and the host is as follows:
#qemu -fsdev fstype,id=ID,path=path/to/share \
-device virtio-9p-pci,fsdev=ID,mount_tag=tag \...

74db920c 05/03/2010 08:17 pm Gautham R Shenoy

virtio-9p: Create a commandline option -fsdev

This patch creates a new command line option named -fsdev to hold any file
system specific information.

The option will currently hold the following attributes:
-fsdev fstype id=id,path=path_to_share
where
fstype: Type of the file system....

dcfb0939 04/23/2010 05:08 pm Kevin Wolf

qemu-config: qemu_read_config_file() reads the normal config file

Introduce a new function qemu_read_config_file which reads the VM configuration
from a config file. Unlike qemu_config_parse it doesn't take a open file but a
filename and reduces code duplication as a side effect....

490b648e 04/23/2010 05:08 pm Kevin Wolf

qemu-config: Make qemu_config_parse more generic

qemu_config_parse gets the option groups as a parameter now instead of
hardcoding the VM configuration groups. This way it can be used for other
configurations, too.

Signed-off-by: Kevin Wolf <>

304329ee 03/16/2010 06:45 pm Markus Armbruster

qemu-option: Rename find_list() to qemu_find_opts() & external linkage

Next commit wants to use it.

cf5a65aa 03/16/2010 05:58 pm Markus Armbruster

error: Track locations in configuration files

New LOC_FILE. Use it for tracking file name and line number in
qemu_config_parse(). We now report errors like

qemu:foo.conf:42: Did not find I2C bus for smbus-eeprom

In particular, gems like this message:...

b5ec5ce0 02/23/2010 12:16 am john cooper

Add cpu model configuration support..

This is a reimplementation of prior versions which adds
the ability to define cpu models for contemporary processors.
The added models are likewise selected via -cpu <name>,
and are intended to displace the existing convention...

d8bcbabf 12/18/2009 07:26 pm Gerd Hoffmann

defaults: update device_list[]

Add isa-fdc (disables default_floppy).
Add ide-drive (disables default_cdrom).

Also walk the -global QemuOpts, so we'll catch
-global isa-fdc.drive{A,B}=<name> too.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

88589343 12/12/2009 03:59 pm Gerd Hoffmann

rework -monitor handling, switch to QemuOpts

This patch reworks the -monitor handling:

- It adds a new "mon" QemuOpts list for the monitor(s).
- It adds a monitor_parse() function to parse the -monitor switch.
- It adds a mon_init function to initialize the monitor(s) from the...
d0fef6fb 12/12/2009 03:59 pm Gerd Hoffmann

qdev: add command line option to set global defaults for properties.

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...

9d993394 11/09/2009 04:43 pm Gerd Hoffmann

QemuOpts: dump config.

Add a function to write the QemuOpts configuration to a git-style
config file.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

42262ba8 11/09/2009 04:43 pm Gerd Hoffmann

QemuOpts: parse config from file.

Add functions to parse QemuOpts from a git-style config file.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

a1ea458f 10/15/2009 05:32 pm Mark McLoughlin

net: add -netdev option

Patchworks-ID: 35506
Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

8119b33d 10/06/2009 10:36 pm Mark McLoughlin

Add qemu_net_opts

The first step in porting -net to QemuOpts. We do not include parameter
descriptions in the QemuOptsList because we use the first parameter to
choose which descriptions validate against.

Signed-off-by: Mark McLoughlin <>...

1ed2fc1f 10/05/2009 05:32 pm Jan Kiszka

Refactor RTC command line switches

Deprecate -localtime, -setdate and -rtc-td-hack in favor of a new
unified command line switch:

-rtc [base=utc|localtime|date][,driftfix=none|slew]

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

9d868d45 09/11/2009 06:19 pm Gerd Hoffmann

qemu-option.h include protectors

qemu-option.h has no protection against including it twice.
This patch adds the usual "#ifndef header" bits.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

191bc01b 09/11/2009 06:19 pm Gerd Hoffmann

switch chardev to QemuOpts: infrastructure, null device

start switching chardevs to QemuOpts. This patch adds the
infrastructure and converts the null device.

The patch brings two new functions:

qemu_chr_open_opts()
same as qemu_chr_open(), but uses QemuOpts instead of a...

f31d07d1 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: switch over -device.

Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.

New: "-set device.$id.$property=$value" works.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>...

7282a033 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: create qemu-config.h

Move drive option description there.
Rename it, give it a qemu_ prefix.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d058fe03 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: add -set option

One use case will be file for drives (no filename quoting issues), i.e.

-drive id=test,if=virtio
-set drive.test.file=/vmdisk/test-virtio.img

It will work for any other option (assuming handled by QemuOpts) though.
Except for id= for obvious reasons ;)....