Statistics
| Branch: | Revision:

root / vl.c @ 4581cbcd

History | View | Annotate | Download (84.5 kB)

# Date Author Comment
4447d609 10/05/2010 10:14 pm Anthony Liguori

Merge remote branch 'spice/submit.6' into staging

Conflicts:
configure

Signed-off-by: Anthony Liguori <>

39eaab9a 10/01/2010 04:12 pm Daniel P. Berrange

Add option to turn on JSON pretty printing in monitor

Expaned '-mon' arg to allow a 'pretty=on' flag. This makes the
monitor pretty print its replies to easy human debugging / reading

Signed-off-by: Daniel P. Berrange <>
Signed-off-by: Luiz Capitulino <>

e78815a5 09/25/2010 02:26 pm Andreas Färber

Introduce qemu_madvise()

vl.c has a Sun-specific hack to supply a prototype for madvise(),
but the call site has apparently moved to arch_init.c.

Haiku doesn't implement madvise() in favor of posix_madvise().
OpenBSD and Solaris 10 don't implement posix_madvise() but madvise()....

a3e22260 09/21/2010 07:36 pm Gerd Hoffmann

spice: simple display

With that patch applied you'll actually see the guests screen in the
spice client. This does not bring qxl and full spice support though.
This is basically the qxl vga mode made more generic, so it plays
together with any qemu-emulated gfx card. You can display stdvga or...

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.

6b62dc2d 09/21/2010 07:35 pm Gerd Hoffmann

Use display types for local display only.

This patch drops DT_VNC. The display types are only used to select
select the local display (i.e. curses, sdl, coca, ...). Remote
displays (for now only vnc, spice will follow) can be enabled
independently.

526c5237 09/21/2010 07:35 pm Gerd Hoffmann

Use machine_init() to register virtfs config options.

ab6540d5 09/10/2010 12:22 am Prerna Saxena

trace: Add trace file name command-line option

This patch adds an optional command line switch '-trace' to specify the
filename to write traces to, when qemu starts.
Eg, If compiled with the 'simple' trace backend,
[temp@system]$ qemu -trace FILENAME IMAGE...

12848bfc 09/08/2010 08:26 pm Aneesh Kumar K.V

virtio-9p: Add SM_NONE security model

This is equivalent to SM_PASSTHROUGH security model.
The only exception is, failure of privilige operation like chown
are ignored. This makes a passthrough like security model usable
for people who runs kvm as non root...

c93031e5 09/04/2010 12:52 pm Aneesh Kumar K.V

virtio-9p: Make sure -virtfs option works correctly

When making copy of arguments we were doing partial copy

Signed-off-by: Aneesh Kumar K.V <>
Signed-off-by: Blue Swirl <>

cb93bbdd 08/31/2010 11:16 pm Blue Swirl

Fix OpenBSD linker warning

Fix a warning from OpenBSD linker:
../libhw32/vl.o(.text+0x5c3c): In function `main':
/src/qemu/vl.c:2335: warning: sprintf() is often misused, please use snprintf()

Signed-off-by: Blue Swirl <>

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

03b0ba70 08/23/2010 01:11 am Gerd Hoffmann

compile -fsdev and -virtfs cmd line options unconditionally.

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

8e00128d 08/19/2010 11:24 pm Blue Swirl

Remove useless NULL checks for qemu_malloc return value

Found with this Coccinelle semantic patch:
@
expression E;
identifier ptr;
identifier fn ~= "qemu_mallocz*";
@

ptr = fn(E);
-if (ptr == NULL) { ... }

+ptr = fn(E);

Signed-off-by: Blue Swirl <>

8e84865e 07/31/2010 12:14 am Amit Shah

migration: Accept 'cont' only after successful incoming migration

When a 'cont' is issued on a VM that's just waiting for an incoming
migration, the VM reboots and boots into the guest, possibly corrupting
its storage since it could be shared with another VM running elsewhere....

dca98169 07/31/2010 12:05 am Joel Schopp

remove pointless if from vl.c

We already set sockets to nonzero in the code above.
So this if statement always evaluates true. Remove it.

Signed-off-by: Joel Schopp <>
Signed-off-by: Aurelien Jarno <>

472fb0c4 07/22/2010 06:52 am Jan Kiszka

Rename tcg_cpu_exec and tcg_has_work

These functions are also used for kvm under !CONFIG_IOTHREAD, having
'tcg' in their name is just misleading.

Signed-off-by: Jan Kiszka <>
Acked-by: Paolo Bonzini <>
Reviewed-by: Marcelo Tosatti <>...

0be71e32 07/06/2010 06:36 pm Alex Williamson

savevm: Add DeviceState param

When available, we'd like to be able to access the DeviceState
when registering a savevm. For buses with a get_dev_path()
function, this will allow us to create more unique savevm
id strings.

Signed-off-by: Alex Williamson <>...

97ab12d4 07/06/2010 06:36 pm Alex Williamson

savevm: Migrate RAM based on name/offset

Synchronize RAM blocks with the target and migrate using name/offset
pairs. This ensures both source and target have the same view of
RAM and that we get the right bits into the right slot.

Signed-off-by: Alex Williamson <>...

8ca5e801 06/22/2010 11:15 pm Juan Quintela

Exit if incoming migration fails

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

758e8e38 06/22/2010 11:15 pm Venkateswararao Jujjuri (JV)

virtio-9p: Make infrastructure for the new security model.

This patch adds required infrastructure for the new security model.

- A new configure option for attr/xattr.
- if CONFIG_VIRTFS will be defined if both CONFIG_LINUX and CONFIG_ATTR defined.
- Defines routines related to both security models....

9ce56db6 06/22/2010 11:15 pm Venkateswararao Jujjuri (JV)

virtio-9p: Introduces an option to specify the security model.

The new option is:

-fsdev fstype,id=myid,path=/share_path/,security_model=[mapped|passthrough]
-virtfs fstype,path=/share_path/,security_model=[mapped|passthrough],mnt_tag=tag

In the case of mapped security model, files are created with QEMU user...

fd42deeb 06/14/2010 11:46 pm Gerd Hoffmann

Add exit notifiers.

Hook up any cleanup work which needs to be done here. Advantages over
using atexit(3):

(1) You get passed in a pointer to the notifier.  If you embed that
into your state struct you can use container_of() to get get your
state info....
a4673e27 06/14/2010 06:33 pm Anthony Liguori

Merge remote branch 'kwolf/for-anthony' into staging

Conflicts:
hw/pc.c

9f16732a 06/12/2010 08:49 am Jes Sorensen

Rename qemu-options.h to qemu-options.def

Rename qemu-options.h to qemu-options.def as it is not a header file
for general use and this leaves space for a proper qemu-options.h

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

59a5264b 06/12/2010 08:49 am Jes Sorensen

Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c

Introduce OS specific cmdline argument handling by calling
os_parse_cmd_args() at the end of switch() statement. Move option
enum to qemu-options.h and have it included from os-posix.c and...

8847cfe8 06/12/2010 08:49 am Jes Sorensen

Move runas handling from vl.c to OS specific files.

Move code to handle runas, ie. change of user id of QEMU process
to OS specific files and provide dummy stub for Win32.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

0766379d 06/12/2010 08:49 am Jes Sorensen

Move chroot handling to OS specific files.

Move chroot handling to OS specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

eb505be1 06/12/2010 08:49 am Jes Sorensen

Move daemonize handling to OS specific files

Move daemonize handling from vl.c to OS specific files. Provide dummy
stubs for Win32.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

9156d763 06/12/2010 08:49 am Jes Sorensen

Move line-buffering setup to OS specific files.

Move line-buffering setup to OS specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

ce798cf2 06/12/2010 08:49 am Jes Sorensen

Move set_proc_name() to OS specific files.

Move handling to change process name to POSIX specific files
plus add a better error message to cover the case where the
feature isn't supported.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

19113504 06/12/2010 08:49 am Jes Sorensen

Introduce os-win32.c and move polling functions from vl.c

This introduces os-win32.c. It is meant to carry win32 specific
functions thata are not relevant for all of QEMU as well as win32
versions of various pieces like signal handling etc.

Move win32 polling handler helper functions from vl.c to os-win32.c...

0d93ca7c 06/12/2010 08:49 am Jes Sorensen

vl.c: Move host_main_loop_wait() to OS specific files.

Move host_main_loop_wait() to OS specific files. Create
qemu-os-posix.h and provide empty inline for the POSIX case.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

86b645e7 06/12/2010 08:49 am Jes Sorensen

Introduce os-posix.c and create os_setup_signal_handling()

Introcuce os-posix.c and move posix specific signal handling
there.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

69bd73b1 06/12/2010 08:49 am Jes Sorensen

Move win32 early signal handling setup to os_setup_signal_handling()

Move win32 early signal handling setup to os_setup_signal_handling()

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

fe98ac14 06/12/2010 08:49 am Jes Sorensen

Rename os_setup_signal_handling() to os_setup_early_signal_handling()

Rename os_setup_signal_handling() to os_setup_early_signal_handling()

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>...

8d963e6a 06/12/2010 08:49 am Jes Sorensen

Move main signal handler setup to os specificfiles.

Move main signal handler setup to os specific files.

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>
Acked-by: Richard Henderson <>
Signed-off-by: Blue Swirl <>

6170540b 06/12/2010 08:49 am Jes Sorensen

Move find_datadir to OS specific files.

This moves the win32 and POSIX versions of find_datadir() to OS
specific files, and removes some #ifdef clutter from vl.c

Signed-off-by: Jes Sorensen <>
Acked-by: Juan Quintela <>...

ddc9120e 06/12/2010 08:49 am Jes Sorensen

vl.c: Remove double include of netinet/in.h for Solaris

vl.c: netinet/in.h is already included once above for the

Signed-off-by: Jes Sorensen <>
Acked-by: Andreas Faerber <>
Acked-by: Juan Quintela <>...

0f2ad63f 06/10/2010 07:48 pm Isaku Yamahata

main: allocate gui_timer only once.

fix memory leak.
there is no need to allocate more than one gui_timer.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Blue Swirl <>

1dabe05c 06/10/2010 01:09 am Paolo Bonzini

configure: expand ${prefix} in create_config

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

666daa68 06/04/2010 04:20 pm Markus Armbruster

blockdev: Collect block device code in new blockdev.c

Anything that moves hundreds of lines out of vl.c can't be all bad.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

236f1f67 06/04/2010 12:43 pm Kevin Wolf

Fix error message in drive_init

The real error is the return value of bdrv_open. errno might be overwritten or
not even set to that value in the first place.

Signed-off-by: Kevin Wolf <>

2bc93fed 06/04/2010 12:43 pm MORITA Kazutaka

close all the block drivers before the qemu process exits

This patch calls the close handler of the block driver before the qemu
process exits.

This is necessary because the sheepdog block driver releases the lock
of VM images in the close handler.

Signed-off-by: MORITA Kazutaka <>...

a803cb8e 06/04/2010 12:43 pm Markus Armbruster

blockdev: Hide QEMUMachine from drive_init()

To pave the way for moving it out of vl.c.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

1a43782e 06/04/2010 12:43 pm Markus Armbruster

blockdev: Belatedly remove MAX_DRIVES

Unused since commit 751c6a17.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

f2747760 06/04/2010 12:43 pm Markus Armbruster

blockdev: Belatedly remove driveopts

Unused since commit 9dfd7c7a.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

fb08000c 06/04/2010 12:43 pm Markus Armbruster

usb: Remove unused usb_device_add() parameter is_hotplug

Unused since commit b3e461d3.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

dc33bb34 05/28/2010 02:14 pm Gerd Hoffmann

drive: allow rerror, werror and readonly for if=none

When creating guest disks the qdev way using ...

-drive if=none,id=$name,args
-device $driver,drive=$name

it is not possible to specify rerror, werror and readonly arguments
for drive as drive_init allows/blocks them based on the interface (if=)...

c3177288 05/27/2010 01:08 am Alexander Graf

Make cache=unsafe the default for -snapshot

When using -snapshot we don't care about data integrity of the cow file
at all, so let's disable flushing there and squeeze out the last drop
of performance we could possibly get.

Signed-off-by: Alexander Graf <>...

016f5cf6 05/26/2010 09:05 pm Alexander Graf

Add cache=unsafe parameter to -drive

Usually the guest can tell the host to flush data to disk. In some cases we
don't want to flush though, but try to keep everything in cache.

So let's add a new cache value to -drive that allows us to set the cache
policy to most aggressive, disabling flushes. We call this mode "unsafe",...

019e78ba 05/24/2010 11:18 pm Kevin Wolf

Fix error handling in qemu_read_config_file

We need to close the file even in error case. While at it, make the callers
catch all kind of errors. ENOENT is allowed for default config files, they
are optional.

Reported-by: Luiz Capitulino <>...

a8751701 05/19/2010 06:45 pm Luiz Capitulino

Revert "Monitor: Return before exiting with 'quit'"

This reverts commit 0e8d2b5575938b8876a3c4bb66ee13c5d306fb6d.

Next commits will do the same thing in a better way.

Signed-off-by: Luiz Capitulino <>

a5829fd9 05/18/2010 08:56 pm TeLeMan

fix chardev_init for win32

chardev_init functions use socket,so socket_init() shoud be placed at
the front of chardev_init on win32.

Signed-off-by: TeLeMan <>
Signed-off-by: Aurelien Jarno <>

262353cb 05/04/2010 10:55 pm Blue Swirl

Fix cpu list("-cpu ?") breakage, spotted by TeLeMan

Fix breakage by 04c9a0cbc2bf496889cef6da2d61bf00ef190a4f.

Signed-off-by: Blue Swirl <>

6ed2c484 05/03/2010 08:39 pm Luiz Capitulino

QMP: Introduce RESUME event

It's emitted when the Virtual Machine resumes execution.

We currently have the STOP event but don't have the matching
RESUME one, this means that clients are notified when the VM
is stopped but don't get anything when it resumes....

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

37905d6a 05/03/2010 08:09 pm Alex Williamson

Fix boot once option

The boot once options seems to have gotten broken since it originally
went in. We need to wait until the second time restore_boot_devices()
gets called before restoring the standard boot order and removing itself
from the reset list....

f75ca1ae 05/01/2010 10:48 pm Thomas Monjalon

fix old typos in help header

1) Qemu is not only a PC emulator.
2) "image image" has already been changed to "disk image" in qemu-doc.texi

Signed-off-by: Thomas Monjalon <>
Signed-off-by: Blue Swirl <>

140e065d 04/26/2010 10:36 pm Jan Kiszka

monitor: Cleanup ID assignment for compat switch

Canonicalize the ID assignment when creating monitor devices via the
legacy switch and use less easily colliding names.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Luiz Capitulino <>

157b9319 04/26/2010 10:36 pm Jan Kiszka

monitor: Reorder intialization to drop initial mux focus

So far a multiplexed monitor started disabled. Restore this property for
the new way of configuring by moving the monitor initialization before
all devices (the last one to attach to a char-mux will gain the focus)....

0e8d2b55 04/26/2010 10:36 pm Luiz Capitulino

Monitor: Return before exiting with 'quit'

The 'quit' Monitor command (implemented by do_quit()) calls
exit() directly, this is problematic under QMP because QEMU
exits before having a chance to send the ok response.

Clients don't know if QEMU exited because of a problem or...

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

Replace calls of old bdrv_open

What is known today as bdrv_open2 becomes the new bdrv_open. All remaining
callers of the old function are converted to the new one. In some places they
even know the right format, so they should have used bdrv_open2 from the...

763b6084 04/23/2010 05:08 pm Christoph Hellwig

cleanup block driver option handling in vl.c

Assign directly to the bdrv_flags variable instead of using
magic numbers before translating to the BDRV_O_* options.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

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

98c8573e 04/19/2010 09:59 pm Paolo Bonzini

provide a stub version of kvm-all.c if !CONFIG_KVM

This allows limited use of kvm functions (which will return ENOSYS)
even in once-compiled modules. The patch also improves a bit the error
messages for KVM initialization.

Signed-off-by: Paolo Bonzini <>...

c389c43e 04/19/2010 12:46 am Markus Armbruster

error: Drop extra messages after qemu_opts_set() and qemu_opts_parse()

Both functions report errors nicely enough now, no need for additional
messages.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

7277e027 04/12/2010 08:19 pm Blue Swirl

Fix build when configured with --enable-io-thread

Signed-off-by: Blue Swirl <>

4e9e9d6e 04/10/2010 03:10 am Eduardo Habkost

boot: remove unused boot_devices_bitmap variable

In addition to removing the variable, this also renames the parse_bootdevices()
function to validate_bootdevices(), as we don't need its return value anymore.

Signed-off-by: Eduardo Habkost <>...

da1fcfda 04/10/2010 03:09 am Eduardo Habkost

net: remove broken net_set_boot_mask() boot device validation

There are many problems with net_set_boot_mask():

1) It is broken when using the device model instead of "-net nic". Example:
$ qemu-system-x86_64 -device rtl8139,vlan=0,id=net0,mac=52:54:00:82:41:fd,bus=pci.0,addr=0x4 -net user,vlan=0,name=hostnet0 -vnc 0.0.0.0:0 -boot n...

28c28973 04/09/2010 07:55 pm Paolo Bonzini

move balloon handling to balloon.c

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

0706a4dc 04/09/2010 07:55 pm Paolo Bonzini

move socket_init to qemu-sockets.c

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

fbe3288d 04/09/2010 07:55 pm Paolo Bonzini

move two variable declarations out of vl.c

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Aurelien Jarno <>

2db7ad59 04/08/2010 12:11 pm Naphtali Sprei

read-only: allow read-only CDROM with any interface

Signed-off-by: Naphtali Sprei <>
Signed-off-by: Aurelien Jarno <>

92c0e657 03/30/2010 08:44 pm Juergen Lock

Use sysctl instead of /proc to find executable path on FreeBSD

..since /proc usually isn't mounted on FreeBSD.

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

ad96090a 03/29/2010 10:23 pm Blue Swirl

Refactor target specific handling, compile vl.c only once

Move target specific functions and RAM handling to arch_init.c.

Add a flag to QEMUOptions structure to indicate for which
architectures the option is allowed, check the flag
in run time and remove conditional code in option handling....

de06f8d1 03/29/2010 10:23 pm Blue Swirl

Refactor a few architecture dependent pieces in vl.c

These will be moved later.

Signed-off-by: Blue Swirl <>

296af7c9 03/29/2010 10:23 pm Blue Swirl

Refactor CPUState handling out of vl.c

Signed-off-by: Blue Swirl <>

d745bef8 03/29/2010 10:23 pm Blue Swirl

Move KVM and Xen global flags to vl.c

Signed-off-by: Blue Swirl <>

54fc6ea9 03/29/2010 10:23 pm Blue Swirl

Adjust debug handling

Signed-off-by: Blue Swirl <>

7e4c0336 03/27/2010 11:33 pm Blue Swirl

Fix driftfix option

Based on patch by Zachary Amsden.

Signed-off-by: Blue Swirl <>

87d0a28e 03/27/2010 08:24 pm Blue Swirl

Refactor numa mode setting

Signed-off-by: Blue Swirl <>

f7736b91 03/27/2010 08:20 am Blue Swirl

Compile ide/core only once

Make win2k install hack unconditional as it is still restricted to
x86 only in vl.c.

Replace TARGET_PAGE_SIZE and 4096 with PAGE_SIZE.

Signed-off-by: Blue Swirl <>

5ec9cc64 03/21/2010 09:15 pm Anthony Liguori

Revert "Introduce a default qmp session"

This reverts commit 3290c4aac5b97bb1e3b2b28d94669f2c611ce84a.

Conflicts:

vl.c
2d114dc1 03/21/2010 09:14 pm Anthony Liguori

Revert "qmp: don't make -qmp disable the default monitor"

This reverts commit d49f626ed00cecc90fb1ff88da9bdf11e57094d1.

28695489 03/21/2010 09:13 pm Anthony Liguori

Revert "Convert atexit users to exit_notifier"

This reverts commit d7234f4d7e373a708e1df9ab565a71b71b189025.

Conflicts:

hw/xen_machine_pv.c

This should have never been committed.

Signed-off-by: Anthony Liguori <>

365c4243 03/21/2010 09:11 pm Anthony Liguori

Revert "Add exit notifiers"

This reverts commit 3b6304f706ef7eebc0b3b3f3a5093ec75448ee19.

This was mistakenly committed.

Signed-off-by: Anthony Liguori <>

9b164805 03/20/2010 10:26 am Blue Swirl

Fix mingw32 build

mkdir() only takes path argument on mingw32:

CC    i386-softmmu/vl.o
/src/qemu/vl.c: In function 'qmp_add_default':
/src/qemu/vl.c:3763: error: too many arguments to function 'mkdir'
/src/qemu/vl.c:3769: error: too many arguments to function 'mkdir'...
d49f626e 03/19/2010 10:27 pm Anthony Liguori

qmp: don't make -qmp disable the default monitor

Instead, we introduce a default_qmp flag. We don't use it yet, but will in the
next patch.

This has a user-visible impact as specifying just -qmp will now also show a
monitor on the 'vc'.

Signed-off-by: Anthony Liguori <>

3290c4aa 03/19/2010 10:27 pm Anthony Liguori

Introduce a default qmp session

Basically, -qmp unix:%{home}/.qemu/qmp/%{uuid}.sock,server,nowait

%{uuid} will be -uuid if it's specified, otherwise, if libuuid is available,
we generate a uuid. If it's not available, we don't create one.

Signed-off-by: Anthony Liguori <>

3b6304f7 03/19/2010 10:27 pm Anthony Liguori

Add exit notifiers

Like atexit() but with state

Signed-off-by: Anthony Liguori <>

d7234f4d 03/19/2010 10:27 pm Anthony Liguori

Convert atexit users to exit_notifier

All of these users have global state so we really don't see a benefit from
exit_notifier. However, using exit_notifier means that there's one less
justification for having global state in the first place.

Signed-off-by: Anthony Liguori <>

31d4ee6c 03/19/2010 10:27 pm Juan Quintela

Convert io handlers to QLIST

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7b27a769 03/19/2010 10:27 pm Juan Quintela

rename IOCanRWHandler to IOCanReadHandler

It was always only used for reads

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

4bed9837 03/19/2010 10:27 pm Juan Quintela

Handle deleted IOHandlers in a single buffer

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

db1a4972 03/17/2010 06:16 pm Paolo Bonzini

split out qemu-timer.c

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

16b151c3 03/17/2010 06:14 pm Paolo Bonzini

place together more #ifdef CONFIG_IOTHREAD blocks

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

d6f4ade2 03/17/2010 06:14 pm Paolo Bonzini

disentangle tcg and deadline calculation

Just tell main_loop_wait whether to be blocking or nonblocking, so that
there is no need to call qemu_cpus_have_work from the timer subsystem.
Instead, tcg_cpu_exec can say "we want the main loop not to block because...

1b48824f 03/17/2010 06:14 pm Paolo Bonzini

move vmstate registration of vmstate_timers earlier

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>