Statistics
| Branch: | Revision:

root / vl.c @ 15546425

History | View | Annotate | Download (121.8 kB)

# Date Author Comment
15546425 02/22/2013 12:34 am Anthony Liguori

gtk: make default UI (v5)

A user can still enable SDL with '-sdl' or '-display sdl' but start making the
default display GTK by default.

I'd also like to deprecate the SDL display and remove it in a few releases.

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

1a3973b3 02/19/2013 01:30 pm Gerd Hoffmann

usb-host: remove usb_host_device_close

Nobody implements that anyway.

Signed-off-by: Gerd Hoffmann <>

b946bffa 02/16/2013 12:45 pm Peter Maydell

cpus.c: Drop unnecessary set_cpu_log()

The set_cpu_log() function in cpus.c is a fairly simple wrapper
which is only called from one location. Just inline the code
into vl.c, since there is no need to indirect it via cpus.c
and the handling of the error case is more appropriate to vl.c....

9a7e5424 02/16/2013 12:43 pm Peter Maydell

qemu-log: Unify {cpu_set,set_cpu}_log_filename as qemu_set_log_filename

The qemu_log() functionality is no longer specific to TCG CPU debug logs.
Rename cpu_set_log_filename() to qemu_set_log_filename() and drop the
pointless wrapper set_cpu_log_filename()....

cfdd1628 02/11/2013 04:13 pm Markus Armbruster

vl: Drop redundant "parse error" reports

qemu_opts_parse() reports the error already, and in a much more useful
way.

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

49295ebc 02/11/2013 04:13 pm Markus Armbruster

vl: Exit unsuccessfully on option argument syntax error

We exit successfully after reporting syntax error for argument of
--sandbox and --add-fd.

We continue undaunted after reporting it for argument of -boot,
--option-rom and --object.

Change all five to exit unsuccessfully, like the other options....

c881e20e 02/04/2013 10:38 pm Eduardo Habkost

vl.c: validate -numa "cpus" parameter properly

- Accept empty strings without aborting
- Use parse_uint*() to parse numbers
- Abort if anything except '-' or end-of-string is found after the first
number.
- Check for endvalue < value

Also change the MAX_CPUMASK_BITS warning message from "A max of %d CPUs...

5f139965 02/04/2013 10:38 pm Eduardo Habkost

vl.c: Use parse_uint_full() for NUMA nodeid

This should catch many kinds of errors that the current code wasn't
checking for:

- Values that can't be parsed as a number
- Negative values
- Overflow
- Empty string

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

845e5bf9 02/04/2013 10:38 pm Eduardo Habkost

vl.c: Extract -numa "cpus" parsing to separate function

This will make it easier to refactor that code later.

Signed-off-by: Eduardo Habkost <>
Reviewed-by: Eric Blake <>
Signed-off-by: Anthony Liguori <>

8f302cb0 02/04/2013 10:38 pm Eduardo Habkost

vl.c: Fix off-by-one bug when handling "-numa node" argument

The numa_add() code was unconditionally adding 1 to the get_opt_name()
return value, making it point after the end of the string if no ','
separator is present.

Example of weird behavior caused by the bug:...

12e53a9d 02/04/2013 10:38 pm Eduardo Habkost

vl.c: Abort on unknown -numa option type

Abort in case an invalid -numa option is provided, instead of silently
ignoring it.

Signed-off-by: Eduardo Habkost <>
Reviewed-by: Eric Blake <>
Signed-off-by: Anthony Liguori <>

ca4c6d36 02/04/2013 10:38 pm Eduardo Habkost

vl.c: Check for NUMA node limit inside numa_add()

Instead of checking the limit before calling numa_add(), check the limit
only when we already know we're going to add a new node.

Signed-off-by: Eduardo Habkost <>
Reviewed-by: Eric Blake <>...

e4ce85b2 02/04/2013 10:38 pm Eduardo Habkost

vl.c: numa_add(): Validate nodeid before using it

Without this check, QEMU will corrupt memory if a too-large nodeid is
provided in the command-line. e.g.:

-numa node,mem=...,cpus=...,nodeid=65

This changes nodenr to unsigned long long, to avoid integer conversion...

b09995ae 02/01/2013 11:53 pm Paolo Bonzini

qdev: drop extra references at creation time

qdev_free and qbus_free have to do unparent+unref, because nobody else
drops the initial reference (the one included by object_initialize)
before them.

For device_init_func and do_device_add, this is trivially correct,...

d5286af5 02/01/2013 11:08 pm liguang

accel: change {xen, kvm, tcg, qtest}_allowed from int to bool

Signed-off-by: liguang <>
Signed-off-by: Anthony Liguori <>

e3c66d93 02/01/2013 11:07 pm liguang

vl: skip init accelerator if it's not available

Signed-off-by: liguang <>
Signed-off-by: Anthony Liguori <>

217e21be 02/01/2013 11:07 pm liguang

vl: correct error message when fail to init kvm

command:
qemu-system-x86_64 -hda disk.img -smp 32 --enable-kvm
error:
Number of SMP cpus requested (32) exceeds max cpus supported by KVM (16)
failed to initialize KVM: Invalid argument
No accelerator found!...

2e788490 01/29/2013 10:50 pm Christian Borntraeger

sclpconsole: Don't instantiate sclpconsole with -nodefaults

libvirt specifies nodefaults and creates an sclp console with special
parameters. Let qemu follow nodefaults and don't create an sclp
console if nodefaults is specified.

Signed-off-by: Christian Borntraeger <>...

3ef669e1 01/29/2013 10:50 pm Alexander Graf

s390: Add default support for SCLP console

The current s390 machine uses the virtio console as default console,
but this doesn't mean that we always want to keep it that way for new
machines.

This patch introduces a way for a machine type to specify that it wants...

d09acb9b 01/26/2013 03:23 pm Markus Armbruster

fw_cfg: Splash image loader can overrun a stack variable, fix

read_splashfile() passes the address of an int variable as size_t *
parameter to g_file_get_contents(), with a cast to gag the compiler.

No problem on machines where sizeof(size_t) == sizeof(int)....

0e7a7592 01/19/2013 12:22 pm Markus Armbruster

vl: Use size_t for sizes in get_boot_devices_list()

Code mixes uint32_t, int and size_t. Very unlikely to go wrong in
practice, but clean it up anyway.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Blue Swirl <>

84f2d0ea 01/17/2013 02:24 pm Wenchao Xia

HMP: add QDict to info callback handler

This patch change all info call back function to take
additional QDict * parameter, which allow those command
take parameter. Now it is set to NULL at default case.

Signed-off-by: Wenchao Xia <>...

bd2d80b2 01/16/2013 07:58 am Gerd Hoffmann

chardev: add error reporting for qemu_chr_new_from_opts

Signed-off-by: Gerd Hoffmann <>

e4ada29e 01/16/2013 02:26 am Avik Sil

Make default boot order machine specific

This patch makes default boot order machine specific instead of
set globally. The default boot order can be set per machine in
QEMUMachine boot_order. This also allows a machine to receive a
NULL boot order when -boot isn't used and take an appropriate action...

4d454574 01/12/2013 06:17 pm Paolo Bonzini

qemu-option: move standard option definitions out of qemu-config.c

Signed-off-by: Paolo Bonzini <>

fedf2de3 01/11/2013 04:43 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    hw/pc.c: Fix converting of ioport_register* to MemoryRegion
    Replace remaining gmtime, localtime by gmtime_r, localtime_r
    savevm: Remove MinGW specific code which is no longer needed...
eb7ff6fb 01/11/2013 10:44 am Stefan Weil

Replace remaining gmtime, localtime by gmtime_r, localtime_r

This allows removing of MinGW specific code and improves
reentrancy for POSIX hosts.

[Removed unused ret variable in qemu_get_timedate() to fix warning:
vl.c: In function ‘qemu_get_timedate’:
vl.c:451:16: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]...

f30dbae6 01/07/2013 11:43 am Amos Kong

net: clean up network at qemu process termination

We don't clean up network if fails to parse "-device" parameters without
calling net_cleanup(). I touch a problem, the tap device which is
created by qemu-ifup script could not be removed by qemu-ifdown script....

ab51b1d5 01/02/2013 09:32 pm Michael Tokarev

disallow -daemonize usage of stdio (curses display, -nographic, -serial stdio etc)

Curses display requires stdin/out to stay on the terminal,
so -daemonize makes no sense in this case. Instead of
leaving display uninitialized like is done since 995ee2bf469de6bb,...

927d4878 12/19/2012 09:32 am Paolo Bonzini

softmmu: move remaining include files to include/ subdirectories

Signed-off-by: Paolo Bonzini <>

9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

83c9089e 12/19/2012 09:31 am Paolo Bonzini

monitor: move include files to include/monitor/

Signed-off-by: Paolo Bonzini <>

caf71f86 12/19/2012 09:31 am Paolo Bonzini

migration: move include files to include/migration/

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

28ecbaee 12/19/2012 09:31 am Paolo Bonzini

ui: move files to ui/ and include/ui/

Signed-off-by: Paolo Bonzini <>

1422e32d 12/19/2012 09:31 am Paolo Bonzini

net: reorganize headers

Move public headers to include/net, and leave private headers in net/.
Put the virtio headers in include/net/tap.h, removing the multiple copies
that existed. Leave include/net/tap.h as the interface for NICs, and
net/tap_int.h as the interface for OS-specific parts of the tap backend....

76cad711 12/19/2012 09:29 am Paolo Bonzini

build: kill libdis, move disassemblers to disas/

Signed-off-by: Paolo Bonzini <>

e478b448 12/11/2012 05:35 pm Dong Xu Wang

use qemu_opts_create_nofail

We will use qemu_opts_create_nofail function, it can make code
more readable.

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Kevin Wolf <>

2d0d2837 12/11/2012 12:05 pm Christian Borntraeger

Support default block interfaces per QEMUMachine

There are QEMUMachines that have neither IF_IDE nor IF_SCSI as a
default/standard interface to their block devices / drives. Therefore,
this patch introduces a new field default_block_type per QEMUMachine
struct. The prior use_scsi field becomes thereby obsolete and is...

3c42ea66 12/11/2012 12:05 pm Christian Borntraeger

block: simplify default_drive

Markus Armbruster pointed out that there is only one caller
to default_drive with IF_DEFAULT as a type. Lets get rid
of the block_default_type parameter and adopt the caller
to do the right thing (asking the machine struct)....

fa5358c6 11/26/2012 09:53 pm Peter Maydell

vl.c: Fix broken -usb option

Commit 094b287f0b accidentally broke the "-usb" command line
option, so it would have no effect if the user had not specified
any machine options at that point. (the return value from
'qemu_opts_find(qemu_find_opts("machine"), 0);' is NULL if there...

68d98d3e 11/16/2012 04:36 pm Anthony Liguori

vl: add -object option to create QOM objects from the command line

This will create a new QOM object in the '/objects' path. Note that properties
are set in order which allows for simple objects to be initialized entirely
with this option and then realized....

ef84755e 11/03/2012 02:55 pm Blue Swirl

Merge branch 'trivial-patches' of git://github.com/stefanha/qemu

  • 'trivial-patches' of git://github.com/stefanha/qemu:
    pc: Drop redundant test for ROM memory region
    exec: make some functions static
    target-ppc: make some functions static
    ppc: add missing static...
49cf5728 11/02/2012 08:07 pm Paolo Bonzini

vl: delay thread initialization after daemonization

Commit ac4119c (chardev: Use timer instead of bottom-half to postpone
open event, 2012-10-12) moved the alarm timer initialization to an earlier
point but failed to consider that it depends on qemu_init_main_loop....

f9ab4654 11/02/2012 08:07 pm Paolo Bonzini

vl: unify calls to init_timer_alarm

init_timer_alarm was being called twice. This is not needed.

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

4fdcac0e 11/01/2012 08:49 pm Blue Swirl

vl.c: add missing static

Add missing 'static' qualifiers.

Signed-off-by: Blue Swirl <>
Signed-off-by: Stefan Hajnoczi <>

4ba79505 11/01/2012 06:14 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/pixman.v3' into staging

  • kraxel/pixman.v3: (22 commits)
    pixman: drop obsolete fields from DisplaySurface
    pixman/vnc: remove dead code.
    pixman/vnc: remove rgb_prepare_row* functions
    pixman/vnc: use pixman images in vnc....
5a34dbb5 11/01/2012 06:13 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/threadpool' into staging

  • bonzini/threadpool: (39 commits)
    raw-win32: implement native asynchronous I/O
    raw-posix: move linux-aio.c to block/
    raw-win32: add emulated AIO support
    raw-posix: rename raw-posix-aio.h, hide unavailable prototypes...
43552994 11/01/2012 06:12 pm Anthony Liguori

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

  • qemu-kvm/uq/master: (28 commits)
    update-linux-headers.sh: Handle new kernel uapi/ directories
    target-i386: kvm_cpu_fill_host: use GET_SUPPORTED_CPUID
    target-i386: cpu: make -cpu host/check/enforce code KVM-specific...
a93a4a22 11/01/2012 02:10 pm Gerd Hoffmann

console: untangle gfx & txt updates

Stop abusing displaysurface fields for text mode displays.
(bpp = 0, width = cols, height = lines).

Add flags to displaystate indicating whenever text mode display
(curses) or gfx mode displays (sdl, vnc, ...) are present....

e250d949 11/01/2012 02:10 pm Gerd Hoffmann

console: init displaychangelisteners on register

Signed-off-by: Gerd Hoffmann <>

87e487a1 11/01/2012 02:10 pm Gerd Hoffmann

console: QLIST-ify display change listeners.

Signed-off-by: Gerd Hoffmann <>

35c9e0a5 11/01/2012 02:10 pm Gerd Hoffmann

console: add unregister_displaychangelistener

Also change the way the gui_timer is initialized: each time a
displaychangelistener is registered or unregistered we'll check
whether we need a timer (due to dpy_refresh callback being present)
and if so setup a timer, otherwise zap it. This way the gui timer...

ac4119c0 10/31/2012 11:20 pm Jan Kiszka

chardev: Use timer instead of bottom-half to postpone open event

As the block layer may decide to flush bottom-halfs while the machine is
still initializing (e.g. to read geometry data from the disk), our
postponed open event may be processed before the last frontend...

f563a5d7 10/31/2012 11:42 am Paolo Bonzini

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

Signed-off-by: Paolo Bonzini <>

a0dac021 10/31/2012 03:39 am Jan Kiszka

Emulate qemu-kvms -no-kvm option

Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm...

88eed34a 10/31/2012 03:39 am Jan Kiszka

Issue warning when deprecated -tdf option is used

Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm...

c21fb4f8 10/31/2012 03:39 am Jan Kiszka

Use global properties to emulate -no-kvm-pit-reinjection

Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm...

e43d594e 10/31/2012 03:39 am Jan Kiszka

Use machine options to emulate -no-kvm-irqchip

Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm...

4086bde8 10/31/2012 03:39 am Jan Kiszka

Issue warning when deprecated -no-kvm-pit is used

Releases of qemu-kvm will be interrupted at qemu 1.3.0.
Users should switch to plain qemu releases.
To avoid breaking scenarios which are setup with command line
options specific to qemu-kvm, port these switches from qemu-kvm...

1c53786f 10/30/2012 10:30 am Paolo Bonzini

vl: init main loop earlier

Otherwise, chardevs will not be able to create a bottom half as soon
as that will require an AioContext.

Signed-off-by: Paolo Bonzini <>

172061a0 10/30/2012 10:18 am Paolo Bonzini

main-loop: unify qemu_init_main_loop between QEMU and tools

Signed-off-by: Paolo Bonzini <>

90c45b30 10/29/2012 05:34 pm Anthony Liguori

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

  • kwolf/for-anthony: (32 commits)
    osdep: Less restrictive F_SEFL in qemu_dup_flags()
    qemu-iotests: add testcases for mirroring on-source-error/on-target-error
    qmp: add pull_event function...
d262cb02 10/29/2012 03:56 pm Aurelien Jarno

Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf

  • 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (22 commits)
    PPC: pseries: Remove hack for PIO window
    PPC: e500: Map PIO space into core memory region
    xen_platform: convert PIO to new memory api read/write...
3f4331bf 10/29/2012 03:55 pm Aurelien Jarno

Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable

  • 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
    migration: go to paused state after finishing incoming migration with -S
    qmp: handle stop/cont in INMIGRATE state
    hmp: fix info cpus for sparc targets
094b287f 10/29/2012 12:45 pm zhlcindy@gmail.com

Add USB option in machine options

When -usb option is used, global varible usb_enabled is set.
And all the plaform will create one USB controller according
to this variable. In fact, global varibles make code hard
to read.

So this patch is to remove global variable usb_enabled and...

29ed72f1 10/24/2012 04:27 pm Paolo Bonzini

migration: go to paused state after finishing incoming migration with -S

At the end of migration the machine has started already, and cannot be
destroyed without losing the guest's data. Hence, prelaunch is the
wrong state. Go to the paused state instead. QEMU would reach that...

587ed6be 10/24/2012 11:26 am Corey Bryant

qemu-config: Add new -add-fd command line option

This option can be used for passing file descriptors on the
command line. It mirrors the existing add-fd QMP command which
allows an fd to be passed to QEMU via SCM_RIGHTS and added to an
fd set.

This can be combined with commands such as -drive to link file...

2d55f0e8 10/23/2012 02:54 pm Paolo Bonzini

vnc: add error propagation to vnc_display_open

Before:

$ qemu-system-x86_64 -vnc foo.bar:12345
getaddrinfo(foo.bar,18245): Name or service not known
Failed to start VNC server on `foo.bar:12345'
$ qemu-system-x86_64 -vnc localhost:12345,reverse=on...
43eaae28 10/23/2012 02:54 pm Paolo Bonzini

migration (incoming): add error propagation to fd and exec protocols

And remove the superfluous integer return value.

Reviewed-by: Luiz Capitulino <>
Signed-off-by: Paolo Bonzini <>

5f072e1f 10/20/2012 10:53 am Eduardo Habkost

create struct for machine initialization arguments

This should help us to:
- More easily add or remove machine initialization arguments without
having to change every single machine init function;
- More easily make mechanical changes involving the machine init...

048d3612 10/06/2012 07:54 pm Aurelien Jarno

Merge branch 'trivial-patches' of git://github.com/stefanha/qemu

  • 'trivial-patches' of git://github.com/stefanha/qemu:
    versatilepb: Use symbolic indices for ARM PIC
    qdev: kill bogus comment
    qemu-barrier: Fix compiler version check for future gcc versions...
879049a3 10/06/2012 07:48 pm Aurelien Jarno

vl.c: check for qxl availability

Check for qxl availability in vl.c. This will allow to remove #ifdef
CONFIG_SPICE .. #endif later in this series

Cc: Anthony Liguori <>
Cc: Gerd Hoffmann <>
Signed-off-by: Aurelien Jarno <>

3605ded5 10/06/2012 07:48 pm Aurelien Jarno

vl.c: default to std if cirrus is not available

Signed-off-by: Aurelien Jarno <>

36b7f27d 10/06/2012 07:48 pm Aurelien Jarno

vl.c: convert *vga_enabled functions to QOM

And get rid of qdev_exists().

Signed-off-by: Aurelien Jarno <>

4d5b97da 10/05/2012 04:10 pm Amos Kong

cleanup useless return sentence

This patch cleans up return sentences in the end of void functions.

Reported-by: Paolo Bonzini <>
Signed-off-by: Amos Kong <>
Signed-off-by: Stefan Hajnoczi <>

ac05f349 09/26/2012 04:05 am Amos Kong

add a boot parameter to set reboot timeout

Added an option to let qemu transfer a configuration file to bios,
"etc/boot-fail-wait", which could be specified by command
-boot reboot-timeout=T
T have a max value of 0xffff, unit is ms.

With this option, guest will wait for a given time if not find...

a9552c8e 09/26/2012 02:37 am Igor Mammedov

Introduce powerdown_notifiers

Notifier will be used for signaling powerdown request to guest in
a more general way and intended to replace very specific
qemu_irq_rise(qemu_system_powerdown) and will allow to remove global
variable qemu_system_powerdown.
...

013c2f15 09/26/2012 02:37 am Igor Mammedov

Cleanup unused global var qemu_system_powerdown

All deps that used global qemu_system_powerdown var are now converted
to notifiers, so remove it.

Signed-off-by: Igor Mammedov <>
Signed-off-by: Anthony Liguori <>

995ee2bf 09/23/2012 09:11 am Hitoshi Mitake

curses: don't initialize curses when qemu is daemonized

Current qemu initializes curses even if -daemonize option is
passed. This cause problem because shell prompt appears without
calling endwin().

This patch adds new function, is_daemonized(), to OS dependent...

9f227bc3 08/27/2012 05:33 pm malc

Revert "vl: fix -hdachs/-hda argument order parsing issues"

This reverts commit 7764ae9671f1cd74227cf4404431dd5213799ef0.

Signed-off-by: malc <>

df800210 08/27/2012 05:33 pm malc

Revert "vga: add some optional CGA compatibility hacks"

This reverts commit 482f7bf86b43af9f6903c52726fedf82b28bf953.

Signed-off-by: malc <>

4f213879 08/27/2012 05:33 pm malc

Revert "i8259: add -no-spurious-interrupt-hack option"

This reverts commit f278d4947fff814dcde2ef2acad36d172ff8be35.

Signed-off-by: malc <>

482f7bf8 08/24/2012 06:44 am Matthew Ogilvie

vga: add some optional CGA compatibility hacks

This patch adds some optional compatibility hacks (default
disabled) to allow Microport UNIX to function under qemu.

I've tried to structure it to be easy to add more hacks for other
old CGA programs, if anyone ever needs them....

f278d494 08/24/2012 06:44 am Matthew Ogilvie

i8259: add -no-spurious-interrupt-hack option

This patch provides a way to optionally suppress spurious interrupts,
as a workaround for systems described below:

Some old operating systems do not handle spurious interrupts well,
and qemu tends to generate them significantly more often than...

7764ae96 08/24/2012 06:44 am Matthew Ogilvie

vl: fix -hdachs/-hda argument order parsing issues

Without this patch, the -hdachs argument had to occur either
BEFORE the corresponding "-hda" option, or AFTER the plain
disk image name (if neither -hda nor -drive is used). Otherwise
it would effectively be ignored....

ff961015 08/18/2012 07:53 pm Markus Armbruster

vl: Round argument of -m up to multiple of 8KiB

Partial pages make little sense and don't work. Ensure the RAM size
is a multiple of any possible target's page size.

Fixes

$ qemu-system-x86_64 nodefaults -S -vnc :0 -m 0.8
qemu-system-x86_64: /work/armbru/qemu/exec.c:2255: register_subpage: Assertion `existing
>mr->subpage || existing->mr == &io_mem_unassigned' failed....
be522029 08/16/2012 09:41 pm David Gibson

Allow QEMUMachine to override reset sequencing

qemu_system_reset() function always performs the same basic actions on
all machines. This includes running all the reset handler hooks,
however the order in which these will run is not always easily predictable....

452dfbef 08/16/2012 09:41 pm Eduardo Otubo

Adding seccomp calls to vl.c (v8)

Signed-off-by: Eduardo Otubo <>
Signed-off-by: Anthony Liguori <>
---
v1:
- Full seccomp calls and data included in vl.c

v1 -> v2:
- Full seccomp calls and data removed from vl.c and put into separate...

7d76ad4f 08/16/2012 09:41 pm Eduardo Otubo

Command line support for seccomp with -sandbox (v8)

Signed-off-by: Eduardo Otubo <>
Signed-off-by: Anthony Liguori <>
---
v7 -> v8
- Parse options correctly (aliguori)

14058196 08/13/2012 10:10 pm Luiz Capitulino

qmp: don't emit the RESET event on wakeup from S3

QEMU is basically using reset logic when waking up from S3. This
causes the QMP RESET event to be emitted, which is wrong. Also,
the runstate checks done in reset are not necessary for S3 wakeup.

Fix this by untangling wakeup from reset logic and passing...

17c8660b 08/13/2012 10:10 pm Luiz Capitulino

qmp: emit the WAKEUP event when the guest is put to run

Today, the WAKEUP event is emitted when a wakeup request is made.
This could be the system_wakeup command, for example.

A better semantic would be to emit the event when the guest is
already running, as that's what matters in the end. This commit does...

01d3c80d 08/13/2012 10:10 pm Anthony Liguori

qapi: add query-machines command

This provides the same output as -M ? but in a structured way.

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

346fe0c4 08/12/2012 03:49 am Anthony Liguori

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

  • stefanha/trivial-patches:
    target-arm: Fix typos in comments
    arm: translate: comment typo - s/middel/middle/
    vl.c: Exit QEMU early if no machine is found
31294261 08/12/2012 01:11 am Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  • bonzini/scsi-next:
    scsi-disk: add support for the UNMAP command
    scsi-disk: improve out-of-range LBA detection for WRITE SAME
    scsi-disk: more assertions and resets for aiocb
    virtio-scsi: do not compare 32-bit QEMU tags against 64-bit virtio-scsi tags...
fb7c269e 08/10/2012 04:28 pm Dunrong Huang

vl.c: Exit QEMU early if no machine is found

We check whether the variable machine is NULL or not before accessing
it. If machine is NULL, exit QEMU with an error, this can avoids a
segfault error.

Markus Armbruster <> adds that the segfault can be...

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

31459f46 08/09/2012 04:04 pm Ronnie Sahlberg

iscsi: Pick default initiator-name based on the name of the VM

This patch updates the iscsi layer to automatically pick a 'unique'
initiator-name based on the name of the vm in case the user has not set
an explicit iqn-name to use.

Create a new function qemu_get_vm_name() that returns the name of the VM,...