Statistics
| Branch: | Revision:

root / vl.c @ c2162a8b

History | View | Annotate | Download (99.8 kB)

# Date Author Comment
7f67d892 09/20/2011 11:16 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

d9389b96 09/16/2011 04:25 pm Kevin Wolf

Fix termination by signal with -no-shutdown

On signals such as SIGTERM qemu should exit instead of just stopping the VM
even with -no-shutdown.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

1dfb4dd9 09/15/2011 10:39 pm Luiz Capitulino

Replace the VMSTOP macros with a proper state type

Today, when notifying a VM state change with vm_state_notify(),
we pass a VMSTOP macro as the 'reason' argument. This is not ideal
because the VMSTOP macros tell why qemu stopped and not exactly
what the current VM state is....

f5bbfba1 09/15/2011 10:39 pm Luiz Capitulino

RunState: Add additional states

Currently, only vm_start() and vm_stop() change the VM state.
That's, the state is only changed when starting or stopping the VM.

This commit adds the runstate_set() function, which makes it possible
to also do state transitions when the VM is stopped or running....

5db9d4d1 09/15/2011 10:39 pm Luiz Capitulino

runstate_set(): Check for valid transitions

This commit could have been folded with the previous one, however
doing it separately will allow for easy bisect and revert if needed.

Checking and testing all valid transitions wasn't trivial, chances
are this will need broader testing to become more stable....

1bcef683 09/15/2011 10:39 pm Luiz Capitulino

Drop the incoming_expected global variable

Test against RSTATE_IN_MIGRATE instead.

Please, note that the RSTATE_IN_MIGRATE state is only set when all the
initial VM setup is done, while 'incoming_expected' was set right in
the beginning when parsing command-line options. Shouldn't be a problem...

1354869c 09/15/2011 10:39 pm Luiz Capitulino

Drop the vm_running global variable

Use runstate_is_running() instead, which is introduced by this commit.

Signed-off-by: Luiz Capitulino <>

6667b23f 09/15/2011 10:39 pm Luiz Capitulino

Monitor/QMP: Don't allow cont on bad VM state

We have two states where issuing cont before system_reset can
cause problems: RSTATE_SHUTDOWN (when -no-shutdown is used) and
RSTATE_PANICKED (which only happens with kvm).

This commit fixes that by doing the following when state is...

9e37b9dc 09/15/2011 10:39 pm Luiz Capitulino

QMP: query-status: Introduce 'status' key

This new key reports the current VM status to clients. Please, check
the documentation being added in this commit for more details.

Signed-off-by: Luiz Capitulino <>

da5391ed 09/09/2011 09:09 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

ad8b8186 09/09/2011 08:58 pm Gerd Hoffmann

Don't use g_thread_get_initialized.

Initialize glib threads unconditionally in main() instead
of using g_thread_get_initialized in the 9p code.

Fixes a build failure on RHEL-5, which ships glib 2.12.
g_thread_get_initialized was added in 2.20.

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

60474fb5 09/09/2011 11:43 am Stefan Weil

Fix comment (install patch -> install path)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

a74cd8cc 09/02/2011 06:35 pm Frediano Ziglio

rename qemu_malloc and related to glib names for coherence

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Frediano Ziglio <>
Signed-off-by: Anthony Liguori <>

12d4536f 09/02/2011 06:34 pm Anthony Liguori

main: force enabling of I/O thread

Enabling the I/O thread by default seems like an important part of declaring
1.0. Besides allowing true SMP support with KVM, the I/O thread means that the
TCG VCPU doesn't have to multiplex itself with the I/O dispatch routines which...

88adbdfd 09/02/2011 06:08 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/tracing' into staging

69e5bb68 09/01/2011 09:12 pm Anthony Liguori

Add glib support to main loop

This allows GSources to be used to register callback events in QEMU. This is
useful as it allows us to take greater advantage of glib and also because it
allows us to write code that is more easily testable outside of QEMU since we...

23d15e86 09/01/2011 12:34 pm Lluís

trace: add "-trace events" argument to control initial state

The "-trace events" argument can be used to provide a file with a list of trace
event names that will be enabled prior to starting execution, thus providing
early tracing.

This saves the user from manually toggling event states through the monitor...

6d8a764e 09/01/2011 12:34 pm Lluís

trace: [configure] rename CONFIG_*_TRACE into CONFIG_TRACE_*

Provides a more hierarchical view of the variable domain.

Also adds the CONFIG_TRACE_* variables for all backends.

[Stefan added missing 'test' in stap if statement]

Signed-off-by: Lluís Vilanova <>...

edb47ec4 09/01/2011 12:34 pm Lluís

trace: move backend-specific code into the trace/ directory

Signed-off-by: Lluís Vilanova <>

e4858974 09/01/2011 12:34 pm Lluís

trace: avoid conditional code compilation during option parsing

A default implementation for backend-specific routines is provided in
"trace/default.c", which backends can override by setting "trace_default=no" in
"configure".

Signed-off-by: Lluís Vilanova <>

200668ba 08/22/2011 10:37 pm Jan Kiszka

Do not drop global mutex for polled main loop runs

If we call select without a timeout, it's more efficient to keep the
global mutex locked as we may otherwise just play ping pong with a
vcpu thread contending for it. This is particularly important for TCG...

c9f711a5 08/22/2011 10:37 pm Jan Kiszka

Poll main loop after I/O events were received

Polling until select returns empty fdsets helps to reduce the switches
between iothread and vcpus. The benefit of this patch is best visible
when running an SMP guest on an SMP host in emulation mode.

Signed-off-by: Jan Kiszka <>...

27143a44 08/22/2011 06:17 pm Anthony Liguori

char: rename qemu_chr_open() -> qemu_chr_new()

Signed-off-by: Anthony Liguori <>

f69554b9 08/22/2011 06:17 pm Anthony Liguori

char: qemu_chr_open_opts() -> qemu_chr_new_from_opts()

Signed-off-by: Anthony Liguori <>

0750112a 08/21/2011 07:01 am Anthony Liguori

Add trace points for g_malloc/g_free functions

Derived from a patch submitted by Avi Kivity.

Signed-off-by: Anthony Liguori <>

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

0ac543de 08/21/2011 01:50 am Jan Kiszka

Reorder default ram_size initialization

code_gen_alloc depends on it, and that is now called earlier via
configure_accelerator.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Edgar E. Iglesias <>

d5ab9713 08/05/2011 06:57 pm Jan Kiszka

Avoid allocating TCG resources in non-TCG mode

Do not allocate TCG-only resources like the translation buffer when
running over KVM or XEN. Saves a "few" bytes in the qemu address space
and is also conceptually cleaner.

Signed-off-by: Jan Kiszka <>...

3046c984 07/29/2011 05:42 pm Anthony Liguori

Merge remote-tracking branch 'agraf/xen-next' into staging

2645c6dc 07/29/2011 05:33 pm Jan Kiszka

Allow to leave type on default in -machine

This allows to specify -machine options without setting an explicit
machine type. We will pick the default machine in this case. Requesting
the list of available machines is still possible via '-machine ?' e.g.
...

3d3b8303 07/29/2011 04:25 pm wayne

showing a splash picture when start

Added options to let qemu transfer two configuration files to bios:
"bootsplash.bmp" and "etc/boot-menu-wait", which could be specified by command
-boot splash=P,splash-time=T
P is jpg/bmp file name or an absolute path, T have a max value of 0xffff, unit...
834e76ea 07/26/2011 08:02 am Anthony PERARD

vl.c: Check the asked ram_size later.

As a Xen guest can have more than 2GB of RAM on a 32bit host, we move
the conditions after than we now if we run one Xen or not.

[agraf] separate xen branch from ram_size check

Signed-off-by: Anthony PERARD <>...

9e8dd451 07/23/2011 07:26 pm Jan Kiszka

notifier: Pass data argument to callback

This allows to pass additional information to the notifier callback
which is useful if sender and receiver do not share any other distinct
data structure.

Will be used first for the clock reset notifier.

Signed-off-by: Jan Kiszka <>...

ea0e5418 07/23/2011 07:19 pm Sasha Levin

vl.c: Don't limit node count by smp count

[I've sent this patch couple of months ago and noticed it
didn't make it's way in - so I'm sending it again]

It is possible to create CPU-less NUMA nodes, node amount shouldn't be
limited by amount of CPUs.

Tested-by: Michael Roth <>...

e69ae5c4 07/23/2011 07:19 pm Wen Congyang

do not reset no_shutdown after we shutdown the vm

Daniel P. Berrange sent a libvirt's patch to support
reboots with the QEMU driver. He implements it in
json model like this:
1. add -no-shutdown in the qemu's option:
qemu -no-shutdown xxxx
2. shutdown the vm by monitor command system_powerdown...

9052ea6b 07/23/2011 06:19 pm Jan Kiszka

Generalize -machine command line option

-machine somehow suggests that it selects the machine, but it doesn't.
Fix that before this command is set in stone.

Actually, -machine should supersede -M and allow to introduce arbitrary
per-machine options to the command line. That will change the internal...

9312805d 07/04/2011 11:12 pm Vasily Khoruzhick

pxa2xx_lcd: add proper rotation support

Until now, pxa2xx_lcd only supported 90deg rotation, but
some machines (for example Zipit Z2) needs 270deg rotation.

Signed-off-by: Vasily Khoruzhick <>
Signed-off-by: Andrzej Zaborowski <>

e063eb1f 06/16/2011 05:42 pm Jan Kiszka

Allow silent system resets

This allows qemu_system_reset to be issued silently for internal
purposes, ie. without sending out a monitor event. Convert the system
reset after startup to the silent mode.

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

953ffe0f 06/15/2011 10:58 pm Andreas Färber

Introduce format string for pid_t

BeOS and Haiku on i386 use long for 32-bit types, including pid_t.
Using %d with pid_t therefore results in a warning.

Unfortunately POSIX:2008 does not define a PRId* string for pid_t.

In some places pid_t was previously casted to long and %ld hardcoded....

c235d738 06/15/2011 07:51 pm Matthew Fernandez

Command line support for altering the log file location

Add command line support for logging to a location other than /tmp/qemu.log.

With logging enabled (command line option -d), the log is written to
the hard-coded path /tmp/qemu.log. This patch adds support for writing...

e447fc63 06/14/2011 01:56 pm Gerd Hoffmann

usb: don't call usb_host_device_open from vl.c

Not needed any more, usb-host is qdev-ified these days.
Well, at least the linux version ...

Signed-off-by: Gerd Hoffmann <>

ac779fe2 06/08/2011 08:15 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v37' into staging

Conflicts:
vl.c

0826c710 06/07/2011 09:52 pm Markus Armbruster

isa-vga: Make available with -device, like the other VGA qdevs

Switch no_user off and make it suppress the default VGA.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Anthony Liguori <>

a16c53b1 06/06/2011 04:54 pm Anthony Liguori

Fix regression introduced by -machine accel=

Commit 85097db6 changed the timing when kvm_allowed is set until after
kvm is initialized. During initialization, the ioeventfd initialization code
checks kvm_enabled() and after this change, ioeventfd is effectively disabled....

42138043 06/06/2011 10:14 am Gerd Hoffmann

qxl: add to the list of devices which disable the default vga

Signed-off-by: Gerd Hoffmann <>

af6bf132 05/19/2011 11:26 am Markus Armbruster

defaults: ide-cd, ide-hd and scsi-cd devices suppress default CD-ROM

ide-hd has to suppress the default CD-ROM, or else you can't put one
on secondary master without -nodefaults.

Unlike legacy scsi-disk, scsi-cd suppresses default CD-ROM.

Signed-off-by: Markus Armbruster <>...

1291eb35 05/08/2011 11:10 am Anthony PERARD

vl.c: Introduce getter for shutdown_requested and reset_requested.

Introduce two functions qemu_shutdown_requested_get and
qemu_reset_requested_get to get the value of shutdown/reset_requested
without reset it.

Signed-off-by: Anthony PERARD <>...

3285cf4f 05/08/2011 11:10 am Anthony PERARD

xen: Add initialisation of Xen

The xenpv machine use the common init function.

Signed-off-by: Anthony PERARD <>
Acked-by: Alexander Graf <>
Signed-off-by: Alexander Graf <>

303d4e86 05/08/2011 11:09 am Anthony PERARD

Introduce -machine command option.

This option gives the ability to switch one "accelerator" like kvm, xen
or the default one tcg. We can specify more than one accelerator by
separate them by a colon. QEMU will try each one and use the first whose
works....

67b724e6 05/08/2011 11:09 am Anthony PERARD

machine, Add default_machine_opts to QEMUMachine.

With this new field, we can specified which accelerator use to run the
machine, if the accelerator is not already specified by either a
configuration file or the command line options.

Currently, the only use will be made in the xenfv machine....

e14ea479 04/27/2011 06:31 pm Stefan Hajnoczi

vl.c: Replace -virtfs string manipulation with QemuOpts

The -virtfs option creates an fsdev representing the pass-through file
system and a guest-visible virtio-9p-pci device that can access this
file system. This patch replaces the string manipulation used to build...

71785aba 04/26/2011 03:26 pm Brad Hards

vl: trivial spelling fix

Signed-off-by: Brad Hards <>
Signed-off-by: Stefan Hajnoczi <>

e2982c3a 04/07/2011 02:51 pm Michael Tokarev

exit if -drive specified is invalid instead of ignoring the "wrong" -drive

This fixes the problem when qemu continues even if -drive specification
is somehow invalid, resulting in a mess. Applicable for both current
master and for stable-0.14 (and the same issue exist 0.13 and 0.12 too)....

29f82b37 04/04/2011 01:34 am Alexander Graf

virtio: use generic name when possible

We have two different virtio buses: pci and s390. The abstraction path
taken in qemu is to have generic aliases for each device type in the
architecture specific qdev devices.

So let's make use of these aliases whenever we can and define them...

0ce235a7 04/04/2011 01:26 am Gleb Natapov

register signal handler after initializing SDL.

SDL library initialization mangles signal handlers, so QEMU should
register them after initializing SDL. This was the case before and code
even have a comment about that. Fix it to be so again.

Signed-off-by: Gleb Natapov <>...

f1d3fb04 04/04/2011 01:24 am Peter Maydell

vl.c: Tidy up message printed when we exit on a signal

Tidy up the message printed when qemu exits due to a signal, so that
it's clearer where the message is coming from and that it's not just
stray debug output.

Signed-off-by: Peter Maydell <>...

02981419 03/29/2011 04:14 pm Paolo Bonzini

extract I/O handler lists to iohandler.c

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

f64622c4 03/26/2011 02:54 pm Gleb Natapov

report that QEMU process was killed by a signal

Currently when rogue script kills QEMU process (using TERM/INT/HUP
signal) it looks indistinguishable from system shutdown. Lets report
that QEMU was killed and leave some clues about the killer identity.

Signed-off-by: Gleb Natapov <>...

05175535 03/25/2011 02:28 pm Peter Maydell

vl.c: Fix compilation failure if CONFIG_SDL isn't defined

Fix a compilation failure if CONFIG_SDL isn't defined (gcc complained
that the label 'invalid_display' wasn't used).

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

58fc096c 03/22/2011 03:39 pm Jes Sorensen

error message if user specifies SDL cmd line option when SDL is disabled

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

47b05369 03/22/2011 03:39 pm Jes Sorensen

error message if user specifies curses on cmd line when curses is disabled

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

821601ea 03/22/2011 03:39 pm Jes Sorensen

Make VNC support optional

Per default VNC is enabled.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

1472a95b 03/22/2011 03:39 pm Jes Sorensen

Introduce -display argument

This patch introduces a -display argument which consolidates the
setting of the display mode. Valid options are:
sdl/curses/default

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

4171d32e 03/22/2011 03:39 pm Jes Sorensen

Introduce -display none

New option -display none. This option differs from -nographic by not
trying to take control of stdio etc. but instead behaves as if a
graphics display is enabled, except that it doesn't show one.

Signed-off-by: Jes Sorensen <>...

3264ff12 03/22/2011 03:39 pm Jes Sorensen

Add support for -display vnc

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

31b7c261 03/22/2011 12:42 am Anthony Liguori

Merge remote branch 'qemu-kvm/uq/master' into staging

7bd427d8 03/21/2011 10:23 am Paolo Bonzini

change all rt_clock references to use millisecond resolution accessors

This was done with:

sed -i '/get_clock\>.*rt_clock/s/get_clock\>/get_clock_ms/' \
$(git grep -l 'get_clock\>.*rt_clock' )
sed -i '/new_timer\>.*rt_clock/s/new_timer\>/new_timer_ms/' \...
31d3c9b8 03/15/2011 08:03 pm Stefan Hajnoczi

simpletrace: Move st_init() error reporting

User emulator builds do not have error_report() so it should not be used
by simpletrace.c. In fact, error reporting inside simpletrace.c is
inappropriate and should be done by the caller instead.

This patch moves st_init() error reporting out to its caller,...

a7ada151 03/15/2011 06:19 am Jan Kiszka

Synchronize VCPU states before reset

This is required to support keeping VCPU states across a system reset.
If we do not read the current state before the reset,
cpu_synchronize_all_post_reset may write back incorrect state
information.

The first user of this will be MCE MSR synchronization which currently...

0b5538c3 03/07/2011 05:34 pm Stefan Hajnoczi

simpletrace: Thread-safe tracing

Trace events outside the global mutex cannot be used with the simple
trace backend since it is not thread-safe. There is no check to prevent
them being enabled so people sometimes learn this the hard way.

This patch restructures the simple trace backend with a ring buffer...

e07bbac5 02/14/2011 04:39 pm Jan Kiszka

Improve vm_stop reason declarations

Define and use dedicated constants for vm_stop reasons, they actually
have nothing to do with the EXCP_* defines used so far. At this chance,
specify more detailed reasons so that VM state change handlers can
evaluate them....

8cf71710 02/14/2011 04:39 pm Jan Kiszka

Refactor debug and vmstop request interface

Instead of fiddling with debug_requested and vmstop_requested directly,
introduce qemu_system_debug_request and turn qemu_system_vmstop_request
into a public interface. This aligns those services with exiting ones in...

83f338f7 02/14/2011 04:39 pm Jan Kiszka

Move debug exception handling out of cpu_exec

To prepare splitting up KVM and TCG CPU entry/exit, move the debug
exception into cpus.c and invoke cpu_handle_debug_exception on return
from qemu_cpu_exec.

This also allows to clean up the debug request signaling: We can assign...

b4a3d965 02/14/2011 04:39 pm Jan Kiszka

Stop current VCPU on synchronous reset requests

If some I/O operation ends up calling qemu_system_reset_request in VCPU
context, we record this and inform the io-thread, but we do not
terminate the VCPU loop. This can lead to fairly unexpected behavior if...

1745eaaa 02/14/2011 04:39 pm Jan Kiszka

Process vmstop requests in IO thread

A pending vmstop request is also a reason to leave the inner main loop.
So far we ignored it, and pending stop requests issued over VCPU threads
were simply ignored.

Signed-off-by: Jan Kiszka <>...

8e1b90ec 02/14/2011 04:39 pm Jan Kiszka

Leave inner main_loop faster on pending requests

If there is any pending request that requires us to leave the inner loop
if main_loop, makes sure we do this as soon as possible by enforcing
non-blocking IO processing.

At this change, move variable definitions out of the inner loop to...

46481d39 02/14/2011 04:39 pm Jan Kiszka

Flatten the main loop

First of all, vm_can_run is a misnomer, it actually means "no request
pending". Moreover, there is no need to check all pending requests
twice, the first time via the inner loop check and then again when
actually processing the requests. We can simply remove the inner loop...

4fef930a 02/04/2011 10:21 pm Gleb Natapov

do not pass NULL to strdup.

Also use qemu_strdup() instead of strdup() in bootindex code.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Aurelien Jarno <>

b3a98367 02/01/2011 11:32 pm Anthony Liguori

Merge remote branch 'qemu-kvm/uq/master' into staging

aliguori: fix build with !defined(KVM_CAP_ASYNC_PF)

Signed-off-by: Anthony Liguori <>

319ae529 01/31/2011 12:59 pm Markus Armbruster

blockdev: Fix drive_add for drives without media

Watch this:

(qemu) drive_add 0 if=none
(qemu) info block
none0: type=hd removable=0 [not inserted]
(qemu) drive_del none0
Segmentation fault (core dumped)

add_init_drive() is confused about drive_init()'s failure modes, and...

5645b0f4 01/31/2011 12:57 pm Markus Armbruster

blockdev: Replace drive_add()'s fmt, ... by optstr parameter

Let the callers build the optstr. Only one wants to. All the others
become simpler, because they don't have to worry about escaping '%'.

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

4e5d9b57 01/31/2011 12:22 pm Markus Armbruster

blockdev: Reject multiple definitions for the same drive

We silently ignore multiple definitions for the same drive:

$ qemu-system-x86_64 -nodefaults -vnc :1 -S -monitor stdio -drive if=ide,index=1,file=tmp.qcow2 -drive if=ide,index=1,file=nonexistant...
2292ddae 01/31/2011 11:59 am Markus Armbruster

blockdev: Make drive_add() take explicit type, index parameters

Before, type & index were hidden in printf-like fmt, ... parameters,
which get expanded into an option string. Rather inconvenient for
uses later in this series.

New IF_DEFAULT to ask for the machine's default interface. Before,...

70b4f4bb 01/24/2011 12:08 pm Jes Sorensen

Make strtosz() return int64_t instead of ssize_t

strtosz() needs to return a 64 bit type even on 32 bit
architectures. Otherwise qemu-img will fail to create disk
images >= 2GB

Signed-off-by: Jes Sorensen <>
Signed-off-by: Kevin Wolf <>

cad1e282 01/23/2011 06:27 am Jan Kiszka

kvm: Drop smp_cpus argument from init functions

No longer used.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

a7bd621d 01/10/2011 06:32 pm Anthony Liguori

Merge remote branch 'mst/for_anthony' into staging

818c2e1b 12/27/2010 11:59 pm Aurelien Jarno

Merge branch 'spice.v23.pull' of git://anongit.freedesktop.org/spice/qemu

  • 'spice.v23.pull' of git://anongit.freedesktop.org/spice/qemu:
    vnc/spice: add set_passwd monitor command.
    vnc: support password expire
    vnc: auth reject cleanup
    spice: add qmp 'query-spice' and hmp 'info spice' commands....
5697f6ae 12/27/2010 07:29 pm Aurelien Jarno

Fix a missing trailing newline

Signed-off-by: Aurelien Jarno <>

80376c3f 12/20/2010 03:16 pm Isaku Yamahata

qbus: register reset handler for qbus whose parent is NULL

Stefan Weil reported the regression caused by
ec990eb622ad46df5ddcb1e94c418c271894d416 as follows

The second regression also occurs with MIPS malta.
Networking no longer works with the default pcnet nic....

4fd37a98 12/19/2010 04:05 pm Blue Swirl

Avoid a warning from OpenBSD linker

Avoid the warning below by using snprintf:
../libhw64/vl.o(.text+0x78d4): In function `get_boot_devices_list':
/src/qemu/vl.c:763: warning: sprintf() is often misused, please use snprintf()

Signed-off-by: Blue Swirl <>

4cab946a 12/11/2010 11:32 pm Gleb Natapov

Add notifier that will be called when machine is fully created.

Action that depends on fully initialized device model should register
with this notifier chain.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Blue Swirl <>

962630f2 12/11/2010 11:32 pm Gleb Natapov

Pass boot device list to firmware.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Blue Swirl <>

2e55e842 12/11/2010 11:32 pm Gleb Natapov

Add bootindex for option roms.

Extend -option-rom command to have additional parameter ,bootindex=.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Blue Swirl <>

1ca4d09a 12/11/2010 11:32 pm Gleb Natapov

Add bootindex parameter to net/block/fd device

If bootindex is specified on command line a string that describes device
in firmware readable way is added into sorted list. Later this list will
be passed into firmware to control boot order.

Signed-off-by: Gleb Natapov <>...

a19cbfb3 12/09/2010 03:23 pm Gerd Hoffmann

spice: add qxl device

qxl is a paravirtual graphics card. The qxl device is the bridge
between the guest and the spice server (aka libspice-server). The
spice server will send the rendering commands to the spice client, which
will actually render them....

c924f36a 12/01/2010 07:11 am Michael S. Tsirkin

Merge remote branch 'origin/master' into pci

Conflicts:
Makefile.objs
hw/virtio.c

ec990eb6 11/22/2010 10:00 am Anthony Liguori

qdev: reset qdev along with qdev tree

This patch changes the reset handling so that qdev has no knowledge of the
global system reset. Instead, a new bus/device level function is introduced
that allows all devices/buses on the bus/device to be reset using a depth...

94b0b5ff 11/21/2010 05:16 pm Stefan Hajnoczi

trace: Trace vm_start()/vm_stop()

VM state change notifications are invoked from vm_start()/vm_stop().
Trace these state changes so we can reason about the state of the VM
from trace output.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Anthony Liguori <>

0290b57b 11/16/2010 10:35 pm Stefan Hajnoczi

Delete IOHandlers after potentially running them

Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read()
handler that deletes its IOHandler is exposed to .fd_write() being
called on the deleted IOHandler.

This patch fixes deletion so that .fd_read() and .fd_write() are never...

9f9b17a4 11/03/2010 07:48 pm Jes Sorensen

Introduce strtosz() library function to convert a string to a byte count.

strtosz() returns -1 on error. It now supports human unit formats in
eg. 1.0G, with better error handling.

The following suffixes are supported:
B/b = bytes
K/k = KB
M/m = MB
G/g = GB...