Statistics
| Branch: | Revision:

root / vl.c @ 0521d375

History | View | Annotate | Download (103 kB)

# Date Author Comment
3d1d9652 08/09/2012 10:53 pm Bruce Rogers

handle device help before accelerator set up

A command line device probe using just -device "?" gets processed
after qemu-kvm initializes the accelerator. If /dev/kvm is not
present, the accelerator check will fail (kvm is defaulted to on),
which causes libvirt to not be set up to handle qemu guests....

ee785fed 08/04/2012 04:23 pm Chegu Vinod

Fixes related to processing of qemu's -numa option

The -numa option to qemu is used to create [fake] numa nodes
and expose them to the guest OS instance.

There are a couple of issues with the -numa option:

a) Max VCPU's that can be specified for a guest while using...

70678b82 08/04/2012 02:28 am Anthony Liguori

fips: fix build on !Linux

Commit 0f66998 makes -enable-fips conditional on Linux hosts but then uses it
unconditionally in vl.c.

Fix this by moving the fips handling to os-posix.c and adding a condition.

Cc: Paul Moore <>
Signed-off-by: Anthony Liguori <>

0f66998f 08/03/2012 10:28 pm Paul Moore

vnc: disable VNC password authentication (security type 2) when in FIPS mode

FIPS 140-2 requires disabling certain ciphers, including DES, which is used
by VNC to obscure passwords when they are sent over the network. The
solution for FIPS users is to disable the use of VNC password auth when the...

c8057f95 08/02/2012 09:16 pm Peter Maydell

Support 'help' as a synonym for '?' in command line options

For command line options which permit '?' meaning 'please list the
permitted values', add support for 'help' as a synonym, by abstracting
the check out into a helper function.

This change means that in some cases where we were being lazy in...

e6a76719 07/30/2012 05:58 pm Anthony Liguori

Merge commit 'quintela/migration-next-v5' into staging

  • commit '6c779f22a93cc6e4565b940ef616e3efc5b50ba5':
    Change ram_save_block to return -1 if there are no more changes
    ram: save_live_setup() we don't need to synchronize the dirty bitmap.
    ram: iterate phase...
52d06136 07/28/2012 12:08 pm Peter Maydell

vl.c: Don't print errno after failed qemu_chr_new()

The qemu_chr_new() function doesn't set errno on failure, so
don't print strerror(errno) on the error handling path when
dealing with the -serial, -parallel and -virtioconsole arguments.
This avoids nonsensical error messages like:...

7908c78d 07/20/2012 09:19 am Juan Quintela

savevm: Live migration handlers register the struct directly

Notice that the live migration users never unregister, so no problem
about freeing the ops structure.

Signed-off-by: Juan Quintela <>

2b584959 07/17/2012 05:48 pm Markus Armbruster

block: Geometry and translation hints are now useless, purge them

There are two producers of these hints: drive_init() on behalf of
-drive, and hd_geometry_guess().

The only consumer of the hint is hd_geometry_guess().

The callers of hd_geometry_guess() call it only when drive_init()...

94b204ca 07/13/2012 12:38 pm Amos Kong

vnc: add a more descriptive error message

Currently qemu outputs some low-level error in qemu-sockets.c
when failed to start vnc server.
eg. 'getaddrinfo(127.0.0.1,5902): Name or service not known'

Some libvirt users could not know what's happened with this...

31783203 07/11/2012 04:51 pm Peter Maydell

qemu_find_file: check name as a straight path even if it has no '/'

Make qemu_find_file() check for the passed in name as a straight
pathname even if it doesn't have any path separator character in it.
This means that "-bios foo", "-dtb foo" etc will find a file 'foo'...

93bfef4c 06/19/2012 09:36 pm Crístian Viana

Allow machines to configure the QEMU_VERSION that's exposed via hardware

QEMU exposes its version to the guest's hardware and in some cases that is wrong
(e.g. Windows prints messages about driver updates when you switch
the QEMU version).
There is a new field now on the struct QEmuMachine, hw_version, which may...

3294ce18 06/09/2012 01:30 pm Michael Tokarev

do not include <libutil.h> needlessly or if it doesn't exist

<libutil.h> and <util.h> on *BSD (some have one, some another)
were #included just for openpty() declaration. The only file
where this function is actually used is qemu-char.c.

In vl.c and net/tap-bsd.c, none of functions declared in libutil.h...

8be7e7e4 06/04/2012 07:49 pm Luiz Capitulino

qemu-option: qemu_opts_create(): use error_set()

This commit converts qemu_opts_create() from qerror_report() to
error_set().

Currently, most calls to qemu_opts_create() can't fail, so most
callers don't need any changes.

The two cases where code checks for qemu_opts_create() erros are:...

77f4c9a6 05/14/2012 04:44 pm Anthony Liguori

Merge remote-tracking branch 'origin/master' into staging

  • origin/master:
    sun4u: implement interrupt clearing registers
    sun4u: initialize OBIO interrupt mappings
    fix block loads broken in commit 30038fd818
    Implement address masking for SPARC v9 CPUs...
7f1b17f2 05/12/2012 12:15 pm Paolo Bonzini

vga: disable default VGA if appropriate -device is used

This is a partial revert of commits a369da5 (vga: improve VGA logic,
committed 2012-01-22) and c5bd4f3 (vga: fix -nodefaults -device VGA,
2012-01-24) which broke command-line option parsing in different ways....

f29a5614 05/10/2012 08:37 pm Eduardo Habkost

implement -no-user-config command-line option (v3)

Changes v2 -> v3:
- Rebase against latest qemu.git

Changes v1 -> v2:
- Change 'userconfig' field/variables to bool instead of int
- Coding style change

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

d5c5dacc 05/10/2012 08:37 pm Amos Kong

use inet_listen()/inet_connect() to support ipv6 migration

Use help functions in qemu-socket.c for tcp migration,
which already support ipv6 addresses.

Currently errp will be set to UNDEFINED_ERROR when migration fails,
qemu would output "migration failed: ...", and current user can...

3ed2d9ee 05/10/2012 08:37 pm Eduardo Habkost

vl.c: change 'defconfig' variable to bool (v2)

Changes v1 -> v2:
- Actually change the variable type declaration to 'bool'

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Anthony Liguori <>

b5a8fe5e 05/10/2012 08:37 pm Eduardo Habkost

move code to read default config files to a separate function (v2)

Function added to arch_init.c because it depends on arch-specific
settings.

Changes v1 -> v2:
- Move qemu_read_default_config_file() prototype to qemu-config.h

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

9abc62f6 05/08/2012 08:30 pm Luiz Capitulino

vl: drop is_suspended variable

Check for the RUN_STATE_SUSPENDED state instead.

Signed-off-by: Luiz Capitulino <>

ad02b96a 05/08/2012 08:30 pm Luiz Capitulino

runstate: introduce suspended state

QEMU enters in this state when the guest suspends to ram (S3).

This is important so that HMP users and QMP clients can know that
the guest is suspended. QMP also has an event for this, but events
are not reliable and are limited (ie. a client can connect to QEMU...

b7c8e15a 03/31/2012 03:10 pm Blue Swirl

Merge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
    pl031: switch clock base to rtc_clock
    pl031: rearm alarm timer upon load
    arm: switch real-time clocks to rtc_clock...
c7f0f3b1 03/30/2012 04:14 pm Anthony Liguori

qtest: add test framework

The idea behind qtest is pretty simple. Instead of executing a CPU via TCG or
KVM, rely on an external process to send events to the device model that the CPU
would normally generate.

qtest presents itself as an accelerator. In addition, a new option is added to...

78808141 03/30/2012 01:31 pm Paolo Bonzini

rtc: add -rtc clock=rt

This will let people use backwards-compatible semantics for devices that
will be affected by the following patches.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Peter Maydell <>

1d6528af 03/26/2012 01:28 pm Eduardo Habkost

vl.c: fix '-cpu ?' segfault

Fix stupid copy&paste mistake at commit
ecf40beae7dcbb057d4f115207f9d8276832a774: I moved code around but kept
"optarg" on the cpu_list() call.

Reported-by: Jiri Denemark <>
Signed-off-by: Eduardo Habkost <>...

33cf629a 03/19/2012 08:39 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/saverestore-8' into staging

  • sstabellini/saverestore-8:
    xen: do not allocate RAM during INMIGRATE runstate
    xen mapcache: check if memory region has moved.
    xen: record physmap changes to xenstore
    Set runstate to INMIGRATE earlier...
81323a6c 03/19/2012 08:21 pm Stefano Stabellini

Set runstate to INMIGRATE earlier

Set runstate to RUN_STATE_INMIGRATE as soon as we can on resume.

Signed-off-by: Stefano Stabellini <>
Acked-by: Luiz Capitulino <>

ad1be899 03/19/2012 02:12 pm Alon Levy

spice: fix broken initialization

Commit 1b71f7c14fab6f00c2680d4489fbee7baf796e4f moved MODULE_INIT_QOM to
way before MODULE_INIT_MACHINE, thereby breaking assumptions made in
spice-core.c which registered both a type initializer and a machine
intializer....

1b71f7c1 03/13/2012 08:23 pm Andreas Färber

qom: Register QOM infrastructure early

The constructors for QOM TYPE_INTERFACE were executed rather late in
vl.c's main(). Call them very early so that QOM can safely be used for
machines and CPUs.

Signed-off-by: Andreas Färber <>
Cc: Anthony Liguori <>...

ecf40bea 03/12/2012 09:05 pm Eduardo Habkost

initialize CPU model list after handling -readconfig options

To properly load cpudefs using -readconfig, we have to call
cpudef_init() after finishing the command-line option handling.

Consequently, the handling of "-cpu ?" has to be done after the
command-line option handling loop, too....

412beee6 03/02/2012 01:56 pm Grant Likely

arm: add device tree support

If compiled with CONFIG_FDT, allow user to specify a device tree file using
the -dtb argument. If the machine supports it then the dtb will be loaded
into memory and passed to the kernel on boot.

Signed-off-by: Jeremy Kerr <>...

3741715c 02/27/2012 04:40 pm Jan Kiszka

usb: Resolve warnings about unassigned bus on usb device creation

When creating an USB device the old way, there is no way to specify the
target bus. Thus the warning issued by usb_create makes no sense and
rather confuses our users.

Resolve this by passing a bus reference to the usbdevice_init handler...

967c0da7 02/24/2012 09:36 pm Peter Maydell

vl.c: Avoid segfault when started with no arguments

Fix a bug (introduced in commit a0abe47) where a command line which
specified no machine arguments (either explicitly or implicitly via
-kernel &co) would result in a segfault because of a NULL pointer
returned from qemu_opts_find(qemu_find_opts("machine"), 0)....

53370b78 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add qmp events

Send qmp events on suspend and wakeup so libvirt
has a chance to track the vm state.

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

95b363b5 02/24/2012 09:36 pm Gerd Hoffmann

suspend: add infrastructure

This patch adds some infrastructure to handle suspend and resume to
qemu. First there are two functions to switch state and second there
is a suspend notifier:

  • qemu_system_suspend_request is supposed to be called when the...
85f38553 02/24/2012 05:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    slirp/misc: fix gcc __warn_memset_zero_len warnings
    vl.c: Increase width of machine name column in "-M ?" output
    tcg: Remove unneeded include statements
d9a5954d 02/24/2012 05:06 pm Markus Armbruster

vl.c: Error locations for options using add_device_config()

These are -bt, -serial, -virtcon, -parallel, -debugcon, -usbdevice.
Improves messages emitted via proper error reporting interfaces. For
instance:

$ qemu-system-x86_64 -nodefaults -S -usb -usbdevice net:vlan=xxx...
ef0c4a0d 02/24/2012 05:06 pm Markus Armbruster

gdbstub: Error locations for -gdb

Stash away the option argument with add_device_config(), so we still
have its location when we get around to parsing it.

This doesn't improve any messages I can see just yet, but that'll
change shortly.

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

3b26486a 02/23/2012 10:59 am Peter Maydell

vl.c: Increase width of machine name column in "-M ?" output

Increase the width of the column used for the machine name in
the "-M ?" output from 10 to 20 spaces. This fixes the formatting
so it looks nice for architectures where a few of the machines
have overly long names. (Our current longest machine name is...

a0abe474 02/22/2012 05:02 pm Peter Maydell

Make kernel, initrd and append be machine_opts

Make kernel, initrd, append be machine opts (ie -machine kernel=foo)
with the old plain command line arguments as legacy/convenience
equivalents.

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

2c8cffa5 02/22/2012 05:02 pm Jordan Justen

vl: make find_default_machine externally visible

Signed-off-by: Jordan Justen <>
Signed-off-by: Anthony Liguori <>

31552529 02/17/2012 04:33 pm Paolo Bonzini

notifier: switch to QLIST

Notifiers do not need to access both ends of the list, and using
a QLIST also simplifies the API.

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

a19255a3 02/17/2012 02:48 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    linux-user: brk() debugging
    virtio: Remove unneeded g_free() check in virtio_cleanup()
    net: remove extra spaces in help messages
    fmopl: Fix typo in function name...
9de36b1a 02/17/2012 10:10 am Peter Maydell

Make -machine/-enable-kvm options merge into a single list

Make the "machine" option list use list merging, so that multiple
-machine arguments (and the -enable-kvm argument) all merge together
into a single list. Drop the calls to qemu_opts_reset() which meant...

65b31cc2 02/16/2012 01:18 am Anthony Liguori

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

  • kwolf/for-anthony:
    AHCI: Masking of IRQs actually masks them
    sheepdog: fix co_recv coroutine context
    AHCI: Fix port reset race
    rewrite QEMU_BUILD_BUG_ON
    qcow2: Keep unknown header extension when rewriting header...
83f7d43a 02/15/2012 05:39 pm Andreas Färber

qom: Unify type registration

Replace device_init() with generalized type_init().

While at it, unify naming convention: type_init([$prefix_]register_types)
Also, type_init() is a function, so add preceding blank line where
necessary and don't put a semicolon after the closing brace....

1b785a97 02/10/2012 12:44 pm Peter Maydell

vl.c: Fix typo in variable name

Fix a typo in a local variable name.

Signed-off-by: Peter Maydell <>
Reviewed-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

f9dadc98 02/09/2012 05:17 pm Ronnie Sahlberg

iSCSI: add configuration variables for iSCSI

This patch adds configuration variables for iSCSI to set
initiator-name to use when logging in to the target,
which type of header-digest to negotiate with the target
and username and password for CHAP authentication....

e87f7fc6 02/06/2012 07:16 pm Anthony Liguori

s390x: fix qom-ification fall-out

Tested-by: Andreas Faerber <>
Signed-off-by: Anthony Liguori <>

d34e8f6e 02/01/2012 10:45 pm Michael Roth

main-loop: For tools, initialize timers as part of qemu_init_main_loop()

In some cases initializing the alarm timers can lead to non-negligable
overhead from programs that link against qemu-tool.o. At least,
setting a max-resolution WinMM alarm timer via mm_start_timer() (the...

433acf0d 02/01/2012 10:45 pm Jan Kiszka

mc146818rtc: Use lost_tick_policy property

Allow to configure the MC146818 RTC via the new lost tick policy
property and replace rtc_td_hack with this mechanism.

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

25de5935 02/01/2012 10:45 pm Jan Kiszka

Improve default machine options usability

So far we overwrite the machine options completely with defaults if no
accel=value is provided. More user friendly is to fill in only
unspecified options. The new qemu_opts_set_defaults enables this.

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

c5bd4f3d 01/25/2012 07:59 pm Blue Swirl

vga: fix -nodefaults -device VGA

Flag -nodefaults should also imply no VGA. This was broken in
a369da5f31ddbdeb32a7f76622e480d3995fbb00.

Signed-off-by: Blue Swirl <>

5b4448d2 01/23/2012 07:00 pm Anthony Liguori

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

  • qemu-kvm/uq/master:
    kvm: Activate in-kernel irqchip support
    kvm: x86: Add user space part for in-kernel IOAPIC
    kvm: x86: Add user space part for in-kernel i8259
    kvm: x86: Add user space part for in-kernel APIC...
a369da5f 01/22/2012 09:27 am Blue Swirl

vga: improve VGA logic

Improve VGA selection logic, push check for device availabilty to vl.c.
Create the devices at board level unconditionally.

Remove now unused pci_try_create*() functions.

Make PCI VGA devices optional.

Reviewed-by: Jan Kiszka <>...

9b5b76d4 01/19/2012 01:14 pm Jan Kiszka

kvm: x86: Establish IRQ0 override control

KVM is forced to disable the IRQ0 override when we run with in-kernel
irqchip but without IRQ routing support of the kernel. Set the fwcfg
value correspondingly. This aligns us with qemu-kvm.

Signed-off-by: Jan Kiszka <>

84a87cc4 01/04/2012 05:53 pm M. Mohan Kumar

hw/9pfs: Add support to use named socket for proxy FS

Add option to use named socket for communicating between proxy helper
and qemu proxy FS. Access to socket can be given by using command line
options -u and -g.

Signed-off-by: M. Mohan Kumar <>...

4c793dda 01/04/2012 04:43 pm M. Mohan Kumar

hw/9pfs: Add new proxy filesystem driver

Add new proxy filesystem driver to add root privilege to qemu process.
It needs a helper process to be started by root user.

Following command line can be used to utilize proxy filesystem driver
-virtfs proxy,id=<id>,mount_tag=<tag>,socket_fd=<socket-fd>...

99519f0a 01/04/2012 04:21 pm Aneesh Kumar K.V

hw/9pfs: Move opt validation to FsDriver callback

This remove all conditional code from common code path and
make opt validation a FSDriver callback.

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

991dfefd 12/22/2011 06:53 pm Vasilis Liaskovitis

Set numa topology for max_cpus

qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. However
SeaBIOS always expects to setup max_cpus number of SRAT cpu entries
(MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm runs...

42ed3727 12/20/2011 11:44 pm Alon Levy

g_thread_init users: don't call it if glib >= 2.31

since commit f9b29ca03 included in release 2.31 (docs below say 2.32 but
that is not correct) and onwards g_thread_init is deprecated and calling
it is not required:

http://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init...
1de81d28 12/20/2011 12:39 am Anthony Liguori

qdev: fix hotplug when no -device is specified

The peripheral[-anon] containers are initialized lazily but since they sit on
sysbus, they can not be created after realize. This was causing an abort() to
occur during hotplug if no -device option was used....

77bd1119 12/19/2011 06:27 pm Michael Ellerman

vl.c: Move option generation logic into a wrapper file

In vl.c and qemu-options.h we define macros and include qemu-options.def
in order to generate different content. Move the bulk of the def'ing and
undef'ing into a wrapper, this will make it cleaner when we add another...

a3adb7ad 12/19/2011 06:27 pm Michael Ellerman

vl.c: In qemu -h output, only print options for the arch we are running as

Only print options in the help output that are accepted by our arch.
This is less confusing for users and also for other programs that
consume the help output.

The options affected are:...

15d37e70 12/15/2011 05:27 pm michael@ozlabs.org

vl.c: Print the actual program name in help output

In help() we do what boils down to:

printf("%s", "qemu");

This seems to be an artifact of be995c27640a82c7056b6f53d02ec823570114e5
("removed unused code"), which removed some ifdef'ery that used to print...

07f35073 12/02/2011 12:50 pm Dong Xu Wang

fix spelling in main directory

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

c03417b4 11/29/2011 12:20 am Markus Armbruster

vl: Tighten parsing of -numa's parameter mem

strtosz_suffix() fails unless the size is followed by 0, whitespace or
','. Useless here, because we need to fail for any junk following the
size, even if it starts with whitespace or ','. Check manually.

Things like...

961b42b9 11/29/2011 12:20 am Markus Armbruster

vl: Tighten parsing of -m argument

strtosz_suffix() fails unless the size is followed by 0, whitespace or
','. Useless here, because we need to fail for any junk following the
size, even if it starts with whitespace or ','. Check manually.
Things like "-m 1024," are now caught....

0abe905d 11/11/2011 08:49 pm Max Filippov

vl.c: prohibit simultaneous use of -icount with kvm or xen

With -icount, The vm_clock is updated with help from TCG (it counts
instructions at 2^ICOUNT ns/instructions). With KVM, the instruction
count is not available so KVM cannot provide this help.

Signed-off-by: Max Filippov <>...

d423675c 11/11/2011 04:27 pm Andreas Färber

vl.c: Fail gracefully if no machine is found

machine defaults to find_default_machine(),
then gets overridden via -M and machine_parse().

If no -M is specified and find_default_machine() returns NULL
(when no machine compiled in), exit with an error.

Avoids a segfault when setting machine->max_cpus....

1bf6ccd3 11/09/2011 08:06 pm Markus Armbruster

Clean up assertion in get_boot_devices_list()

g_strdup() can't fail, remove assertion. Assert its argument can't be
null, because that's not obvious (add_boot_device_path() ensures it).

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

f54c556c 11/07/2011 06:57 pm Gleb Natapov

qemu_timedate_diff() shouldn't modify its argument.

The caller of qemu_timedate_diff() does not expect that tm it passes to
the function will be modified, but mktime() is destructive and modifies
its argument. Pass a copy of tm to it and set tm_isdst so that mktime()...

db529aab 11/01/2011 09:41 pm Andreas Färber

vl.c: Guard against GThread double-initialization

GThread-ERROR **: GThread system may only be initialized once.
aborting...

Making the g_thread_init() call in vl.c conditional resolves an abort on
Mac OS X, where coroutine-gthread.c seems to call it before vl.c....

d439b79d 10/31/2011 06:06 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-7' into staging

9db221ae 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Add synthetic file system support using 9p

This patch create a synthetic file system with mount tag
v_synth when -virtfs_synth command line option is specified
in qemu. The synthetic file system can be mounted in guest
using 9p using the below command line...

2c74c2cb 10/31/2011 09:04 am M. Mohan Kumar

hw/9pfs: Read-only support for 9p export

A new fsdev parameter "readonly" is introduced to control accessing 9p export.
"readonly" can be used to specify the access type. By default "rw" access
is given to 9p export.

Signed-off-by: M. Mohan Kumar <>...

f795e743 10/27/2011 04:48 pm Luiz Capitulino

Drop qemu-objects.h from modules that don't require it

Previous commits dropped most qobjects usage from qemu modules
(now they are a low level interface used by the QAPI). However,
some modules still include the qemu-objects.h header file.

This commit drops qemu-objects.h from some of those modules...

99435906 10/21/2011 07:14 pm Paolo Bonzini

simplify main loop functions

Provide a clean example of how to use the main loop in the tools.

Signed-off-by: Paolo Bonzini <>

4260a739 10/21/2011 07:14 pm Paolo Bonzini

qemu-timer: use atexit for quit_timers

Signed-off-by: Paolo Bonzini <>

2ff68d07 10/21/2011 07:14 pm Paolo Bonzini

qemu-timer: move more stuff out of qemu-timer.c

Signed-off-by: Paolo Bonzini <>

44a9b356 10/21/2011 07:14 pm Paolo Bonzini

main-loop: create main-loop.h

Signed-off-by: Paolo Bonzini <>

d3b12f5d 10/21/2011 07:14 pm Paolo Bonzini

main-loop: create main-loop.c

Signed-off-by: Paolo Bonzini <>

1f99b949 10/20/2011 04:42 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-6' into staging

Conflicts:
trace-events

ee21cb5f 10/19/2011 03:48 pm Luiz Capitulino

runstate: Allow to transition from paused to postmigrate

The user may already have paused the VM before starting the
migration process. If s/he does that, then the state will be
'paused' when we finish the migration process. In that case
we want to transition from 'paused' to 'postmigrate' as the...

8a9236f1 10/19/2011 03:48 pm Luiz Capitulino

runstate: Allow user to migrate twice

It should be a matter of allowing the transition POSTMIGRATE ->
FINISH_MIGRATE, but it turns out that the VM won't do the
transition the second time because it's already stopped.

So this commit also adds vm_stop_force_state() which performs...

207c5cd2 10/19/2011 03:48 pm Luiz Capitulino

runstate: Print state transition when invalid

Makes it easier to debug.

Signed-off-by: Luiz Capitulino <>

9870a5e6 10/15/2011 08:40 pm Jan Kiszka

Drop obsolete nographic timer

We flush coalesced MMIO in the device models now, and VNC - for which
this was once introduced - is also fine without it as it has its own
refresh timer.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

e9a07334 10/15/2011 08:39 pm Jan Kiszka

Move graphic-related coalesced MMIO flushes to affected device models

This is conceptually cleaner and will allow us to drop the nographic
timer. Moreover, it will be mandatory to fully exploit future per-device
coalesced MMIO rings.

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

fbcbf101 10/15/2011 01:00 pm Aneesh Kumar K.V

hw/9pfs: Rename fstype to fsdriver to make it consistent across VirtFS code

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

d9b36a6e 10/15/2011 01:00 pm M. Mohan Kumar

hw/9pfs: Handle Security model parsing

Except local fs driver all other fs drivers (handle, synth) don't need
security model. Update fsdev parameter parsing accordingly.

Signed-off-by: M. Mohan Kumar <>
Signed-off-by: Aneesh Kumar K.V <>

d3ab98e6 10/12/2011 04:41 pm Aneesh Kumar K.V

hw/9pfs: Add new virtfs option writeout=immediate skip host page cache

writeout=immediate implies the after pwritev we do a sync_file_range.

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Aneesh Kumar K.V <>

0d45b702 10/04/2011 05:02 pm Luiz Capitulino

vl: Change qemu_vmstop_requested() to return a bool

The stop reason is returned in the RunState argument. This is a
preparation for a future commit which will convert the query-status
command to the QAPI.

Signed-off-by: Luiz Capitulino <>

c4d11e38 10/04/2011 05:02 pm Luiz Capitulino

RunState: Drop the RSTATE_NO_STATE value

The QAPI framework won't generate it, so we need to get rid of it.

In order to do that, this commit makes RSTATE_PRE_LAUNCH the initial
state and change qemu_vmstop_requested() to use RSTATE_MAX.

Signed-off-by: Luiz Capitulino <>

0461d5a6 10/04/2011 05:02 pm Luiz Capitulino

RunState: Rename enum values as generated by the QAPI

Next commit will convert the query-status command to use the
RunState type as generated by the QAPI.

In order to "transparently" replace the current enum by the QAPI
one, we have to make some changes to some enum values....

1fa9a5e4 10/04/2011 05:02 pm Luiz Capitulino

qapi: Convert query-status

Please, note that the RunState type as defined in sysemu.h and its
runstate_as_string() function are being dropped in favor of the
RunState type generated by the QAPI.

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

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

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