Statistics
| Branch: | Revision:

root @ 9a85d394

# Date Author Comment
9a85d394 10/09/2010 11:16 am Stefan Hajnoczi

trace: Use portable format strings

It is not portable to use "%ld" for int64_t because int64_t may have
type long on 64-bit platforms and long long on 32-bit platforms. Use
the standard library PRId64 macros to keep format strings portable.

Signed-off-by: Stefan Hajnoczi <>...

3e18c6bf 10/07/2010 10:20 pm Edgar E. Iglesias

cris: Consider the TLB valid bit on writes to the TLB

When updating the guest TLB we only need to flush previous
mappings from the entry written if the entry was valid.

Also fixes a compiler warning reported by Blue Swirl.

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

4447d609 10/05/2010 10:14 pm Anthony Liguori

Merge remote branch 'spice/submit.6' into staging

Conflicts:
configure

Signed-off-by: Anthony Liguori <>

48f57044 10/05/2010 09:54 pm Anthony Liguori

Merge remote branch 'qmp/for-anthony' into staging

b0cd712c 10/05/2010 09:53 pm Stefan Weil

Fix spelling in comments

multifuction -> multifunction
successfull -> successful.

Signed-off-by: Stefan Weil <>

e0c8a796 10/05/2010 09:53 pm Stefan Weil

linux-user: Fix typo m86k -> m68k

Replace m86k_sim_stat by m68k_sim_stat.

Cc: Riku Voipio <>
Signed-off-by: Stefan Weil <>

f66724c9 10/05/2010 09:53 pm Stefan Weil

Add new user mode option -ignore-environment

An empty environment is sometimes useful in user mode.
The new option provides it for linux-user and bsd-user
(darwin-user still has no environment related options).

The patch also adds the documentation for other...

dda5336e 10/05/2010 09:53 pm Stefan Weil

docs: Improve documentation

Fix some inconsistencies (tabs and punctuation)
and try to improve grammar and spelling.

Cc: Juan Quintela <>
Signed-off-by: Stefan Weil <>

999fa40e 10/05/2010 07:38 pm John Clark

ppc: Minor 40x MMU fixes

  • Fix swapped reading of tlblo/hi.
  • Fix tlb exec permissions

Signed-off-by: John Clark <>
Signed-off-by: Alexander Graf <>
Signed-off-by: Edgar E. Iglesias <>

358664cc 10/03/2010 09:43 am Stefan Hajnoczi

console: Avoid dereferencing NULL active_console

The console_select() function does not check that active_console is
non-NULL before dereferencing it. When invoked with qemu -nodefaults it
is possible to hit this case.

This patch checks that active_console is non-NULL before stashing away...

7fd3f494 10/03/2010 09:41 am Stefan Weil

exec: Fix compilation error for debug code

is_softmmu was removed with commit
d4c430a80f000d722bb70287af4d4c184a8d7006,
so remove it now from debug code, too.

Fix also the format specifier for paddr
in the same line of code.

Cc: Blue Swirl <>...

b832134d 10/03/2010 09:41 am Stefan Weil

rc4030: Fix compilation error in debug code

min was unknown here, so avoid it.

Cc: Blue Swirl <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

a4a77677 10/03/2010 09:40 am Stefan Weil

mipsnet: Fix compiler warning in debug code

size_t needs a different format specifier, so fix this.

Cc: Blue Swirl <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

d523d5d6 10/03/2010 09:40 am Stefan Weil

block/vvfat: Fix compiler warning in debug code

Fix this compiler warning:
./block/vvfat.c:2285: error: comparison of unsigned expression >= 0 is always true

Cc: Blue Swirl <>
Cc: Kevin Wolf <>
Signed-off-by: Stefan Weil <>...

c9ba47dc 10/03/2010 09:39 am Stefan Weil

virtio-9p: Use GCC_FMT_ATTR and fix a format warning

With the new gcc format warnings, gcc detected this:

/qemu/hw/virtio-9p.c:1040: error: format ‘%u’ expects type ‘unsigned int’, but argument 4 has type ‘__nlink_t’

Cc: Blue Swirl <>...

6ea421fe 10/03/2010 09:37 am Stefan Weil

blockdev: Use GCC_FMT_ATTR (format checking)

Additional changes:

  • Removed 'extern' from drive_add (avoids too long line).
  • Removed 'extern' from other functions (makes declarations
    consistent with others in same header file).

Cc: Blue Swirl <>...

8b7968f7 10/03/2010 09:34 am Stefan Weil

Use GCC_FMT_ATTR (format checking)

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

e5924d89 10/03/2010 09:34 am Stefan Weil

Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)

Since version 4.4.x, gcc supports additional format attributes.
attribute ((format (gnu_printf, 1, 2)))
should be used instead of
attribute ((format (printf, 1, 2))...

4a2b39d3 10/03/2010 09:31 am Andreas Färber

slirp: Silence warning on Haiku

Haiku has O_BINARY in fcntl.h.

Signed-off-by: Andreas Färber <>
Cc: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

3ee66dfa 10/03/2010 09:31 am Andreas Färber

tap: Add stub for Haiku

Adapted from AIX code.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

5dc2eec9 10/03/2010 09:31 am Andreas Färber

nbd: Haiku has _IO() in its BSD compatibility layer

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

aff447c9 10/03/2010 09:31 am Andreas Färber

Haiku doesn't have libm

Math functions are integrated into Haiku's libroot.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

bd00d539 10/03/2010 09:31 am Andreas Färber

configure: Don't rely on special pthreads library

Haiku has pthreads integrated into its libroot.so library. No linker arguments
are needed for it, so don't fail if -lpthread and similar don't link.

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

179cf400 10/03/2010 09:31 am Andreas Färber

configure: Add basic support for Haiku

For compatibility with BeOS, Haiku's error codes are negative whereas recent
POSIX versions require them to be positive. As spotted by François, some
parts of QEMU code rely on this, so use a mapper library to convert them...

a82cdd58 10/02/2010 05:28 pm Blue Swirl

trace: avoid unnecessary recompilation if nothing changed

Add logic to detect changes in generated files. If the old
and new files are identical, don't touch the generated file.
This avoids a lot of churn since many files depend on trace.h.

Based on suggestion by Paolo Bonzini....

904fe1fb 10/02/2010 05:28 pm Blue Swirl

Makefile: fix config-devices.mak generation

The logic of detecting changes in default-configs/*.mak is
flawed as can be demonstrated by 'touch default-configs/*.mak'
followed by make. This results in a message claiming that user
made changes to the */config-devices.mak files....

3f7132d1 10/02/2010 05:27 pm Blue Swirl

sysbus: fix address truncation

Fix address truncation in sysbus by using a wider type.

Reported-by: Artyom Tarasenko <>
Tested-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

e6aa0f11 10/02/2010 02:12 pm Stefan Weil

target-microblaze: Use %td for ptrdiff_t arguments in debug message

According to ISO/IEC 9899:1999 7.19.6.1,
the correct length modifier for ptrdiff_t is 't', not 'z'.

Cc: Blue Swirl <>
Cc: Markus Armbruster <>
Signed-off-by: Stefan Weil <>...

211ecdc0 10/02/2010 02:12 pm Stefan Weil

target-cris: Use %td for ptrdiff_t arguments in debug message

According to ISO/IEC 9899:1999 7.19.6.1,
the correct length modifier for ptrdiff_t is 't', not 'z'.

Cc: Blue Swirl <>
Cc: Markus Armbruster <>
Signed-off-by: Stefan Weil <>...

3b2e3dc9 10/02/2010 02:04 pm Edgar E. Iglesias

virtex: Add braces

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

4903de0c 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Rename monitor_handler_is_async()

Let's follow the convention introduced by the previous commit and
call it handler_is_async().

Signed-off-by: Luiz Capitulino <>

de79ba6f 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Directly call QObject handlers

This avoids handle_user_command() calling monitor_call_handler(),
which is currently shared with QMP.

Signed-off-by: Luiz Capitulino <>

fc29df75 10/01/2010 04:20 pm Luiz Capitulino

QMP: Introduce qmp_call_cmd()

Calls a QObject handler and emits the QMP response, also drops
monitor_call_handler() which is now unused.

Signed-off-by: Luiz Capitulino <>

acd0a093 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Rename the qemu-monitor.hx file

Let's be consistent and call it hmp-commands.hx, so that we have
qmp-commands.hx for QMP and hmp-commands.hx for HMP.

Please, note that this commit doesn't touch qemu-monitor.texi. All
texi files have the qemu- prefix and I don't think it's worth...

a18b2ce2 10/01/2010 04:20 pm Luiz Capitulino

QMP/README: Update QMP homepage address

Signed-off-by: Luiz Capitulino <>

07b0403d 10/01/2010 04:20 pm Eduardo Habkost

disable guest-provided stats on "info balloon" command

The addition of memory stats reporting to the virtio balloon causes
the 'info balloon' command to become asynchronous. This is a regression
because in some cases it can hang the user monitor.

This is an alternative to Adam Litke's patch. Adam's patch disabled the...

945c5ac8 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Introduce search_dispatch_table()

It's a generic version of monitor_find_command() which searches
the dispatch table passed as an argument.

Future commits will introduce new dispatch tables, so we need
common code to search them.

Signed-off-by: Luiz Capitulino <>

0fb88582 10/01/2010 04:20 pm Luiz Capitulino

QMP: handle_qmp_command(): Move 'cmd' sanity check

Next commit will change how query commands are handled in a
way that the 'cmd' sanity check is also going to be needed
for query commands handling.

Let's move it out of the else body then.

Signed-off-by: Luiz Capitulino <>

030db6e8 10/01/2010 04:20 pm Luiz Capitulino

QMP: Don't use do_info()

Since its inception, QMP has been using HMP's do_info() function
to run query commands.

This was a bad choice, as it made do_info() more complex and
contributed to couple QMP and HMP.

This commit fixes that by doing the following changes:...

1dcbd6f6 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Drop QMP bits from do_info()

As of last commit, QMP doesn't use do_info() anymore. Simplify it.

Signed-off-by: Luiz Capitulino <>

d4551293 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Drop is_async_return()

If I understood it correcty, the is_async_return() logic was only
used to prevent QMP from issuing duplicated success responses
for asynchronous handlers.

However, QMP doesn't use do_info() anymore so this is dead logic
and (hopefully) can be safely dropped....

1162daa6 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Convert do_info() back to HMP

This is a HMP specific handler, it makes no sense to have it
under QMP.

Signed-off-by: Luiz Capitulino <>

82a56f0d 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Introduce the qmp-commands.hx file

This file contains a copy of the following information from the
qemu-monitor.hx file:

o QObject handlers entries
o QMP documentation (all SQMP/EQMP sections)

Right now it's only used to generate the QMP docs in QMP/, but...

bead3ce1 10/01/2010 04:20 pm Luiz Capitulino

QMP: Introduce qmp_find_cmd()

Next commit needs this new function: it will introduce the
the QMP's command dispatch table and qmp_find_cmd() will be
used to search on it.

Signed-off-by: Luiz Capitulino <>

f36b4afb 10/01/2010 04:20 pm Luiz Capitulino

QMP: Introduce command dispatch table

Also update QMP functions to use it. The table is generated
from the qmp-commands.hx file.

From now on, QMP and HMP have different command dispatch
tables.

Signed-off-by: Luiz Capitulino <>

3e12a751 10/01/2010 04:20 pm Luiz Capitulino

QMP: Introduce query commands dispatch table

The new table is a copy of HMP's table, containing only QObject
handlers.

In the near future HMP will be making QMP calls and then we will
be able to drop QObject handlers from HMP's table.

From now on, QMP and HMP have different query command dispatch...

2e061a7c 10/01/2010 04:20 pm Luiz Capitulino

QMP: Simplify do_info_commands()

We now iterate over QMP's dispatch tables, no need to check for
QMP-only handlers anymore.

Signed-off-by: Luiz Capitulino <>

d1249eaa 10/01/2010 04:20 pm Luiz Capitulino

QMP: Small cleanup in handle_qmp_command()

QMP has its own dispatch tables, we can now drop the following
checks:

o 'info' command: this command doesn't exist in QMP's
dispatch table, the right thing will happen when it's
issued by a client (ie. command not found error)...
30f5041e 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Drop QMP info from the qemu-monitor.hx file

QMP has its own dispatch table and documentation file
(qmp-commands.hx), we can now drop the following QMP specific info
from qemu-monitor.hx:

o SQMP/EQMP sections
o The qmp_capabilities command...
0e19a627 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Drop monitor_cmd_user_only()

This function was only needed when QMP and HMP were sharing dispatch
tables, this is no longer true so just drop it.

Signed-off-by: Luiz Capitulino <>

9e80721e 10/01/2010 04:20 pm Luiz Capitulino

Monitor: Rename monitor_handler_ported()

That name makes no sense anymore, as dispatch tables have been split,
a better name is handler_is_qobject(), which really communicates
the handler's type.

Signed-off-by: Luiz Capitulino <>

212b6008 10/01/2010 04:12 pm Daniel P. Berrange

Add support for JSON pretty printing

The monitor does not pretty-print JSON output, so that everything
will be on a single line reply. When JSON docs get large this is
quite unpleasant to read. For the future command line capabilities
query ability, huge JSON docs will be available. This needs the...

39eaab9a 10/01/2010 04:12 pm Daniel P. Berrange

Add option to turn on JSON pretty printing in monitor

Expaned '-mon' arg to allow a 'pretty=on' flag. This makes the
monitor pretty print its replies to easy human debugging / reading

Signed-off-by: Daniel P. Berrange <>
Signed-off-by: Luiz Capitulino <>

2c50e26e 09/30/2010 07:53 pm Edgar E. Iglesias

powerpc: Add a virtex5 ml507 refdesign board

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

95070372 09/30/2010 07:53 pm Edgar E. Iglesias

powerpc: Add a ppc-440x5 Xilinx model

Add a powerpc 440x5 with the model ID on the Xilinx virtex5.
Connect the 440x5 to the 40x interrupt logic.

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

5251d6ad 09/29/2010 07:15 pm Andreas Färber

tap: Remove double include of util.h

If neither of FreeBSD, FreeBSD_kernel and DragonFly is defined,
util.h is included from tap-bsd.c.
Don't include it again if OpenBSD is defined.

Cc: Blue Swirl <>
Signed-off-by: Andreas Färber <>...

fd5723b3 09/29/2010 07:24 am Wu Fengguang

pulse-audio: fix bug on updating rpos

Fix a rpos coordination bug between qpa_run_out() and qpa_thread_out(),
which shows up as playback noises.

qpa_run_out()
qpa_thread_out loop N critical section 1
qpa_run_out() qpa_thread_out loop N doing pa_simple_write()...
575c153f 09/28/2010 07:56 am malc

audio: Fix memory size for resampling buffer in DAC case

Signed-off-by: malc <>

9fe6de94 09/26/2010 07:07 pm Blue Swirl

mingw: add version information to the executables

Add QEMU version information to the executables, based on earlier
work by C. W. Betts and Robert Riebisch.

Signed-off-by: Blue Swirl <>

0ba8681e 09/26/2010 09:57 am Loïc Minier

Avoid exit in trap as it breaks with some shells

Don't call exit in the trap handler as it causes the return code to be
zero with some buggy shells (dash and pdksh at least) and is useless
here anyway.

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

e78815a5 09/25/2010 02:26 pm Andreas Färber

Introduce qemu_madvise()

vl.c has a Sun-specific hack to supply a prototype for madvise(),
but the call site has apparently moved to arch_init.c.

Haiku doesn't implement madvise() in favor of posix_madvise().
OpenBSD and Solaris 10 don't implement posix_madvise() but madvise()....

d63cb48d 09/24/2010 11:01 pm Edgar E. Iglesias

powerpc: Make the decr interrupt type overridable

Make it possible for boards to override the kind of interrupt
to be signaled when the decr timer hits. The 405's signal PIT
interrupts while the 440's signal DECR.

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

a586e548 09/24/2010 11:01 pm Edgar E. Iglesias

powerpc: Improve emulation of the BookE MMU

Improve the emulation of the BookE MMU to be able to boot linux
on virtex5 boards.

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

c973a36d 09/24/2010 03:09 am malc

fmopl: workaround for -Wempty-body

Signed-off-by: malc <>

9c9e7d51 09/22/2010 11:15 pm Stefan Weil

Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

By moving the definition of GCC_ATTR and GCC_FMT_ATTR
from audio_int.h to qemu-common.h these macros are
now generally available for further patches which add
the gcc format attribute.

Newer gcc versions support format gnu_printf which is...

80bb8cba 09/22/2010 11:05 pm Blue Swirl

Fix OpenBSD build

Add #include <sys/types.h>, needed by #include <sys/socket.h>.

Signed-off-by: Blue Swirl <>

687db4ed 09/22/2010 10:46 pm Anthony Liguori

block-verify: fix 32-bit build

Reported-by: Peter Lemenkov <>
Signed-off-by: Anthony Liguori <>

879f0655 09/22/2010 10:02 pm Stefan Weil

Fix compilation error (missing include statement)

./hw/sd.c: In function ‘sd_init’:
./hw/sd.c:443: error: implicit declaration of function ‘qemu_blockalign’
./hw/sd.c:443: error: nested extern declaration of ‘qemu_blockalign’
./hw/sd.c:443: error: assignment makes pointer from integer without a cast...

e1bb0a1a 09/22/2010 01:50 am Anthony Liguori

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

f36d53ef 09/21/2010 09:55 pm Stefan Weil

mips_malta: Fix format strings

Fix two compiler warnings (when format attribute is applied).

Cc: Aurelien Jarno <>
Cc: Blue Swirl <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

1ed1139d 09/21/2010 09:55 pm Stefan Weil

mips_fulong2e: Fix format strings

Fix two compiler warnings (when format attribute is applied)
and one error (missing %) in format strings.

Cc: Aurelien Jarno <>
Cc: Blue Swirl <>
Signed-off-by: Stefan Weil <>...

91f16900 09/21/2010 09:54 pm Andreas Färber

trace: Fix user emulator dependency on trace objects

On a clean build, after generating trace.h, make would recurse into *-*-user
without a clue how to build ../trace.o (added to $(obj-y) in Makefile.target)
since its generation rule is in the main Makefile....

a3e22260 09/21/2010 07:36 pm Gerd Hoffmann

spice: simple display

With that patch applied you'll actually see the guests screen in the
spice client. This does not bring qxl and full spice support though.
This is basically the qxl vga mode made more generic, so it plays
together with any qemu-emulated gfx card. You can display stdvga or...

869564a9 09/21/2010 07:36 pm Gerd Hoffmann

spice: add tablet support

Add support for the spice tablet interface. The tablet interface will
be registered (and then used by the spice client) as soon as a absolute
pointing device is available and used by the guest, i.e. you'll have to
configure your guest with '-usbdevice tablet'.

cd4ec0b4 09/21/2010 07:36 pm Gerd Hoffmann

add spice into the configure file

29b0040b 09/21/2010 07:36 pm Gerd Hoffmann

spice: core bits

Add -spice command line switch. Has support setting passwd and port for
now. With this patch applied the spice client can successfully connect
to qemu. You can't do anything useful yet though.

864401c2 09/21/2010 07:36 pm Gerd Hoffmann

spice: add keyboard

Open keyboard channel. Now you can type into the spice client and the
keyboard events are sent to your guest. You'll need some other display
like vnc to actually see the guest responding to them though.

78dd9ac1 09/21/2010 07:36 pm Gerd Hoffmann

spice: add mouse

Open mouse channel. Now you can move the guests mouse pointer.
No tablet / absolute positioning (yet) though.

6b62dc2d 09/21/2010 07:35 pm Gerd Hoffmann

Use display types for local display only.

This patch drops DT_VNC. The display types are only used to select
select the local display (i.e. curses, sdl, coca, ...). Remote
displays (for now only vnc, spice will follow) can be enabled
independently.

526c5237 09/21/2010 07:35 pm Gerd Hoffmann

Use machine_init() to register virtfs config options.

d6d94fc3 09/21/2010 07:35 pm Gerd Hoffmann

add pflib: PixelFormat conversion library.

da1d85e3 09/21/2010 07:35 pm Gerd Hoffmann

configure: add logging

Write compile commands and messages to config.log.
Useful for debugging configure.

d9d33417 09/21/2010 06:00 pm Stefan Hajnoczi

blkverify: Add block driver for verifying I/O

The blkverify block driver makes investigating image format data
corruption much easier. A raw image initialized with the same contents
as the test image (e.g. qcow2 file) must be provided. The raw image
mirrors read/write operations and is used to verify that data read from...

6f5f060b 09/21/2010 04:39 pm Kevin Wolf

qcow2: Avoid bounce buffers for AIO write requests

qcow2 used to use bounce buffers for any AIO requests. This does not only imply
unnecessary copying, but also unbounded allocations which should be avoided.

This patch removes bounce buffers from the normal AIO write path. Encrypted...

f8b6d672 09/21/2010 04:39 pm Bernhard Kohl

scsi-generic: add missing reset handler

Ensure that pending requests of a SCSI generic device are purged on
system reset. This also avoids calling a NULL function in lsi53c895a.
The lsi code was recently changed to call the .qdev.reset function.

Signed-off-by: Bernhard Kohl <>...

a5e3d9ef 09/21/2010 04:39 pm Bernhard Kohl

scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

For the RESERVE and RELEASE commands the length must be zero
and xfer_mode must be SCSI_XFER_NONE.

Signed-off-by: Bernhard Kohl <>
Signed-off-by: Kevin Wolf <>

a655211a 09/21/2010 04:39 pm Kevin Wolf

vvfat: Use cache=unsafe

The qcow file used for write support in vvfat is a temporary file,
so we can use cache=unsafe there. Without this, write support is just
too slow to be of any use.

Signed-off-by: Kevin Wolf <>

72aef731 09/21/2010 04:39 pm Christoph Hellwig

use qemu_blockalign consistently

Use qemu_blockalign for all allocations in the block layer. This allows
increasing the required alignment, which is need to support O_DIRECT on
devices with large block sizes.

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

581b9e29 09/21/2010 04:39 pm Christoph Hellwig

raw-posix: handle > 512 byte alignment correctly

Replace the hardcoded handling of 512 byte alignment with bs->buffer_alignment
to handle larger sector size devices correctly.

Note that we can not rely on it to be initialize in bdrv_open, so deal
with the worst case there....

5fe16888 09/21/2010 04:39 pm Laurent Vivier

Improve qemu-nbd performance by 4400 %

This patch allows to reduce the boot time from an NBD server from 225 seconds to
5 seconds (time between the "boot cd:0" and the kernel init) for the
following command lines:

./qemu-nbd -t ../ISO/debian-500-powerpc-netinst.iso...

c2e2872b 09/21/2010 04:39 pm Laurent Vivier

nbd: correctly manage default port

block/nbd.c: use default port number when none is specified
qemu-nbd.c: use IANA-assigned port number: 10809

Signed-off-by: Laurent Vivier <>
Signed-off-by: Kevin Wolf <>

c01828fb 09/21/2010 04:39 pm Kevin Wolf

qcow2: Move sync out of write_refcount_block_entries

Signed-off-by: Kevin Wolf <>

1c4c2814 09/21/2010 04:39 pm Kevin Wolf

qcow2: Move sync out of update_refcount

Note that the flush is omitted intentionally in qcow2_free_clusters. If
anything, we can leak clusters here if we lose the writes.

Signed-off-by: Kevin Wolf <>

29216ed1 09/21/2010 04:39 pm Kevin Wolf

qcow2: Move sync out of qcow2_alloc_clusters

Signed-off-by: Kevin Wolf <>

9f8e668e 09/21/2010 04:39 pm Kevin Wolf

qcow2: Get rid of additional sync on COW

We always have a sync for the refcount update when a new cluster is
allocated. If we move this past the COW, we can save an additional sync.

Signed-off-by: Kevin Wolf <>

316a7af3 09/21/2010 04:39 pm Christoph Hellwig

virtio-blk: propagate the required alignment

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

73fdb1e1 09/21/2010 04:39 pm Christoph Hellwig

scsi-disk: propagate the required alignment

Signed-off-by: Christoph Hellwig <>
Signed-off-by: Kevin Wolf <>

1b2adf28 09/21/2010 04:39 pm Christoph Hellwig

ide: propagate the required alignment

IDE is a bit ugly in this respect. For one it doesn't really keep track
of a sector size - most of the protocol is in units of 512 bytes, and we
assume 2048 bytes for CDROMs which is correct most of the time.

Second IDE allocates an I/O buffer long before we know if we're dealing...

b8a83a4f 09/21/2010 04:39 pm Kevin Wolf

cutils: qemu_iovec_copy and qemu_iovec_memset

This adds two functions that work on QEMUIOVectors and will be used by the next
qcow2 patches.

Signed-off-by: Kevin Wolf <>

bd28f835 09/21/2010 04:39 pm Kevin Wolf

qcow2: Avoid bounce buffers for AIO read requests

qcow2 used to use bounce buffers for any AIO requests. This does not only imply
unnecessary copying, but also unbounded allocations which should be avoided.

This patch removes bounce buffers from the normal AIO read path, and constrains...