Statistics
| Branch: | Revision:

root @ 34b5d2c6

# Date Author Comment
d5124c00 09/12/2013 11:12 am Max Reitz

bdrv: Use "Error" for creating images

Add an Error ** parameter to BlockDriver.bdrv_create to allow more
specific error messages.

Signed-off-by: Max Reitz <>

34b5d2c6 09/12/2013 11:12 am Max Reitz

block: Error parameter for open functions

Add an Error ** parameter to bdrv_open, bdrv_file_open and associated
functions to allow more specific error messages.

Signed-off-by: Max Reitz <>

fd9c577b 09/12/2013 11:12 am Wenchao Xia

qemu-iotests: add tests for runtime fd passing via SCM rights

This case will test whether the monitor can receive fd at runtime.
To verify better, additional monitor is created to see if qemu
can handler two monitor instances correctly.

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

d982919d 09/12/2013 11:12 am Max Reitz

qemu-iotests: New test case in 061

Add one test case for zero cluster expansion on qcow2 version downgrade
in shared L2 tables (i.e., L2 tables with a refcount > 1) and one for
zero expansion on backed clusters in shared L2 tables.

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

2ea1dd75 09/12/2013 11:12 am Wenchao Xia

snapshot: new function bdrv_snapshot_find_by_id_and_name()

To make it clear about id and name in searching, add this API
to distinguish them. Caller can choose to search by id or name,
*errp will be set only for exception.

Some code are modified based on Pavel's patch....

a89d89d3 09/12/2013 11:12 am Wenchao Xia

snapshot: distinguish id and name in snapshot delete

Snapshot creation actually already distinguish id and name since it take
a structured parameter *sn, but delete can't. Later an accurate delete
is needed in qmp_transaction abort and blockdev-snapshot-delete-sync,...

bbe86010 09/12/2013 11:12 am Wenchao Xia

qmp: add internal snapshot support in qmp_transaction

Unlike savevm, the qmp_transaction interface will not generate
snapshot name automatically, saving trouble to return information
of the new created snapshot.

Although qcow2 support storing multiple snapshots with same name...

f323bc9e 09/12/2013 11:12 am Wenchao Xia

qmp: add interface blockdev-snapshot-internal-sync

Snapshot ID can't be specified in this interface.

Signed-off-by: Wenchao Xia <>
Signed-off-by: Kevin Wolf <>

44e3e053 09/12/2013 11:12 am Wenchao Xia

qmp: add interface blockdev-snapshot-delete-internal-sync

This interface use id and name as optional parameters, to handle the
case that one image contain multiple snapshots with same name which
may be '', but with different id.

Adding parameter id is for historical compatiability reason, and...

775ca88e 09/12/2013 11:12 am Wenchao Xia

hmp: add interface hmp_snapshot_blkdev_internal

Signed-off-by: Wenchao Xia <>
Signed-off-by: Kevin Wolf <>

7a4ed2ee 09/12/2013 11:12 am Wenchao Xia

hmp: add interface hmp_snapshot_delete_blkdev_internal

It is hard to make both id and name optional in hmp console as qmp
interface, so this interface require user to specify name.

Signed-off-by: Wenchao Xia <>
Signed-off-by: Kevin Wolf <>

8023090b 09/12/2013 11:12 am Wenchao Xia

qemu-iotests: add 057 internal snapshot for block device test case

Create in transaction and deletion in single command will be tested.

Signed-off-by: Wenchao Xia <>
Signed-off-by: Kevin Wolf <>

015a1036 09/12/2013 11:12 am Max Reitz

bdrv: Use "Error" for opening images

Add an Error ** parameter to BlockDriver.bdrv_open and
BlockDriver.bdrv_file_open to allow more specific error messages.

Signed-off-by: Max Reitz <>

670df5e3 09/12/2013 11:12 am Kevin Wolf

qcow2: Pass discard type to qcow2_discard_clusters()

The function will be used internally instead of only being called for
guest discard requests.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Max Reitz <>

1ebf561c 09/12/2013 11:12 am Kevin Wolf

qcow2: Discard VM state in active L1 after creating snapshot

During savevm, the VM state is written to the active L1 of the image and
then a snapshot is taken. After that, the VM state isn't needed any more
in the active L1 and should be discarded. This is implemented by this...

56e023af 09/12/2013 11:12 am Tal Kain

raw-win32.c: Fix incorrect handling behaviour of small block files

It is a valid case that the read data's size is smaller than the
requested size since there could be files that are smaller than
the minimum block size (For ex. when a VMDK disk descriptor file)...

6f176b48 09/12/2013 11:12 am Max Reitz

block: Image file option amendment

This patch adds the "amend" option to qemu-img which allows changing
image options on existing image files. It also adds the generic bdrv
implementation which is basically just a wrapper for the image format
specific function....

e7108fea 09/12/2013 11:12 am Max Reitz

qcow2-cache: Empty cache

Add a function for emptying a cache, i.e., flushing it and marking all
elements invalid.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

32b6444d 09/12/2013 11:12 am Max Reitz

qcow2-cluster: Expand zero clusters

Add functionality for expanding zero clusters. This is necessary for
downgrading the image version to one without zero cluster support.

For non-backed images, this function may also just discard zero clusters
instead of truly expanding them....

b6481f37 09/12/2013 11:12 am Max Reitz

qcow2: Save refcount order in BDRVQcowState

Save the image refcount order in BDRVQcowState. This will be relevant
for future code supporting different refcount orders than four and also
for code that needs to verify a certain refcount order for an opened...

9296b3ed 09/12/2013 11:12 am Max Reitz

qcow2: Implement bdrv_amend_options

Implement bdrv_amend_options for compat, size, backing_file, backing_fmt
and lazy_refcounts.

Downgrading images from compat=1.1 to compat=0.10 is achieved through
handling all incompatible flags accordingly, clearing all compatible and...

a8110c3d 09/12/2013 11:12 am Max Reitz

qemu-iotest: qcow2 image option amendment

Add tests for qemu-img amend on qcow2 image files.

Signed-off-by: Max Reitz <>
Signed-off-by: Kevin Wolf <>

f93296ea 09/12/2013 11:12 am Wenchao Xia

qemu-iotests: add unix socket help program

This program can do a sendmsg call to transfer fd with unix
socket, which is not supported in python2.

The built binary will not be deleted in clean, but it is a
existing issue in ./tests, which should be solved in another...

30b005d9 09/12/2013 11:12 am Wenchao Xia

qemu-iotests: add infrastructure of fd passing via SCM

This patch make use of the compiled scm helper program to transfer
fd via unix socket at runtime.

Signed-off-by: Wenchao Xia <>
Reviewed-by: Stefan Hajnoczi <>...

2d1fe187 09/11/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/tags/pull-target-arm-20130910' into staging

ARM queue: * aarch64 preparation patchset (excluding the defconfigs, so this
doesn't actually enable the new targets yet) * minor bugfixes and cleanups * disable "-cpu any" in system emulation mode...

6f52e51b 09/11/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'luiz/queue/qmp' into staging

  1. By Cole Robinson
  2. Via Luiz Capitulino
    • luiz/queue/qmp:
      qapi-types.py: Fix enum struct sizes on i686

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

d985bd4d 09/11/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'spice/spice.v73' into staging

  1. By Gerd Hoffmann (2) and Christophe Fergeau (1)
  2. Via Gerd Hoffmann
    • spice/spice.v73:
      qxl: fix local renderer
      qxl: trace io port name
      spice-core: Use g_strdup_printf instead of snprintf...
a640f07c 09/11/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.89' into staging

  1. By Gerd Hoffmann (2) and Miroslav Rezanina (2)
  2. Via Gerd Hoffmann
    • kraxel/usb.89:
      ehci: save device pointer in EHCIState
      Remove dev-bluetooth.c dependency from vl.c
      Preparation for usb-bt-dongle conditional build...
f69f0bca 09/11/2013 10:46 pm Anthony Liguori

Merge remote-tracking branch 'mdroth/qga-pull-2013-9-9' into staging

  1. By Tomoki Sekiyama (10) and Paul Burton (1)
  2. Via Michael Roth
    • mdroth/qga-pull-2013-9-9:
      QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command
      qemu-ga: Install Windows VSS provider on `qemu-ga -s install'...
97fdb941 09/11/2013 10:45 pm Anthony Liguori

Merge remote-tracking branch 'sstabellini/xen-2013-09-09' into staging

  1. By Anthony PERARD
  2. Via Stefano Stabellini
    • sstabellini/xen-2013-09-09:
      pc_q35: Initialize Xen.
      pc: Initializing ram_memory under Xen.

Message-id: ...

964737ea 09/11/2013 10:45 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/block' into staging

  1. By Paolo Bonzini (21) and others
  2. Via Stefan Hajnoczi
    • stefanha/block: (42 commits)
      qemu-iotests: Fixed test case 026
      qemu-iotests: Whitespace cleanup
      dataplane: Fix startup race.
      block: look for zero blocks in bs->file...
ce2b6941 09/11/2013 10:45 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/net' into staging

  1. By Brad Smith (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/net:
      ne2000: mark I/O as LITTLE_ENDIAN
      vmxnet3: Eliminate __packed redefined warning
      e1000: add interrupt mitigation support
      net: Rename send_queue to incoming_queue...
e2cea499 09/10/2013 09:11 pm Alexander Graf

linux-user: Implement cpu_set_tls() and cpu_clone_regs() for AArch64

Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>
Message-id: ...

af89c7db 09/10/2013 09:11 pm Alexander Graf

linux-user: Add AArch64 termbits.h definitions

Add the AArch64 termbits.h with all the target's termios related
constants and structures.

Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>...

4a24a758 09/10/2013 09:11 pm Peter Maydell

linux-user: Allow targets to specify a minimum uname release

For newer target architectures, glibc can be picky about the kernel
version: for example, it will not run on an aarch64 system unless
the kernel reports itself as at least 3.8.0. Accommodate this by...

99033cae 09/10/2013 09:11 pm Alexander Graf

linux-user: Add AArch64 support

This patch adds support for AArch64 in all the small corners of
linux-user (primarily in image loading and startup code).

Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>
Signed-off-by: Peter Maydell <>...

6a49fa95 09/10/2013 09:11 pm Alexander Graf

configure: Add handling code for AArch64 targets

Add the necessary code to configure to handle AArch64 as a target
CPU (we already have some code for supporting it as host). Note
that this doesn't enable the AArch64 targets yet.

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

3407ad0e 09/10/2013 09:11 pm Alexander Graf

target-arm: Export cpu_env

The cpu_env tcg variable will be used by both the AArch32 and AArch64
handling code. Unstaticify it, so that both sides can make use of it.

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

0a2461fa 09/10/2013 09:11 pm Alexander Graf

target-arm: Fix target_ulong/uint32_t confusions

Correct a few places that were using uint32_t or a 32 bit
only format string to handle something that should be a target_ulong.

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

eaed129d 09/10/2013 09:11 pm Peter Maydell

target-arm: Pass DisasContext* to gen_set_pc_im()

We want gen_set_pc_im() to work for both AArch64 and AArch32, but
to do this we'll need the DisasContext* so we can tell which mode
we're in, so pass it in as a parameter.

Signed-off-by: Peter Maydell <>...

d14d42f1 09/10/2013 09:11 pm Peter Maydell

target-arm: Add new AArch64CPUInfo base class and subclasses

Create a new AArch64CPU class; all 64-bit capable ARM
CPUs are subclasses of this. (Currently we only support
one, the "any" CPU used by linux-user.)

Signed-off-by: Peter Maydell <>...

15ee776b 09/10/2013 09:11 pm Peter Maydell

target-arm: Disable 32 bit CPUs in 64 bit linux-user builds

If we're building aarch64-linux-user then the 32 bit CPUs are
all unwanted, because they can't possibly execute the 64 bit
binaries we will be running; disable them.

Signed-off-by: Peter Maydell <>...

3926cc84 09/10/2013 09:11 pm Alexander Graf

target-arm: Prepare translation for AArch64 code

This patch adds all the prerequisites for AArch64 support that didn't
fit into split up patches. It extends important bits in the core cpu
headers to also take AArch64 mode into account.

Add new ARM_TBFLAG_AARCH64_STATE translation buffer flag...

14ade10f 09/10/2013 09:11 pm Alexander Graf

target-arm: Add AArch64 translation stub

We should translate AArch64 mode separately from AArch32 mode. In AArch64 mode,
registers look vastly different, instruction encoding is completely different,
basically the system turns into a different machine.

So let's do a simple if() in translate.c to decide whether we can handle the...

96c04212 09/10/2013 09:11 pm Alexander Graf

target-arm: Add AArch64 gdbstub support

We want to be able to debug AArch64 guests. So let's add the respective gdb
stub functions and xml descriptions that allow us to do so.

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

067d9831 09/10/2013 09:11 pm Alexander Graf

linux-user: Don't treat AArch64 cpu names specially

32-bit ARM has a lot of different names for different types of CPUs it supports.
On AArch64, we don't have this, so we really don't want to execute the 32-bit
logic. Stub it out for AArch64 linux-user guests....

1861c454 09/10/2013 09:11 pm Peter Maydell

linux-user: Add cpu loop for AArch64

Add the main linux-user cpu loop for AArch64. Since AArch64
has a different system call interface, doesn't need to worry
about FPA emulation and may in the future keep the prefetch/data
abort information in different system registers, it's simplest...

c7907301 09/10/2013 09:11 pm Alexander Graf

linux-user: Add syscall number definitions for AArch64

The AArch64 syscall definitions are all publicly available in the Linux
kernel. Let's add them to our linux-user emulation target, so that we
can easily handle AArch64 syscalls.

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

09701199 09/10/2013 09:11 pm Alexander Graf

linux-user: Fix up AArch64 syscall handlers

Some syscall handlers have special code for ARM enabled that we don't
need on AArch64. Exclude AArch64 in those cases. In other places we
can share struct definitions with other targets or have to provide our
own....

1744aea1 09/10/2013 09:11 pm Andreas Schwab

linux-user: Add signal handling for AArch64

This patch adds signal handling for AArch64. The code is based on the
respective source in the Linux kernel.

Signed-off-by: Andreas Schwab <>
Signed-off-by: Alexander Graf <>
Signed-off-by: John Rigby <>...

848d72cd 09/10/2013 09:11 pm Peter Maydell

linux-user: Make sure NWFPE code is 32 bit ARM only

On ARM, linux-user emulation includes NWFPE support for emulating the
ancient FPA floating point coprocessor. This has long since been
superseded by VFP and is only required for legacy binaries. The
AArch64 linux-user target doesn't compile in NWFPE support, so make...

08307563 09/10/2013 09:11 pm Peter Maydell

target-arm: Abstract out load/store from a vaddr in AArch32

AArch32 code (ie traditional 32 bit world) expects to be
able to pass a vaddr in a TCGv_i32. However when QEMU is
compiled with TARGET_LONG_BITS=32 the TCG load/store
functions take a TCGv_i64. Abstract out load/store with...

f570c61e 09/10/2013 09:11 pm Alexander Graf

target-arm: Extract the disas struct to a header file

We will need to share the disassembly status struct between AArch32 and
AArch64 modes. So put it into a header file that both sides can use.

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

78027bb6 09/10/2013 09:09 pm Cole Robinson

target-arm: Implement qmp query-cpu-definitions

Libvirt uses this to introspect available CPU models.

Signed-off-by: Cole Robinson <>
Reviewed-by: Andreas Färber <>
Message-id: ...

031c44e4 09/10/2013 09:09 pm Peter Maydell

pl110: Clarify comment about PL110 ID on VersatilePB

Clarify a comment about the ID register value presented by
the PL110 variant present on the VersatilePB board (based
on testing what the actual hardware does), to indicate that
this is not an error in our emulation, and to remove an #if-0....

4d017979 09/10/2013 09:09 pm Peter Maydell

abitypes.h: Remove incorrect ARM ABI_LLONG_ALIGNMENT

The ARM EABI specifies that 64 bit integers should be
8 aligned; remove our incorrect setting of 4 alignment.
This has no actual effect since it only set the alignment
for the 'abi_ullong' and 'abi_llong' types, which are used...

f5f6d38b 09/10/2013 09:09 pm Peter Maydell

target-arm: Make '-cpu any' available in linux-user mode only

Make the 'any' CPU for target-arm available only in linux-user mode.
The ARM target provides a CPU named "any", which turns on support for
all user-level instruction set extensions we know about. This is...

534df156 09/10/2013 09:09 pm Peter Maydell

target-arm: Use sextract32() in branch decode

In the decode of ARM B and BL insns, swap the order of the
"append 2 implicit zeros to imm24" and the sign extend, and
use the new sextract32() utility function to do the latter.
This avoids a direct dependency on the undefined C behaviour...

78dbbbe4 09/10/2013 09:09 pm Peter Maydell

target-arm: Avoid "1 << 31" undefined behaviour

Avoid the undefined behaviour of "1 << 31" by using 1U to make
the shift be of an unsigned value rather than shifting into the
sign bit of a signed integer. For consistency, we make all the
CPSR_* constants unsigned, though the only one which triggers...

f62cafd4 09/10/2013 09:09 pm Sebastian Ottlik

target-arm: fix ARMv7M stack alignment on reset

When the initial SP is loaded from the vector table on ARMv7M systems the two
least significant bits are ignored as the stack is always aligned at a four byte
boundary (see ARM DDI 0403C, B1.4.1 and B1.5.5). So far QEMU did not ignore...

02dc4bf5 09/10/2013 05:09 pm Cole Robinson

qapi-types.py: Fix enum struct sizes on i686

Unlike other list types, enum wasn't adding any padding, which caused
a mismatch between the generated struct size and GenericList struct
size. More details in a678e26cbe89f7a27cbce794c2c2784571ee9d21

This crashed qemu if calling qmp query-tpm-types for example, which...

615fe4de 09/10/2013 12:14 pm Miroslav Rezanina

Remove dev-bluetooth.c dependency from vl.c

Use usb_legacy_register handling to create bt-dongle device and remove code
dependency from vl.c so CONFIG_USB_BLUETOOTH can be disabled.

Signed-off-by: Miroslav Rezanina <>
Signed-off-by: Gerd Hoffmann <>

adbecc89 09/10/2013 12:14 pm Gerd Hoffmann

ehci: save device pointer in EHCIState

We'll need a pointer to the actual pci/sysbus device,
stick a pointer to it into the EHCIState struct.

https://bugzilla.redhat.com/show_bug.cgi?id=1005495

Signed-off-by: Gerd Hoffmann <>

c60174e8 09/10/2013 12:14 pm Gerd Hoffmann

usb: sanity check setup_index+setup_len in post_load

Signed-off-by: Gerd Hoffmann <>

644e1a8a 09/10/2013 12:14 pm Miroslav Rezanina

Preparation for usb-bt-dongle conditional build

To allow disable usb-bt-dongle device using CONFIG_BLUETOOTH option, some of
functions in vl.c file has to be made accessible in dev-bluetooth.c. This is
pure code moving.

Signed-off-by: Miroslav Rezanina <>...

6735aa99 09/10/2013 12:14 pm Christophe Fergeau

spice-core: Use g_strdup_printf instead of snprintf

Several places in spice-core.c were using either g_malloc+snprintf
or snprintf+g_strdup to achieve the same result as g_strdup_printf.

Signed-off-by: Christophe Fergeau <>
Signed-off-by: Gerd Hoffmann <>

18b20385 09/10/2013 12:14 pm Gerd Hoffmann

qxl: trace io port name

Signed-off-by: Gerd Hoffmann <>

c58c7b95 09/10/2013 12:14 pm Gerd Hoffmann

qxl: fix local renderer

The local spice renderer assumes the primary surface is located at the
start of the "ram" bar. This used to be a requirement in qxl hardware
revision 1. In revision 2+ this is relaxed. Nevertheless guest drivers
continued to use the traditional location, for historical and backward...

20840d4c 09/09/2013 10:17 pm Tomoki Sekiyama

error: Add error_set_win32 and error_setg_win32

These functions help maintaining homogeneous formatting of error messages
with Windows error code and description (generated by
g_win32_error_message()).

Signed-off-by: Tomoki Sekiyama <>...

b39297ae 09/09/2013 10:17 pm Tomoki Sekiyama

qemu-ga: Add Windows VSS provider and requester as DLL

Adds VSS provider and requester as a qga-vss.dll, which is loaded by
Windows VSS service as well as by qemu-ga.

"provider.cpp" implements a basic stub of a software VSS provider.
Currently, this module only relays a frozen event from VSS service to the...

64c00317 09/09/2013 10:17 pm Tomoki Sekiyama

qemu-ga: Call Windows VSS requester in fsfreeze command handler

Support guest-fsfreeze-freeze and guest-fsfreeze-thaw commands for Windows
guests. When fsfreeze command is issued, it calls the VSS requester to
freeze filesystems and applications. On thaw command, it again tells the VSS...

f311f2c2 09/09/2013 10:17 pm Tomoki Sekiyama

qemu-ga: Install Windows VSS provider on `qemu-ga -s install'

Register QGA VSS provider library into Windows when qemu-ga is installed as
Windows service ('-s install' option). It is deregistered when the service
is uninstalled ('-s uninstall' option).

Signed-off-by: Tomoki Sekiyama <>...

e2682db0 09/09/2013 10:17 pm Tomoki Sekiyama

QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command

guest-fsfreeze-freeze command can take longer than 3 seconds when heavy
disk I/O is running. To avoid unexpected timeout, this changes the timeout
to 60 seconds (timeout of pre-commit phase of VSS)....

83f73fce 09/09/2013 10:17 pm Tomoki Sekiyama

configure: Support configuring C++ compiler

Add configuration for C++ compiler in configure and Makefiles.
The C++ compiler is choosed as following:
- ${CXX}, if it is specified.
- ${cross_prefix}g++, if ${cross_prefix} is specified.
- Otherwise, c++ is used....

6f88009e 09/09/2013 10:17 pm Tomoki Sekiyama

Add c++ keywords to QAPI helper script

Add c++ keywords to avoid errors in compiling with c++ compiler.
This also renames class member of PciDeviceInfo to q_class.

Signed-off-by: Tomoki Sekiyama <>
Reviewed-by: Laszlo Ersek <>...

69d5d21f 09/09/2013 10:17 pm Tomoki Sekiyama

checkpatch.pl: Check .cpp files

Enable checkpatch.pl to apply the same checks as C source files for
C++ files with .cpp extensions. It also adds some exceptions for C++
sources to suppress errors for:
- <> used in C++ template arguments (e.g. template <class T>)...

24482749 09/09/2013 10:17 pm Tomoki Sekiyama

Add a script to extract VSS SDK headers on POSIX system

VSS SDK setup.exe is only runnable on Windows. This adds a script
to extract VSS SDK headers on POSIX-systems using msitools.

From: Paolo Bonzini <>...

d9840e25 09/09/2013 10:17 pm Tomoki Sekiyama

qemu-ga: Add configure options to specify path to Windows/VSS SDK

To enable VSS support in qemu-ga for Windows, header files included in
VSS SDK are required.
The VSS support is enabled by the configure option like below:
./configure --with-vss-sdk="/path/to/VSS SDK"...

94c2b6af 09/09/2013 07:42 pm Paul Burton

mips_malta: support up to 2GiB RAM

A Malta board can support up to 2GiB of RAM. Since the unmapped kseg0/1
regions are only 512MiB large & the latter 256MiB of those are taken up
by the IO region, access to RAM beyond 256MiB must be done through a
mapped region. In the case of a Linux guest this means we need to use...

254c1282 09/09/2013 07:24 pm Anthony PERARD

pc_q35: Initialize Xen.

Signed-off-by: Anthony PERARD <>
Signed-off-by: Stefano Stabellini <>
Acked-by: Michael S. Tsirkin <>

04d7bad8 09/09/2013 07:22 pm Anthony PERARD

pc: Initializing ram_memory under Xen.

Signed-off-by: Anthony PERARD <>
Signed-off-by: Stefano Stabellini <>
Acked-by: Michael S. Tsirkin <>
CC:

45d883dc 09/06/2013 06:27 pm Aurelien Jarno

ne2000: mark I/O as LITTLE_ENDIAN

Now that the memory subsystem is propagating the endianness correctly,
the ne2000 device should have its I/O ports marked as LITTLE_ENDIAN, as
PCI devices are little endian.

This makes the ne2000 NIC to work again on PowerPC....

3dbb9786 09/06/2013 06:25 pm Brad Smith

vmxnet3: Eliminate __packed redefined warning

This eliminates a warning about __packed being redefined as exposed by the
vmxnet3 code. __packed is not used anywhere in the vmxnet3 code.

CC    hw/net/vmxnet3.o
In file included from hw/net/vmxnet3.c:29:...
e9845f09 09/06/2013 06:25 pm Vincenzo Maffione

e1000: add interrupt mitigation support

This patch partially implements the e1000 interrupt mitigation mechanisms.
Using a single QEMUTimer, it emulates the ITR register (which is the newer
mitigation register, recommended by Intel) and approximately emulates...

aa4f082f 09/06/2013 06:01 pm Brad Smith

tap: Use numbered tap/tun devices on all *BSD OS's

The following patch simplifies the *BSD tap/tun code and makes use of numbered
tap/tun interfaces on all *BSD OS's. NetBSD has a patch in their pkgsrc tree
to make use of this feature and DragonFly also supports this as well....

067404be 09/06/2013 06:01 pm Jan Kiszka

net: Rename send_queue to incoming_queue

Each networking client has a queue for packets that could not yet be
delivered to that client. Calling this queue "send_queue" is highly
confusing as it has nothing to to with packets send from this client but
to it. Avoid this confusing by renaming it to "incoming_queue"....

8f94b077 09/06/2013 04:25 pm Kevin Wolf

qemu-iotests: Fixed test case 026

The reference output for test case 026 hasn't been updated in a long
time and it's one of the "known failing" cases. This patch updates the
reference output so that unintentional changes can be reliably detected
again.

The problem with this test case is that it produces different output...

b6b8a333 09/06/2013 04:25 pm Paolo Bonzini

block: introduce bdrv_get_block_status API

For now, bdrv_get_block_status is just another name for bdrv_is_allocated.
The next patches will add more flags.

This also touches all block drivers with a mostly mechanical rename. The
sole exception is cow; because it calls cow_co_is_allocated from the read...

4333bb71 09/06/2013 04:25 pm Paolo Bonzini

block: define get_block_status return value

Define the return value of get_block_status. Bits 0, 1, 2 and 9-62
are valid; bit 63 (the sign bit) is reserved for errors. Bits 3-8
are left for future extensions.

The return code is compatible with the old is_allocated API: if a driver...

4bc74be9 09/06/2013 04:25 pm Paolo Bonzini

block: return get_block_status data and flags for formats

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

415b5b01 09/06/2013 04:25 pm Paolo Bonzini

block: use bdrv_has_zero_init to return BDRV_BLOCK_ZERO

Alternatively, this could use a "discard zeroes data" flag returned
by bdrv_get_info.

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

f0ad5712 09/06/2013 04:25 pm Paolo Bonzini

block: return BDRV_BLOCK_ZERO past end of backing file

If the sectors are unallocated and we are past the end of the
backing file, they will read as zero.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

4c93a13b 09/06/2013 04:25 pm Paolo Bonzini

qemu-img: add a "map" subcommand

This command dumps the metadata of an entire chain, in either tabular or JSON
format.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

facd6e2b 09/06/2013 04:25 pm Paolo Bonzini

docs, qapi: document qemu-img map

Eric Blake also requested including the output in qapi-schema.json,
so that it is published through the introspection mechanism.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

63390a8d 09/06/2013 04:25 pm Paolo Bonzini

raw-posix: return get_block_status data and flags

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

f5f7abcf 09/06/2013 04:25 pm Paolo Bonzini

raw-posix: report unwritten extents as zero

These are created for example with XFS_IOC_ZERO_RANGE.

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

918e92d7 09/06/2013 04:25 pm Paolo Bonzini

block: add default get_block_status implementation for protocols

Protocols return raw data, so you can assume the offsets to pass
through unchanged.

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

5daa74a6 09/06/2013 04:25 pm Paolo Bonzini

block: look for zero blocks in bs->file

Reviewed-by: Eric Blake <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

8caf907f 09/06/2013 04:25 pm Cornelia Huck

dataplane: Fix startup race.

Avoid trying to setup dataplane again if dataplane setup is already in
progress. This may happen if an eventfd is triggered during setup.

I saw this occasionally with an experimental s390 irqfd implementation:

virtio_blk_handle_output...

79e40ab1 09/06/2013 04:25 pm Kevin Wolf

qemu-iotests: Whitespace cleanup

These scripts used to have a four characters indentation, with eight
consecutive spaces converted into a tab. Convert everything into spaces.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>