Statistics
| Branch: | Revision:

root / vl.c @ 3f020d70

History | View | Annotate | Download (154.4 kB)

# Date Author Comment
3f020d70 02/08/2010 11:12 am malc

Revert "On some systems printf is a macro"

This reverts commit bc5b6004588ad17370e0416e40b4aa9cf977023b.

bc5b6004 02/07/2010 01:04 am malc

On some systems printf is a macro

Signed-off-by: malc <>

0dfbd514 02/05/2010 08:13 pm Paolo Bonzini

fix undefined shifts by >32

This one is for 0.12 too.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

ff952ba2 02/03/2010 08:39 pm Markus Armbruster

qdev: Fix exit code for -device ?

Help was shoehorned into device creation, qdev_device_add(). Since
help doesn't create a device, it returns NULL, which looks to callers
just like failed device creation. Monitor handler do_device_add()
doesn't care, but main() exits unsuccessfully....

28e68d68 01/27/2010 06:50 pm Anthony Liguori

Fix regression in option parsing

Commit ec229bbe7 broke invocation without a specific -hda. IOW, qemu foo.img.
The lack of an optind update caused an infinite loop.

Reported-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

625a5bef 01/27/2010 01:08 am Adam Litke

virtio: Add memory statistics reporting to the balloon driver

When using ballooning to manage overcommitted memory on a host, a system for
guests to communicate their memory usage to the host can provide information
that will minimize the impact of ballooning on the guests. The current method...

392ecf54 01/26/2010 11:42 pm Amit Shah

virtio-console: Automatically use virtio-serial-bus for the older -virtioconsole invocation

These hunks got dropped off mysteriously during the rebasing of my
virtio-serial series. Thanks go to Markus for noticing it.

Without these fixes, -virtioconsole doesn't actually have any effect....

dc330e28 01/26/2010 10:59 pm Kirill A. Shutemov

vl.c: fix warning with _FORTIFY_SOURCE

CC i386-softmmu/vl.o
cc1: warnings being treated as errors
/usr/src/RPM/BUILD/qemu-0.11.92/vl.c: In function 'qemu_event_increment':
/usr/src/RPM/BUILD/qemu-0.11.92/vl.c:3404: error: ignoring return value of 'write', declared with attribute warn_unused_result...

6530a97b 01/24/2010 05:37 pm Anthony Liguori

Move out option lookup into a separate function

Signed-off-by: Anthony Liguori <>

292444cb 01/24/2010 05:37 pm Anthony Liguori

Load global config files by default

A new option, nodefconfig is introduced to prevent loading from the default
config location. Otherwise, two configuration files will be searched for,
qemu.conf and target
<TARGET_NAME>.conf.

To ensure that the default configuration is overridden by a user specified...

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

b196b153 01/20/2010 04:25 pm Naphtali Sprei

Make CDROM a read-only drive

Signed-off-by: Naphtali Sprei <>
Signed-off-by: Anthony Liguori <>

f5edb014 01/20/2010 04:25 pm Naphtali Sprei

Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to explicitly request READ-WRITE.

Instead of using the field 'readonly' of the BlockDriverState struct for passing the request,...

5cdc9b76 01/14/2010 01:14 am Amit Shah

vl.c: Remove dead assignment

clang-analyzer pointed out the value of 'sockets' is never reused.

Signed-off-by: Amit Shah <>
CC: Andre Przywara <>
Signed-off-by: Anthony Liguori <>

8f0056b7 01/14/2010 01:14 am Paolo Bonzini

move kbd/mouse handling to input.c

Move 200 lines out of vl.c already into common code that only needs to
be compiled once.

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

3f7638ec 01/11/2010 05:56 pm Jiri Denemark

Fix CPU topology initialization

Late initialization of CPU topology in CPUState prevents KVM guests to
actually see the topology.

Signed-off-by: Jiri Denemark <>
Signed-off-by: Anthony Liguori <>

c9f398e5 01/08/2010 05:58 pm H. Peter Anvin

debugcon: support for debugging consoles (e.g. Bochs port 0xe9)

Add generic support for debugging consoles (simple I/O ports which
when written to cause debugging output to be written to a target.)
The current implementation matches Bochs' port 0xe9, allowing the same...

59d1c1c2 12/23/2009 08:25 am Scott Tsai

USB: Improve usbdevice error messages

When an non-existent USB device is specified on the command line,
print "qemu: could not add USB device 'X'".
Likewise for the usb_{add,del} monitor commands.

Signed-off-by: Scott Tsai <>
Signed-off-by: Aurelien Jarno <>

099fe236 12/19/2009 12:23 am Juha Riihimäki

fix pidfile option to work in WIN32

Explicit read/write locking pidfile under WIN32 is bit extreme
nobody get the chance to read the pidfile. Convert to a write-only lock.

Also, creating pidfile was disabled along with daemonize under
WIN32. Enable it, but do not enable daemon support which doesn't...

42be86ce 12/18/2009 07:26 pm Gerd Hoffmann

usb-net: use qdev for -usbdevice

Rebased to master, adapted to device renaming by armbru,
no other changes.

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

69fd02ee 12/18/2009 07:26 pm Gerd Hoffmann

fix vga names in default_list

Fix mismerge between 64465297 and 556cd098.

Cc: Markus Armbruster <>
Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

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

defaults: split default_drive

Split default_drive into default_{floppy,cdrom,sdcard}.
Also add QEMUMachine flags to disable them per machine.

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

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

15ff7705 12/18/2009 07:26 pm Gerd Hoffmann

Check rom_load_all() return value.

Check rom_load_all() return value.
Also don't make option rom loading failure fatal.

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

75f12475 12/18/2009 07:26 pm Kevin Wolf

Revert "Rename DriveInfo.onerror to on_write_error" (fix mismerge)

Part of the first patch of the -drive rerror series has been merged once more
on top of the rest of the series. This effectively disables the rerror option
and always goes with the default value. Reverting the commit re-enables the...

38536da1 12/18/2009 05:34 pm Alexander Graf

add default virtcon initialization

When going through the default devices, we don't initialize the virtio
console, unless we're doing -nographic.

I suppose that's just a leftover from the recent code restructuring, so
let's put it in.

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

e78c48ec 12/12/2009 03:59 pm Luiz Capitulino

monitor: Convert do_info_mice() to QObject

Each mouse is represented by a QDict, the returned QObject is a QList of
all mice.

This commit should not change user output.

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

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

default devices: virtio consoles.

This patch adds a variable default_virtcon which says whenever a default
virtio console should be added. It is disabled by default, followup
patch will enable it for s390. It is cleared when qemu finds
'-virtiocon', '-device virtio-console-s390' or '-device...

986c5f78 12/12/2009 03:59 pm Gerd Hoffmann

Set default console to virtio on S390x

All "normal" system emulation targets in qemu I'm aware of display
output on either VGA or serial output.

Our S390x virtio machine doesn't have such kind of legacy hardware. So
instead we need to default to a virtio console....

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

default devices: add global cmd line option.

Add global command line option to disable default devices.

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

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

default devices: network

Add a default_net variable which specified whenever a default network
should be created. It is cleared in case any -net option is specified
and it is also added to the new -nodefaults switch.

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

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

default devices: drives

Add a default_drive variable which specified whenever the default drives
(cdrom, floppy, sd) should be created. It is cleared when the new
-nodefaults switch is specified on the command line.

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

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...
22a0e04b 12/12/2009 03:59 pm Gerd Hoffmann

add new -mon switch

Add -mon switch which maps pretty straight forward into the QemuOpts
internal representation:

-mon chardev=&lt;name&gt;[,mode=[control|readline]][,[no]default]

Via config file:

[mon]
chardev = "<name>"
mode = "readline"
default = "on"...

6ca5582d 12/12/2009 03:59 pm Gerd Hoffmann

add -qmp convinience switch

Acts like -monitor but switched into qmp mode.

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

998bbd74 12/12/2009 03:59 pm Gerd Hoffmann

default devices: core code & serial lines.

Qemu creates a default serial line for you in case you didn't specify
one on the command line. Right now this is tied to the '-serial
<chardev>' command line switch, which in turn causes trouble if you are
creating your serial line via '-device isa-serial,<props>'....

6a5e8b0e 12/12/2009 03:59 pm Gerd Hoffmann

default devices: parallel port.

Qemu creates a default parallel port for you in case you didn't specify
one on the command line. Right now this is tied to the '-parallel
<chardev>' command line switch, which in turn causes trouble if you are
creating your parallel port via '-device isa-parallel,<props>'....

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

default devices: qemu monitor.

This patch makes the monitor default device configuration work like the
default serial and parallel port devices. It adds a variable
default_monitor which says whenever a default monitor should be added.
It is enabled by default. It is cleared when qemu finds '-monitor' on...

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

zap serial_monitor_mux

The logic in this code obviously predates the multiple monitor
capability of qemu and looks increasingly silly these days.

I think the intention of this piece of code is to get a reasonable
default for the -nographic case: have monitor and serial line muxed...

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

default devices: vga adapter.

Qemu creates a vga display for you in case you didn't specify one on the
command line. Right now this is tied to the '-vga <type>' command line
switch, which in turn causes trouble if you are creating your gfx card
using '-device VGA,<props>'....

1a688d3b 12/12/2009 03:59 pm Gerd Hoffmann

chardev: make chardevs specified in config file work.

The patch decuples the -chardev switch and the actual chardev
initialization. Without this patch qemu ignores chardev entries
coming via -readconfig.

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

4e307fc8 12/12/2009 03:59 pm Gerd Hoffmann

Revert "monitor: Command-line flag to enable control mode"

This reverts commit adcb181afe5a951c521411c7a8e9d9b791aa6742.

Conflicts:

monitor.h

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

014100bb 12/12/2009 03:59 pm Gerd Hoffmann

Revert "Set default console to virtio on S390x"

This reverts commit 93d434b4aec0702b87ebf52449a3cdf2c3596825.

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

51bfa4d3 12/12/2009 03:59 pm Gerd Hoffmann

chardev: move greeting into vc backend.

Make the 'vc' chardev backend print a title line with the chardev name
after initialization, using CharDriverState->label.

This replaces the banner printing code in vl.c.

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

458fb679 12/12/2009 03:59 pm Gerd Hoffmann

qdev: make compat stuff more generic

This patch renames the compat properties into global properties and
makes them more generic. The compatibility stuff is only one of
multiple possible users now.

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

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

93d434b4 12/05/2009 06:36 pm Alexander Graf

Set default console to virtio on S390x

All "normal" system emulation targets in qemu I'm aware of display output
on either VGA or serial output.

Our S390x virtio machine doesn't have such kind of legacy hardware. So
instead we need to default to a virtio console....

242cd003 12/04/2009 08:05 pm Blue Swirl

monitor: rename EVENT_* to QEVENT_* to avoid conflict on mingw32

Partially fixes mingw32 build.

Signed-off-by: Blue Swirl <>

fc072ec4 12/03/2009 11:25 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 <>

40ff6d7e 12/03/2009 07:45 pm Kevin Wolf

Don't leak file descriptors

We're leaking file descriptors to child processes. Set FD_CLOEXEC on file
descriptors that don't need to be passed to children to stop this misbehaviour.

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

84307938 12/03/2009 07:45 pm Jan Kiszka

ram migration: Properly reset statistics

As we may do more than one migration (cancellation, live backup), reset
bytes_transferred on stage 1.

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

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

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

ide: Implement rerror option

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

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

virtio-blk: Implement rerror option

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

9a743e5b 12/03/2009 06:48 pm Jan Kiszka

ram migration: Stop loading on error

Besides catching real errors, this also allows to interrrupt the qemu
process during restore.

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

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

68ac40d2 12/03/2009 05:41 pm Mark McLoughlin

net: move slirp code from net.c to net/slirp.c

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

b1a15e7e 12/03/2009 05:41 pm Luiz Capitulino

QMP: Introduce basic asynchronous events

Debug, shutdown, reset, powerdown and stop are all basic events,
as they are very simple they can be added in the same commit.

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

adcb181a 12/03/2009 05:41 pm Luiz Capitulino

monitor: Command-line flag to enable control mode

This commit adds a flag called 'control' to the '-monitor'
command-line option. This flag enables control mode.

The syntax is:

qemu [...] -monitor control,<device>

Where <device> is a chardev (excluding 'vc', for obvious reasons)....

bbe813a2 11/30/2009 04:42 pm Aurelien Jarno

Fix commit a167ba50851cdac2fa36633587e98c5956cd6b18

Signed-off-by: Aurelien Jarno <>

a167ba50 11/29/2009 07:00 pm Aurelien Jarno

Add support for GNU/kFreeBSD

Signed-off-by: Aurelien Jarno <>

c0d674b5 11/22/2009 03:19 pm Hervé Poussineau

[WIN32] Enable -k option on Windows too

There is no reason to have it disabled on this platform.

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Aurelien Jarno <>

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

57e073a3 11/17/2009 04:03 pm Amit Shah

char: Remove special init_reset handling

The initial_reset sent to chardevs doesn't do much other than setting
a bool to true. Char devices are interested in the open event and
that gets sent whenever the device is opened.

Moreover, the reset logic breaks as and when qemu's bh scheduling...

504c2948 11/12/2009 07:23 pm Juan Quintela

qemu_system_reset: we need to call it before loadvm/migration

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

715a664a 11/09/2009 04:43 pm Gerd Hoffmann

QemuOpts: command line switches for the config file.

Adds -readconfig and -writeconfig command line switches to read/write
QemuOpts from config file.

In theory you should be able to do:

qemu < machine config cmd line switches here > -writeconfig vm.cfg...
eb852011 11/09/2009 04:43 pm Markus Armbruster

Configurable block format whitelist

We have code for a quite a few block formats. While I trust that all
of these formats are useful at least for some people in some
circumstances, some of them are of a kind that friends don't let
friends use in production....

59f2689d 11/09/2009 04:43 pm Naphtali Sprei

Added readonly flag to -drive command

This is a slightly revised patch for adding readonly flag to the -drive command.
Even though this patch is "stand-alone", it assumes a previous related patch (in Anthony staging tree), that passes
the readonly attribute of the drive to the guest OS, applied first....

c1699988 11/07/2009 10:06 am Glauber Costa

v3: don't call reset functions on cpu initialization

There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,...

195325a4 10/30/2009 07:42 pm Anthony Liguori

Revert "Fall back to network boot as the last possible boot option"

This reverts commit 94ca5a985919cca312c505bbb0c824d175cc6bb8.

94ca5a98 10/30/2009 04:42 pm Anthony Liguori

Fall back to network boot as the last possible boot option

This is similiar to the default with most bare metal systems.

Signed-off-by: Anthony Liguori <>

2b0efdc3 10/30/2009 03:39 pm Gerd Hoffmann

usb-serial and braille: use qdev for -usbdevice

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

b3e461d3 10/30/2009 03:39 pm Gerd Hoffmann

usb-storage: use qdev for -usbdevice

Hook up usb_msd_init.

Also rework handling of encrypted block devices,
move the code out vl.c.

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

0958b4cc 10/30/2009 03:39 pm Gerd Hoffmann

usb core: use qdev for -usbdevice

This patchs adds infrastructure to handle -usbdevice via qdev callbacks.
USBDeviceInfo gets a name field (for the -usbdevice driver name) and a
callback for -usbdevice parameter parsing.

The new usbdevice_create() function walks the qdev driver list and looks...

fa7c70c3 10/30/2009 03:39 pm Gerd Hoffmann

usb-hid: use qdev for -usbdevice

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

4f999d05 10/27/2009 07:28 pm Kevin Wolf

Split out bottom halves

Instead of putting more and more stuff into vl.c, let's have the generic
functions that deal with asynchronous callbacks in their own file.

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

1abb8172 10/27/2009 07:28 pm Mark McLoughlin

net: remove unused includes of if_tun.h and if_tap.h

Looks like these are just artifacts of vl.c being split up.

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

5afe3f04 10/17/2009 12:08 pm Blue Swirl

Only IDE needs limits for CHS configuration

Signed-off-by: Blue Swirl <>

7f161aae 10/15/2009 05:32 pm Mark McLoughlin

net: add QemuOptsList arg to net_client_parse()

Patchworks-ID: 35505
Signed-off-by: Mark McLoughlin <>
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 <>

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

net: handle -netdevice options

Same as for -net except for:

- only tap, user, vde and socket types are supported
- the vlan parameter is not allowed
- the name parameter is not allowed but the id parameter is
required

Patchworks-ID: 35517
Signed-off-by: Mark McLoughlin <>...

d549db5a 10/12/2009 05:42 pm Glauber Costa

unlock iothread mutex before running kvm ioctl

Without this, kvm will hold the mutex while it issues its run ioctl,
and never be able to step out of it, causing a deadlock.

Patchworks-ID: 35359
Signed-off-by: Glauber Costa <>
Signed-off-by: Anthony Liguori <>

13cf8f21 10/06/2009 10:36 pm Mark McLoughlin

Port usb net to QemuOpts

We need net_client_init_from_opts() exported for this

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

dc1c9fe8 10/06/2009 10:36 pm Mark McLoughlin

Final net cleanup after conversion to QemuOpts

Now that net_client_init() has no users, kill it off and rename
net_client_init_from_opts().

There is no further need for the old code in net_client_parse() either.
We use qemu_opts_parse() 'firstname' facitity for that. Instead, move...

b386becf 10/06/2009 10:36 pm Mark McLoughlin

Remove double error message for -device option parsing

qemu_opts_parse() gives a suitable error message in all failure cases
so we can remove the error message from the caller.

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

3cd67992 10/06/2009 10:36 pm Mark McLoughlin

Don't assign a static string to NICInfo::model

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

0752706d 10/06/2009 10:36 pm Markus Armbruster

Don't exit() in config_error()

Propagating errors up the call chain is tedious. In startup code, we
can take a shortcut: terminate the program. This is wrong elsewhere,
the monitor in particular.

config_error() tries to cater for both customers: it terminates the...

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

45a50b16 10/06/2009 10:36 pm Gerd Hoffmann

Reorganize option rom (+linux kernel) loading.

This patch adds infrastructure to maintain memory regions which must be
restored on reset. That includes roms (vga bios and option roms on pc),
but is also used when loading linux kernels directly. Features:...

850810d0 10/05/2009 10:02 pm Justin M. Forbes

Improve error reporting on file access

By making the error reporting include strerror(errno), it gives the user
a bit more indication as to why qemu failed. This is particularly
important for people running qemu as a non root user.

Signed-off-by: Justin M. Forbes <>...

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

3418bd25 10/05/2009 05:32 pm Gerd Hoffmann

qdev hotplug: infrastructure and monitor commands.

Adds device_add and device_del commands. device_add accepts accepts
the same syntax like the -device command line switch. device_del
expects a device id. So you should tag your devices with ids if you...

f64382ba 10/05/2009 05:32 pm Jan Kiszka

win32: Drop dead dyntick timer code

nearest_delta_us is calculated but not used. Drop it.

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

21d5d12b 10/05/2009 05:32 pm Jan Kiszka

Introduce QEMU_CLOCK_HOST

Despite its name QEMU_CLOCK_REALTIME is (normally) not using
CLOCK_REALTIME / the host system time as base. In order to allow also
non-trivial RTC emulations (MC146818) to follow the host time instead of
the virtual guest time, introduce the new clock type QEMU_CLOCK_HOST. It...

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

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

e5bc201d 10/05/2009 05:32 pm Glauber Costa

do proper cpu_self check

Currently, our check for qemu_cpu_self only checks if there is a cpu
currently in execution (represented by cpu_single_env being set). While
this might be okay for tcg, it is certainly not okay for kvm, since multiple
cpus might be executing....

0fdddf80 10/05/2009 05:32 pm Jan Kiszka

Rename QEMU_TIMER_* to QEMU_CLOCK_*

These constants select clocks, not timers. And init_timers initializes
clocks.

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