Statistics
| Branch: | Revision:

root / sysemu.h @ 640e5404

History | View | Annotate | Download (5 kB)

# Date Author Comment
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 <>

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

adc56dda 04/15/2011 11:14 pm Blue Swirl

migration: move some declarations to migration.h

Move a few migration related declarations to migration.h.

Signed-off-by: Blue Swirl <>

17a4663e 04/15/2011 11:14 pm Blue Swirl

Move CPU related functions to cpus.h

Move declarations of CPU related functions to cpus.h. Adjust the only user.

Signed-off-by: Blue Swirl <>

70c3b557 04/15/2011 11:14 pm Blue Swirl

Move clock related functions to qemu-timer.h

Move declarations for clock related functions from sysemu.h to qemu-timer.h.

Signed-off-by: Blue Swirl <>

082b5557 04/15/2011 09:25 pm Blue Swirl

Move generic or OS function declarations to qemu-common.h

Move generic or OS related function declarations and macro
TFR to qemu-common.h.

Move win32 include directives to qemu-os-win32.h. While moving,
also add #include <winsock2.h> to fix a recent mingw32...

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

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

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

0dfa5ef9 01/25/2011 10:18 am Isaku Yamahata

audio: consolidate audio_init()

consolidate audio_init() and remove references to shoundhw.

Signed-off-by: Isaku Yamahata <>
Acked-by: Blue Swirl <>
Signed-off-by: Aurelien Jarno <>

dc912121 01/17/2011 06:22 pm Alex Williamson

savevm: Fix no_migrate

The no_migrate save state flag is currently only checked in the
last phase of migration. This means that we potentially waste
a lot of time and bandwidth with the live state handlers before
we ever check the no_migrate flags. The error message printed...

6107ff12 01/10/2011 01:43 pm Michael S. Tsirkin

Merge remote branch 'origin/master' into pci

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....
2ae63bda 12/24/2010 10:35 am Isaku Yamahata

pcie/aer: glue aer error injection into qemu monitor

introduce pcie_aer_inject_error command.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Michael S. Tsirkin <>

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

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.

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

f2b07c92 07/11/2010 11:14 pm Isaku Yamahata

pci hotplug: make pci_device_hot_remove() static

Signed-off-by: Isaku Yamahata <>
Acked-by: Gerd Hoffmann <>
Signed-off-by: Michael S. Tsirkin <>

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

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

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

39626c03 06/12/2010 08:49 am Jes Sorensen

Create qemu-os-win32.h and move WIN32 specific declarations there

Create qemu-os-win32.h for WIN32 specific declarations. Move polling
handling declaration into this file from sysemu.h

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

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

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

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

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

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

7b370f51 06/04/2010 12:43 pm Markus Armbruster

qdev: Move declaration of qdev_init_bdrv() into qdev.h

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

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

sysemu: Export 'no_shutdown'

It's a global variable already, do_quit() will use it.

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

6c6a58ae 05/19/2010 06:04 pm Markus Armbruster

Revert "PCI: Convert pci_device_hot_add() to QObject"

Short story: We don't want pci_add in QMP. Long story follows.

pci_add can do two things:

  • Hot plug a PCI NIC. device_add is more general.
  • Hot plug a PCI disk controller, and a drive connected to it....
b752daf0 05/19/2010 06:04 pm Markus Armbruster

Revert "monitor: Convert do_pci_device_hot_remove() to QObject"

We don't want pci_del in QMP. Use device_del instead.

This reverts commit 6848d827162fea039f2658414a4adb6164a4f9b0.

Conflicts:

hw/pci-hotplug.c
sysemu.h

Signed-off-by: Markus Armbruster <>

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

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

9f59b566 03/27/2010 03:30 pm Markus Armbruster

error: Trim includes after "Move qemu_error & friends..."

Missed in commit 2f792016.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Aurelien Jarno <>

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

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

Add exit notifiers

Like atexit() but with state

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

03cd4655 03/16/2010 05:55 pm Markus Armbruster

savevm: Fix -loadvm to report errors to stderr, not the monitor

A monitor may not even exist.

Change load_vmstate() to use qemu_error() instead of monitor_printf().
Parameter mon is now unused, remove it.

6e4f984c 03/16/2010 05:55 pm Markus Armbruster

error: Simplify error sink setup

qemu_error_sink can either point to a monitor or a file. In practice,
it always points to the current monitor if we have one, else to
stderr. Simply route errors to the current monitor or else to stderr,
and remove qemu_error_sink along with the functions to control it....

2f792016 03/16/2010 05:55 pm Markus Armbruster

error: Move qemu_error & friends into their own header

80cd3478 03/08/2010 07:30 pm Luiz Capitulino

QMP: Introduce RTC_CHANGE event

Emitted whenever the RTC time changes.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

ea375f9a 03/04/2010 05:29 am Jan Kiszka

KVM: Rework VCPU state writeback API

This grand cleanup drops all reset and vmsave/load related
synchronization points in favor of four(!) generic hooks:

- cpu_synchronize_all_states in qemu_savevm_state_complete
(initial sync from kernel before vmsave)...

395560c8 02/19/2010 11:18 pm Luiz Capitulino

Monitor: Convert pci_device_hot_add() to cmd_new_ret()

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

053801bc 02/19/2010 11:18 pm Luiz Capitulino

Monitor: Convert pci_device_hot_remove() to cmd_new_ret()

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

98b19252 01/20/2010 04:25 pm Amit Shah

virtio-console: qdev conversion, new virtio-serial-bus

This commit converts the virtio-console device to create a new
virtio-serial bus that can host console and generic serial ports. The
file hosting this code is now called virtio-serial-bus.c.

The virtio console is now a very simple qdev device that sits on the...

7a344f7a 12/12/2009 03:59 pm Luiz Capitulino

PCI: Convert pci_device_hot_add() to QObject

Return a QDict with information about the just added device.

This commit should not change user output.

Please, note that this patch does not do error handling
conversion. In error conditions the handler still calls...

f7850099 12/03/2009 07:45 pm Kevin Wolf

Rename DriveInfo.onerror to on_write_error

Either rename variables and functions to refer to write errors (which is what
they actually do) or introduce a parameter to distinguish reads and writes.

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

e9b2e818 12/03/2009 07:45 pm Kevin Wolf

Introduce rerror option for drives

rerror controls the action to be taken when an error occurs while accessing the
guest image file. It corresponds to werror which already controls the action
take for write errors.

This purely introduces parsing rerror command line option into the right...

4ec7fcc7 12/03/2009 06:48 pm Jan Kiszka

live migration: Allow cleanup after cancellation or error

Introduce qemu_savevm_state_cancel and inject a stage -1 to cancel a
live migration. This gives the involved subsystems a chance to clean up
dynamically allocated resources. Namely, the block migration layer can...

f327aa0c 12/03/2009 06:48 pm Jan Kiszka

live migration: Propagate output monitor to callback handler

In order to allow proper progress reporting to the monitor that
initiated the migration, forward the monitor reference through the
migration layer down to SaveLiveStateHandler.

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

8204a918 12/03/2009 05:41 pm Luiz Capitulino

monitor: QError support

This commit adds QError support in the Monitor.

A QError member is added to the Monitor struct. This new member
stores error information and is also used to check if an error
has occurred when the called handler returns.

Additionally, a new macro called qemu_error_new() is introduced....

c163b5ca 11/17/2009 04:49 pm lirans@il.ibm.com

Block live migration

This patch introduces block migration called during live migration. Block
are being copied to the destination in an async way. First the code will
transfer the whole disk and then transfer all dirty blocks accumulted during
the migration....

a8ed73f7 10/30/2009 03:39 pm Mark McLoughlin

net: move more stuff into net/tap-win32.c, add net/tap.h

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

6848d827 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_pci_device_hot_remove() to QObject

Errors are still directly printed, as we are only converting
regular output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

9ad4531e 10/27/2009 07:28 pm Gerd Hoffmann

kill dead nic unplug code.

Cleanup on unplug happens via qdev->exit() callback now.

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

0ca9f8a4 10/06/2009 10:36 pm Dustin Kirkland

offer right-ctrl as a grab option

Add support for -ctrl-grab to use the right-ctrl button to grab/release
the mouse in SDL.

The multi-button ctrl-alt and ctrl-alt-shift grab buttons present an
accessibility problem to users who cannot press more than one button...

3f84865a 10/05/2009 05:32 pm Gerd Hoffmann

pci: windup acpi-based hotplug

Switch over acpi-based PCI hotplug for pc over to the new
qdev-based pci hotplugging.

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

56a14938 10/05/2009 05:32 pm Gerd Hoffmann

drive cleanup fixes.

Changes: * drive_uninit() wants a DriveInfo now. * drive_uninit() also calls bdrv_delete(),
so callers don't need to do that. * drive_uninit() calls are moved over to the ->exit()
callbacks, destroy_bdrvs() is zapped. * setting bdrv->private is not needed any more as the...

6875204c 10/05/2009 05:32 pm Jan Kiszka

Enable host-clock-based RTC

Switch RTC emulations to the new host_clock instead of vm_clock by
default. This has the advantage that the emulated RTC will follow
automatically the host time while it might be tuned via NTP. vm_clock
can still be selected by passing '-rtc clock=vm' on the command line....

ca20cf32 09/20/2009 05:58 pm Blue Swirl

Compile loader only once

Callers must pass ELF machine, byte swapping and symbol LSB clearing
information to ELF loader. A.out loader needs page size information, pass
that too as a parameter.

Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw....

075cd324 09/13/2009 11:32 am Blue Swirl

x86: move a declaration to header

Signed-off-by: Blue Swirl <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

d54908a5 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_1 to use QDict

This commit ports command handlers that receive one argument to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

f18c16de 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_2 to use QDict

This commit ports command handlers that receive two arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

1d4daa91 09/04/2009 05:37 pm Luiz Capitulino

monitor: Port handler_3 to use QDict

This commit ports command handlers that receive three arguments to use
the new monitor's dictionary.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

38183186 09/04/2009 05:37 pm Luiz Capitulino

Add wrappers to functions used by the Monitor

Some functions exported to be used by the Monitor as command
handlers are also called in other places as regular functions.

When those functions got ported to use the Monitor dictionary
to pass argments, the callers will have to setup a dictionary...

382f0743 08/28/2009 04:46 am Gerd Hoffmann

switch balloon initialization to -device.

With that patch applied "-balloon virtio,args" becomes a shortcut for
"-device virtio-balloon-pci,args".

Side effects:
- ballon device gains support for id=<tag>.
- ballon device is off by default now.
- initialization order changes, which may in different pci slot...

ac7531ec 08/28/2009 04:43 am Gerd Hoffmann

add qemu_error() + friends

This patch adds some functions for error reporting to address the
problem that error messages should be routed to different destinations
depending on the context of the caller, i.e. monitor command errors
should go to the monitor, command line errors to stderr....

7b630349 08/28/2009 04:30 am Juan Quintela

split do_loadvm() into do_loadvm() and load_vmstate()

do_loadvm() is now called from the monitor.
load_vmstate() is called by do_loadvm() and when -loadvm command line is used.
Command line don't have to play games with vmstop()/vmstart()

Signed-off-by: Juan Quintela <>...

c8d41b2c 08/28/2009 04:30 am Juan Quintela

move do_loadvm() to monitor.c

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

05f2401e 08/28/2009 04:30 am Juan Quintela

make load_vmstate() return errors

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

4a1418e0 08/24/2009 04:02 pm Anthony Liguori

Unbreak large mem support by removing kqemu

kqemu introduces a number of restrictions on the i386 target. The worst is that
it prevents large memory from working in the default build.

Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on...

6b35e7bf 08/24/2009 04:01 pm Jes Sorensen

QEMU set irq0override in fw_cfg

Hi,

After discussing the issue with Avi, Gleb and a couple others on irq,
we came to the conclusion that it is preferred to have QEMU request
features from the BIOS, rather than notifying the BIOS that it is
running on QEMU or KVM. This way memory ranges can change etc. and...

86176759 08/24/2009 04:01 pm Zachary Amsden

Clean up VGA type selection; far too many variables being used to track one state leads to confusion if new variables are added.

Signed-off-by: Zachary Amsden <>
Signed-off-by: Anthony Liguori <>

2e810b36 08/10/2009 09:05 pm Gerd Hoffmann

constify drive_get_by_id arg

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

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

add -drive if=none

This adds a host drive, but doesn't implicitly add a guest drive for it.
First step in splitting host and guest configuration, check the
following patches to see how this can be used ...

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

d9c32310 08/09/2009 11:42 am Blue Swirl

Use qemu_irq for system_powerdown

Signed-off-by: Blue Swirl <>

d399f677 07/30/2009 05:50 pm Paolo Bonzini

fix migration to obey -S

Since migration returns right away, starting the VM right
after calling qemu_start_incoming_migration is wrong even
if -S is not passed. We have to do this after migration
has completed.

Cc: Glauber Costa <>
Cc: Anthony Liguori <>...

6be68d7e 07/27/2009 10:09 pm Jes Sorensen

Introduce -smp , maxcpus= flag to specify maximum number of CPUS.

Follow on patch will use it to determine the size of the MADT and
other BIOS tables.

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

751c6a17 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_table

First step cleaning up the drives handling. This one does nothing but
removing drives_table[], still it became seriously big.

drive_get_index() is gone and is replaced by drives_get() which hands
out DriveInfo pointers instead of a table index. This needs adaption in...

1dae12e6 07/27/2009 10:08 pm Gerd Hoffmann

add support for drive ids.

-drive accepts the new id= now, allowing to explicitely name your
drives. They will show up with that name in "info block" if specified,
otherwise the existing namimg scheme is used to autogenerate one.

There is also a new function to lookup drives by name. Not used yet....

3b0ba927 07/27/2009 10:08 pm Gerd Hoffmann

kill drives_opt

cleanup pretty simliar to the drives_table removal patch:
- drop the table and make a linked list out of it.
- pass around struct pointers instead of table indices.

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

62c5802e 07/27/2009 10:08 pm Gerd Hoffmann

move parser functions from vl.c to qemu-option.c

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

9dfd7c7a 07/27/2009 10:08 pm Gerd Hoffmann

switch -drive to QemuOpts.

Demo QemuOpts in action ;)

Implementing a alternative way to specify the filename should be
just a few lines of code now once we decided how the cmd line syntax
should look like.

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

95387491 07/16/2009 04:28 pm Jan Kiszka

Add boot menu control via command line switch

Disable the lengthy BIOS prompt for selecting a boot device by default,
but let the user reenable it via '-boot menu=on'.

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

7d4c3d53 06/29/2009 10:18 pm Markus Armbruster

Replace -no-virtio-balloon by -balloon

We want to do (at least) two things to the virtio-balloon device:
suppress it, and control its PCI address. Option -no-virtio-balloon
lets us do only the former. To get the latter, replace
-no-virtio-balloon with
...

5db4af8b 06/29/2009 04:52 pm Jan Kiszka

Introduce get_next_param_value

In order to parse multiple instances of the same param=value pair,
introduce get_next_param_value which can pass back to string parsing
position after reading a parameter value.

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

bf011293 06/24/2009 05:09 pm john cooper

Add serial number support for virtio_blk

[brought forward to current qemu-kvm.git]

This patch implements the missing qemu logic to
interpret a '-drive .. serial=XYZ ..' flag for
a virtio_blk device.

The serial number string is contained in a
skeletal IDENTIFY DEVICE data structure and...

c2cc47a4 06/22/2009 06:15 pm Markus Armbruster

Support addr=... in option argument of -drive if=virtio

Make drive_init() accept addr=, put the value into struct DriveInfo.
Use it in all the places that create virtio-blk-pci devices:
pc_init1(), bamboo_init(), mpc8544ds_init().

Don't support addr= in third argument of monitor command pci_add and...

9d5e77a2 06/22/2009 06:15 pm Isaku Yamahata

acpi.c: make qemu_system_device_hot_add piix independent.

introruce piix4_device_hot_add() for piix4 specific code
and make qemu_system_device_hot_add() generic.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>