Statistics
| Branch: | Revision:

root @ 1d2699ae

# Date Author Comment
1d2699ae 02/06/2010 11:23 pm Richard Henderson

tcg-i386: Implement setcond.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

f75b56c1 02/06/2010 11:23 pm Richard Henderson

tcg-i386: Implement small forward branches.

There are places, like brcond2, where we know that the destination
of a forward branch will be within 127 bytes.

Add the R_386_PC8 relocation type to support this. Add a flag to
tcg_out_jxx and tcg_out_brcond* to enable it. Set the flag in the...

79427693 02/06/2010 11:22 pm Loïc Minier

Add -static earlier to LDFLAGS for compile_prog()

Add -static to LDFLAGS earlier as to run the compile_prog() tests with
this flags, this will avoid turning on features for which a shared
library is available but not a static one.

Signed-off-by: Loïc Minier <>...

845f2c28 02/06/2010 11:22 pm Loïc Minier

Fix missing symbols in .rel/.rela.plt sections

Fix .rel.plt sections in the output to not only include .rel.plt
sections from the input but also the .rel.iplt sections and to define
the hidden symbols __rel_iplt_start and __rel_iplt_end around
.rel.iplt as otherwise we get undefined references to these when...

02ecd9fc 02/06/2010 10:34 pm Aurelien Jarno

configure: remove debugging code introduced in aa527b65d8187b97d73f889b6cae7b6ac6f82d32

Signed-off-by: Aurelien Jarno <>

aa527b65 02/06/2010 10:22 pm Aurelien Jarno

configure: fix compilation on hosts without -fstack-protector-all

Commit a0f291fc101a7ab3e40850a329da2cc2f2cd1f2d has enabled
-fstack-protector-all on all targets, as the configure test is bogus.
GCC only emits a warning and not an error if this option is not...

22574c81 02/06/2010 08:24 pm Aurelien Jarno

Update MAINTAINERS

Remove Thiemo from the maintainers. Requiescat in pace.

Signed-off-by: Aurelien Jarno <>

c36bbb28 02/06/2010 06:23 pm Aurelien Jarno

target-mips: don't call cpu_loop_exit() from helper.c

In helper.c AREG0 may not correspond do env, so it's not possible to
call cpu_loop_exit() here. Call it from op_helper.c instead.

Signed-off-by: Aurelien Jarno <>

da79030f 02/06/2010 06:19 pm Loïc Minier

linux-user: adapt uname machine to emulated CPU

This patch for linux-user adapts the output of the emulated uname()
syscall to match the configured CPU. Tested with x86, x86-64 and arm
emulation.

Signed-off-by: Riku Voipio <>
Signed-off-by: Loïc Minier <>

cab1b4bd 02/06/2010 06:19 pm Riku Voipio

fix locking error with current_tb

Signed-off-by: Riku Voipio <>

fd052bf6 02/06/2010 06:19 pm Riku Voipio

linux-user: remove signal handler before calling abort()

Qemu may hang in host_signal_handler after qemu has done a
seppuku with cpu_abort(). But at this stage we are not really
interested in target process coredump anymore, so unregister
host_signal_handler to die grafefully....

3f26c122 02/06/2010 06:19 pm Riku Voipio

target-arm: refactor cp15.c13 register access

Access the cp15.c13 TLS registers directly with TCG ops instead of with
a slow helper. If the the cp15 read/write was not TLS register access,
fall back to the cp15 helper.

This makes accessing __thread variables in linux-user when apps are compiled...

5c43485f 02/06/2010 06:14 pm Aurelien Jarno

mips/malta: fix typo

Signed-off-by: Aurelien Jarno <>

fd7a446f 02/06/2010 06:14 pm Christian Krause

usb-linux: increase buffer for USB control requests

The WLAN USB stick ZyXEL NWD271N (0586:3417) uses very large
usb control transfers of more than 2048 bytes which won't fit
into the buffer of the ctrl_struct. This results in an error message
"husb: ctrl buffer too small" and a non-working device....

a38e609c 02/06/2010 06:14 pm Richard Henderson

tcg: document double-word support opcodes.

The internal opcodes brcond2, add2, sub2, mulu2 were undocumented.
Place these in a new section that clearly indicates that they are
not to be emitted by translators.

Signed-off-by: Richard Henderson <>...

be210acb 02/06/2010 06:14 pm Richard Henderson

tcg: generic support for conditional set

Defines setcond_{i32,i64} and setcond2_i32 for 64-on-32-bit.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

401d466d 02/06/2010 06:14 pm Richard Henderson

tcg: add tcg_invert_cond

It is very handy to have a reliable mapping of a condition to its inverse.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

8f9db67c 02/06/2010 06:14 pm Richard Henderson

tcg-x86_64: implement setcond

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

95ff895f 02/06/2010 06:14 pm Aurelien Jarno

target-ppc: change DCR helpers to target_long arguments

The recent transition to always have the DCR helper functions take 32 bit
values broke the PPC64 target, as target_long became 64 bits there.

This patch changes DCR helpers to target_long arguments, and cast the values...

525e0514 02/06/2010 04:57 pm Blue Swirl

PCI: show also host bridge data in "info pci" output

Signed-off-by: Blue Swirl <>

c021f8e6 02/06/2010 11:20 am Blue Swirl

PCI: fix multiple bridge problems

When several PCI bridges were in use, monitor command "info pci" would
enter into infinite loop. Buses behind the bridge were not discoverable
because secondary and subordinate bus numbers were not used properly.
Other buses were not found because bus search terminated on first miss....

e1c6bbab 02/05/2010 08:48 pm Blue Swirl

Refactor DEC 21154 PCI bridge

It's currently not used by PPC machines. Refactor so that also Sparc64
machines can use it.

Signed-off-by: Blue Swirl <>

b29a7def 02/05/2010 08:13 pm Paolo Bonzini

usb-linux.c: remove write-only variable

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

bca403c8 02/05/2010 08:13 pm Paolo Bonzini

vnc.c: remove dead code

to= is handled in qemu-sockets.c inet_listen.

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

5e398dd2 02/05/2010 08:13 pm Paolo Bonzini

remove two dead assignments in target-i386/translate.c

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

a4841565 02/05/2010 08:13 pm Paolo Bonzini

exec.c: dead assignments

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

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

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

monitor: Use QERR_INVALID_PARAMETER instead of QERR_INVALID_CPU_INDEX

This changes the error message from "Invalid CPU index" to "Invalid
parameter index" in the human monitor.

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

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

Revert "QError: New QERR_INVALID_CPU_INDEX"

This reverts commit 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5.

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

4a2594dd 02/03/2010 08:39 pm Markus Armbruster

qemu-option: Make qemu_opts_foreach() accumulate return values

Return the bitwise inclusive or of all return values instead of the
last call's value. This lets you find out whether any of the calls
returned a non-zero value.

No functional change, as existing users either don't care for the...

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

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

Revert "qdev: Add help for property value"

This reverts commit 922910ce42d15bdb7c2347436b1b5798b5401de4.

The commit has four issues:

  • When it runs from the monitor, e.g. "device_add e1000,mac=?", it
    prints to stderr instead of the monitor.
  • Help looks to callers just like failed device creation. This makes...
5137b6ac 02/03/2010 08:39 pm Markus Armbruster

Revert "qdev: Add help for device properties"

This reverts commit 2ba6edf0dd740166632df80caa85992b20791a68.

The commit has two issues:

  • When it runs from the monitor, e.g. "device_add e1000,?", it prints
    to stderr instead of the monitor.
  • Help looks to callers just like failed device creation. This makes...
08350cf0 02/03/2010 08:39 pm Markus Armbruster

qdev: Add help for device properties

Option "-device DRIVER,?" and monitor command "device_add DRIVER,?"
print the supported properties instead of creating a device. The
former also terminates the program.

This is commit 2ba6edf0 (just reverted) done right....

40ea285c 02/03/2010 08:39 pm Markus Armbruster

qdev: update help on -device

While there, use "property" rather than "option", for consistency with
-global.

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

117f8eb8 02/03/2010 08:39 pm Markus Armbruster

qdev: Add rudimentary help for property value

This provides the same information as reverted commit 2ba6edf0. Not
much, just better than nothing.

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

3350a4dd 02/03/2010 08:36 pm Markus Armbruster

monitor: New argument type 'b'

This is a double value with optional suffixes G, g, M, m, K, k. We'll
need this to get migrate_set_speed() QMP-ready.

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

5667c493 02/03/2010 08:36 pm Markus Armbruster

monitor: Use argument type 'b' for migrate_set_speed

Before, it used type 's', which strips quotes and interprets escapes,
and is quite inappropriate for QMP.

Negative arguments are no flushed to zero. Before, they were cast to
uint32_t, which wrecked the sign....

5fd9083c 02/03/2010 08:36 pm Markus Armbruster

monitor: convert do_migrate_set_speed() to QObject

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

fccfb11e 02/03/2010 08:36 pm Markus Armbruster

monitor: New argument type 'T'

This is a double value with optional suffixes ms, us, ns. We'll need
this to get migrate_set_downtime() QMP-ready.

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

b0fbf7d3 02/03/2010 08:36 pm Markus Armbruster

monitor: Use argument type 'T' for migrate_set_downtime

Before, it used type 's', which strips quotes and interprets escapes,
and is quite inappropriate for QMP.

Negative arguments are no flushed to zero. Before, they were cast to
uint32_t, which wrecked the sign....

c6027f56 02/03/2010 08:36 pm Markus Armbruster

monitor: convert do_migrate_set_downtime() to QObject

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

9da92c49 02/03/2010 08:36 pm Anthony Liguori

seabios: use correct submodule hash

Commit 392ecf543dd2b219828374850d833296a55567ea introduced an accidental change
to the roms/seabios submodule. This commit partially reverts that commit to
ensure the seabios module points to the right commit.

Reported-by: Marcelo Tosatti <>...

9fec543f 02/03/2010 08:36 pm Markus Armbruster

monitor: Document argument type 'M'

Was forgotten in commit b6e098d7.

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

acc3b033 02/03/2010 08:36 pm Markus Armbruster

QDict: New qdict_get_double()

Helper function just like qdict_get_int(), just for QFloat/double.

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

059bca46 01/31/2010 03:41 pm Blue Swirl

bsd/darwin-user: mmap_frag() users only check for -1 error

See also ee636500d6eab44b83f09cb730b67226b70423b1.

Signed-off-by: Blue Swirl <>

416c6060 01/31/2010 12:26 pm Edgar E. Iglesias

cris: Prettify register dumps.

Use friendly names for registers in the dumps.

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

698235aa 01/31/2010 09:49 am Artyom Tarasenko

sparc32 don't mark page dirty when failing

if the access check fails, the page can not be modified
and shouldn't be marked dirty.
The patch fixes the "hsfs_putpage: dirty HSFS page"
error in Solaris guests.

Signed-off-by: Artyom Tarasenko <>...

95819af0 01/30/2010 09:48 pm Blue Swirl

sparc64: implement basic IOMMU/interrupt handling

Also add reset control.

Signed-off-by: Blue Swirl <>

a4d5f62c 01/29/2010 08:15 pm Blue Swirl

Sparc64: byte swap IO port access

This requires an updated OpenBIOS image.

Signed-off-by: Blue Swirl <>

f1b52868 01/29/2010 05:53 pm Kevin Wolf

virtio-blk: Fix restart after read error

Current code assumes that only write requests are ever going to be restarted.
This is wrong since rerror=stop exists. Instead of directly starting writes,
use the same request processing as used for new requests.
...

6c510fbf 01/29/2010 05:53 pm Kevin Wolf

virtio-blk: Fix error cases which ignored rerror/werror

If an I/O request fails right away instead of getting an error only in the
callback, we still need to consider rerror/werror.

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

9ae84f0a 01/29/2010 05:53 pm Amit Shah

virtio-serial-bus: Fix bus initialisation and allow for bus identification

This commit enables one to use multiple virtio-serial devices and to
assign ports to arbitrary devices like this:

-device virtio-serial,id=foo -device virtio-serial,id=bar \
-device virtserialport,bus=foo.0,name=foo \...
4516e45f 01/29/2010 05:53 pm Jan Kiszka

cirrus: Properly re-register cirrus_linear_io_addr on vram unmap

This fixes CONFIG_FB_CIRRUS for Linux guests and probably much more:

When switching away from linearly mapped vram, we also have to restore
the I/O handlers for the LFB.

This regression was once introduced by commit 2bec46dc97....

bc6694d4 01/29/2010 05:53 pm Kevin Wolf

virtio_blk: Factor virtio_blk_handle_request out

We need a function that handles a single request. Create one by splitting out
code from virtio_blk_handle_output.

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

794401ca 01/28/2010 11:46 pm Edgar E. Iglesias

softmmu: Dont clobber retaddr in slow_ldx().

When splitting up unaligned IO accesses, ld calls slow_ld which was
clobbering retaddr.

AFAIK the problem only shows up when running emulations with -icount
that may abort TB execution on IO accesses.

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

6792aa11 01/28/2010 11:27 pm Loïc Minier

Solaris: test for presence of commands with has()

Signed-off-by: Loïc Minier <>
Signed-off-by: Blue Swirl <>

0dba6195 01/28/2010 11:26 pm Loïc Minier

Add and use has() and path_of() funcs

Add has() and path_of() funcs and use them across configure; has()
will test whether a command or builtin is available; path_of() will
search the PATH for executables and return the full pathname if found.

Signed-off-by: Loïc Minier <...

a0dfd8a4 01/28/2010 11:15 pm Loïc Minier

Check for sdl-config before calling it

Check whether sdl-config is available before calling it, otherwise
./configure triggers a warning:
./configure: 957: sdl-config: not found

If neither the .pc file not sdl-config are present, disable SDL support....

82617d7c 01/28/2010 09:09 pm Luiz Capitulino

Monitor: Fix command execution regression

Function is_async_return() added by commit 940cc30d0d4 assumes
that 'data', which is returned by handlers, is always a QDict.

This is not true, as QLists can also be returned, in this case
we'll get a segfault.
...

8f4efc55 01/27/2010 11:21 pm Igor V. Kovalenko

sparc64: reimplement tick timers v4

sparc64 timer has tick counter which can be set and read,
and tick compare value used as deadline to fire timer interrupt.
The timer is not used as periodic timer, instead deadline
is set each time new timer interrupt is needed....

4f690853 01/27/2010 07:47 pm Igor V. Kovalenko

sparc64: correct write extra bits to cwp

- correctly fit to cwp if provided window number is out of range

Signed-off-by: Igor V. Kovalenko <>
Signed-off-by: Blue Swirl <>

28b150bf 01/27/2010 07:47 pm Blue Swirl

Fix BSD build

<sys/wait.h> must be included in order to use WIF* macros.

Signed-off-by: Blue Swirl <>

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

b4bf0a9a 01/27/2010 02:01 pm Edgar E. Iglesias

pflash: Buffer block writes

Buffer block writes to avoid flushing every word access onto backing
storage device. This significantly speeds up flash emulation for flashes
connected through an 8 or 16-bit bus combined with backing storage (-pflash).

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

e2a305fb 01/27/2010 01:08 am Christoph Hellwig

block: avoid creating too large iovecs in multiwrite_merge

If we go over the maximum number of iovecs support by syscall we get
back EINVAL from the kernel which translate to I/O errors for the guest.

Add a MAX_IOV defintion for platforms that don't have it. For now we use...

940cc30d 01/27/2010 01:08 am Adam Litke

New API for asynchronous monitor commands

Qemu has a number of commands that can operate asynchronously (savevm, migrate,
etc) and it will be getting more. For these commands, the user monitor needs
to be suspended, but QMP monitors could continue to to accept other commands....

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

6185c578 01/27/2010 01:08 am Stefano Stabellini

vnc_refresh: calling vnc_update_client might free vs

Hi all,
this patch fixes another bug in vnc_refresh: calling vnc_update_client
might cause vs to be free()ed, in this case we cannot access vs->next
right after to examine the next item on the list.

Signed-off-by: Stefano Stabellini <>...

053965c7 01/27/2010 12:41 am Kevin Wolf

block/raw-posix: Abort on pread beyond end of non-growable file

This shouldn't happen under any normal circumstances. However, it looks like
it's possible to achieve this with corrupted images. Without this patch
raw_pread is hanging in an endless loop in such cases....

f8a83245 01/27/2010 12:41 am Herve Poussineau

win32: pair qemu_memalign() with qemu_vfree()

Win32 suffers from a very big memory leak when dealing with SCSI devices.
Each read/write request allocates memory with qemu_memalign (ie
VirtualAlloc) but frees it with qemu_free (ie free).
Pair all qemu_memalign() calls with qemu_vfree() to prevent such leaks....

d2d5adcb 01/27/2010 12:28 am Stefan Weil

Tell users about out-of-memory errors

Aborting without an error message when memory is short
is not helpful, so print the reason for the abort.

Try
qemu -m 1000000
or
qemu -m 2000 (win32)

to force an out-of-memory error.

v2:
  • Fix error message for win32....
a35aed57 01/27/2010 12:28 am Herve Poussineau

win32/sdl: Fix toggle full screen

Toggle full screen on Win32/SDL 1.2.13 was broken by commit
c18a2c360e3100bbd71162cf922dcd8c429a8b71. Re-add the call to
do_sdl_resize() which was removed in this revision

Signed-off-by: Herve Poussineau <>...

776e1bbb 01/26/2010 11:59 pm Blue Swirl

PCI: fix bridge configuration

PCI bridges' qdev info structures must indicate bridge header type,
otherwise critical bridge registers (esp. PCI_PRIMARY_BUS,
PCI_SECONDARY_BUS, PCI_SUBORDINATE_BUS) will not be writable.

Signed-off-by: Blue Swirl <>

f139a412 01/26/2010 11:45 pm Marcelo Tosatti

fix savevm command without id or tag

savevm without id or tag segfaults in:

(gdb) bt
#0 0x00007f600a83bf8a in __strcmp_sse42 () from /lib64/libc.so.6
#1 0x00000000004745b6 in bdrv_snapshot_find (bs=<value optimized out>,
sn_info=0x7fff996be280, name=0x0) at savevm.c:1631...

7b88e48b 01/26/2010 11:45 pm Christoph Hellwig

qcow2: rename two QCowAIOCB members

The n member is not very descriptive and very hard to grep, rename it to
cur_nr_sectors to better indicate what it is used for. Also rename
nb_sectors to remaining_sectors as that is what it is used for.

Signed-off-by: Christoph Hellwig <>...

163c8a59 01/26/2010 11:42 pm Luiz Capitulino

PCI: Convert pci_info() to QObject

The returned QObject is a QList of all buses. Each bus is
represented by a QDict, which has a key with a QList of all
PCI devices attached to it. Each device is represented by
a QDict.

As has happended to other complex conversions, it's hard to...

d5e4acf7 01/26/2010 11:42 pm Luiz Capitulino

PCI: do_pci_info(): PCI bridge devices support

This commit completes the do_pci_info() conversion to
QObject by adding support to PCI bridge devices.

This is done by recursively adding devices in the
"pci_bridge" key.

IMPORTANT: This code is being added separately because I could...

42ee76fe 01/26/2010 11:42 pm Marcelo Tosatti

ide save/restore current transfer fields

If migration takes place between write of the bmdma address register and
write of the command register (to initiate DMA), the destination will
not properly start the DMA op, hanging the guest:

ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen...

3c089e15 01/26/2010 11:42 pm Juan Quintela

Fix generation of config-host.h

This patch improves Anthony patch a6a853c86275efd89996ce59612a000c5873db5d

Once there, it improves handling of object files for qemu tools

cc: Andreas Färber <>
Signed-off-by: Juan Quintela <>...

4c36a2ff 01/26/2010 11:42 pm Amit Shah

virtio-console: Rename virtio-serial.c back to virtio-console.c

This file was renamed to ease the reviews of the recent changes
that went in.

Now that the changes are done, rename the file back to its original
name.

Signed-off-by: Amit Shah <>...

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

6987307c 01/26/2010 11:42 pm Christoph Hellwig

block: clean up bdrv_open2 structure a bit

Check the whitelist as early as possible instead of continuing the
setup, and move all the error handling code to the end of the
function.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Anthony Liguori <>

9a2d77ad 01/26/2010 11:42 pm Christoph Hellwig

block: kill BDRV_O_CREAT

The BDRV_O_CREAT option is unused inside qemu and partially duplicates
the bdrv_create method. Remove it, and the -C option to qemu-io which
isn't used in qemu-iotests anyway.

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Anthony Liguori <>

2ba6edf0 01/26/2010 11:42 pm Stefan Weil

qdev: Add help for device properties

When called with property "?", a list of supported
properties will be printed (instead of an error message).

This is useful for command lines like
qemu -device e1000,?
and was already standard for other options like model=?...

922910ce 01/26/2010 11:42 pm Stefan Weil

qdev: Add help for property value

When called with property value "?",
a help text will be printed (instead of an error message).

This is useful for command lines like
qemu -device e1000,mac=?
and is already standard for other command line options....

69a319d1 01/26/2010 11:42 pm Stefan Weil

Documentation: Improve command line help for -device option

  • Fix column for help text.
  • Give some more help, especially for the new '?' parameters.

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

95d5f08b 01/26/2010 11:42 pm Stefan Weil

Documentation: Add missing texi description for command line options

Some more command line options had entries for command line help,
but documentation for texi and derived formats (man, html, info)
was missing.

For conditional options, the texi documentation was added...

37226ad9 01/26/2010 11:42 pm Naphtali Sprei

No need anymoe for bdrv_set_read_only

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

058fc8c7 01/26/2010 11:42 pm Naphtali Sprei

Ask for read-write permissions when opening files

Found some places that seems needs this explicitly, now that
read-write is not the default.

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

0a7fc983 01/26/2010 11:42 pm Naphtali Sprei

Read-only device changed to opens it's file for read-only.

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

59eb1c85 01/26/2010 11:42 pm Luiz Capitulino

QList: Introduce QLIST_FOREACH_ENTRY()

Iterate over QList entries, it's needed to call qlist_entry_obj()
to retrieve the stored QObject.

I'm not sure if it's ok to have this, because it's not as easy as
qlist_iter() and the QListEntry data type is now exposed to the...

df10ce6a 01/26/2010 11:42 pm Luiz Capitulino

QDict: Introduce qdict_get_qdict()

A helper to retrieve a QDict from a QDict.

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

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

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

monitor.c: fix warnings with _FORTIFY_SOURCE

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

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

linux-user/mmap.c: fix warnings with _FORTIFY_SOURCE

CC i386-linux-user/mmap.o
cc1: warnings being treated as errors
/usr/src/RPM/BUILD/qemu-0.11.92/linux-user/mmap.c: In function 'mmap_frag':
/usr/src/RPM/BUILD/qemu-0.11.92/linux-user/mmap.c:253: error: ignoring return value of 'pread', declared with attribute warn_unused_result...

acdc3f0c 01/26/2010 10:59 pm Juan Quintela

check pipe() return value

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

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

Enable _FORTIFY_SOURCE=2

_FORTIFY_SOURCE is a Glibc feature which adds memory and string function
protection.

Signed-off-by: Kirill A. Shutemov <>
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

a0f291fc 01/26/2010 10:59 pm Juan Quintela

Check availavility of -fstack-protector-all

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

ee636500 01/26/2010 10:59 pm Juan Quintela

mmap_frag() users only check for -1 error

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