Statistics
| Branch: | Revision:

root @ 10f5bff6

# Date Author Comment
10f5bff6 02/20/2014 02:12 pm Fam Zheng

util: Split out exec_dir from os_find_datadir

With this change, main() calls qemu_init_exec_dir and uses argv0 to
init exec_dir. The saved value can be retrieved with
qemu_get_exec_dir later. It will be reused by module loading.

Signed-off-by: Fam Zheng <>...

46eef33b 02/17/2014 01:44 pm Brad

Fix QEMU build on OpenBSD on x86 archs

This resolves the build issue with building the ROMs on OpenBSD on x86 archs.
As of OpenBSD 5.3 the compiler builds PIE binaries by default and thus the
whole OS/packages and so forth. The ROMs need to have PIE disabled....

0dbcf95a 02/15/2014 10:26 pm Michael Tokarev

libvixl: fix 64bit constants usage

Since commit 999b53ec8794f203964db3ecf939a3da5c4bc843:
Author: Claudio Fontana <>
Date: Wed Feb 5 17:27:28 2014 +0000

disas: Implement disassembly output for A64
Use libvixl to implement disassembly output in debug...
078a1c37 02/15/2014 06:36 pm Peter Maydell

Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-02-15' into staging

trivial patches for 2014-02-15

  1. gpg: Signature made Sat 15 Feb 2014 12:10:46 GMT using RSA key ID 74F0C838
  2. gpg: Good signature from "Michael Tokarev <>"...
44e3a39f 02/15/2014 06:15 pm Peter Maydell

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging

Block pull request

  1. gpg: Signature made Fri 14 Feb 2014 17:26:30 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
90ce3d76 02/15/2014 05:20 pm Peter Maydell

Merge remote-tracking branch 'remotes/jliu/or32-ld-st' into staging

  • remotes/jliu/or32-ld-st:
    target-openrisc: Use new qemu_ld/st opcodes

Signed-off-by: Peter Maydell <>

a50f98b0 02/15/2014 05:07 pm Peter Maydell

Merge remote-tracking branch 'remotes/jovanovic/mips-ufrp' into staging

  • remotes/jovanovic/mips-ufrp:
    target-mips: add user-mode FR switch support for MIPS32r5
    target-mips: add support for CP0_Config5
    target-mips: add support for CP0_Config4
    target-mips: add CPU definition for MIPS32R5...
a63e5e0c 02/15/2014 02:10 pm Stefan Weil

misc: Fix case Qemu -> QEMU

Signed-off-by: Stefan Weil <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Michael Tokarev <>

c1570e2a 02/15/2014 02:10 pm Sebastian Huber

sparc/leon3: Initialize stack pointer

A lot of real world LEON3 systems are shipped with the GRMON boot
loader. This boot loader initializes the stack pointer with the end of
RAM address. The application can use this to detect the RAM size of a
particular board variant....

3f281822 02/15/2014 02:10 pm Stewart Smith

configure: add hint of libfdt to DTC dependency not found message

Most distros package it as libfdt, and mentioning libfdt here makes it
much easier to find the package you're missing.

Signed-off-by: Stewart Smith <>
Reviewed-by: Stefan Weil <>...

21684af0 02/15/2014 02:10 pm Stewart Smith

configure: add hints to a remedy for feature_not_found errors

Modify feature_not_found to accept an optional second parameter to be
printed after the generic feature not found error.

Modify most calls to feature_not_found to provide hints as to the
packages that may be missing. The few calls remaining without a remedy...

62dc90c6 02/15/2014 02:10 pm Michael Tokarev

linux-user: refactor do_socketcall()

Refactor do_socketcall() to do argument conversion/checking first,
according to a lookup table (which call has how many args) and
by calling the right function second with ready-to-go arguments.

This ensures that all arguments are handled as abi_long, according...

26247179 02/15/2014 02:10 pm Michael Tokarev

net: declare struct iovec in checksum.h to fix compiler warning

The checksum calculation header exports a function that refers to
struct iov defined in iov.h. Without including the former, build
fails like this:

In file included from hw/net/fsl_etsec/rings.c:24:0:...
24c84e68 02/15/2014 02:10 pm Michael Tokarev

vl: remove old, long-unused defines

Signed-off-by: Michael Tokarev <>

b33276a7 02/15/2014 02:10 pm Michael Tokarev

vl: trim includes

Over time, lots of stuff moved from vl.c into separate
files. But include statements has never been cleaned,
and they continue to carry lots of anymore-unused stuff.

Remove includes which are not relevant for vl.c anymore.
Apparently there are more includes like this, because...

5556332a 02/15/2014 02:10 pm Michael Tokarev

gitignore: anchor all ignored names

by default, patterns/names in .gitignore are applied
recursively to all subdirectories. So any name mentioned
in .gitignore is ignored in all subdirectores. This is good
for, say. object files (*.o), but not good for particular...

88c1ee73 02/15/2014 02:10 pm Peter Crosthwaite

char/serial: Fix emptyness check

This was guarding against a full fifo rather than an empty fifo when
popping. Fix.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Martin Kletzander <>
Reviewed-by: Dr. David Alan Gilbert <>...

18968ca1 02/14/2014 07:05 pm Jeff Cody

block: qemu-iotests - add vhdx log replay tests for qemu-img

VHDX logs can now be replayed via 'qemu-img check -r all'. Add
tests to verify that the log replay is successful when using qemu-img.

Signed-off-by: Jeff Cody <>
Signed-off-by: Stefan Hajnoczi <>

2aa4a86f 02/14/2014 07:05 pm Fam Zheng

qemu-iotests: Don't run 005 on vmdk split formats

There would be too many extents that VMDK driver can't open all of them:

005 0s ... - output mismatch (see 005.out.bad)
--- 005.out 2013-12-24 09:27:27.608181030 0800
+
+ 005.out.bad 2014-02-13 10:00:15.282184557 +0800...
cc67f4d1 02/14/2014 07:05 pm Jeff Cody

block: mirror - use local_err to avoid NULL errp

When starting a block job, commit_active_start() relies on whether *errp
is set by mirror_start_job. This allows it to determine if the mirror
job start failed, so that it can clean up any changes to open flags from...

57b6bdf3 02/14/2014 07:05 pm Benoît Canet

blockdev: Fix wrong usage of QDECREF causing snapshoted quorum to crash on close.

As bdrv_open() documentation states:
"The reference to the QDict belongs to the block layer * after the call (even on failure), so if the caller intends to reuse the * dictionary, it needs to use QINCREF before calling bdrv_open."...

dd67fa50 02/14/2014 07:05 pm Benoît Canet

block: Relax bdrv_lookup_bs constraints.

The following patch will reuse bdrv_lookup_bs in order to open images by
references so the rules of usage of bdrv_lookup_bs must be relaxed a bit.

Signed-off-by: Benoit Canet <>
Reviewed-by: Max Reitz <>...

0c5e94ee 02/14/2014 07:05 pm Benoît Canet

block: Open by reference will try device then node_name.

Since we introduced node_name for named bs of the graph modify the opening by
reference to use it as a fallback.

This patch also enforce the separation of the device id and graph node
namespaces.
...

39a611a3 02/14/2014 07:05 pm Jeff Cody

block: Don't throw away errno via error_setg

There are a handful of places in the block layer where a failure path
has a valid -errno value, yet error_setg() is used. Those instances
should instead use error_setg_errno(), to preserve as much error
information as possible....

e0018078 02/14/2014 07:05 pm Jeff Cody

block: qemu-iotests - fix test 070 (vhdx)

VHDX test 070 failed, due to different output from qemu-io / qemu
when opening an image read-only that contains a log file. Filter
the output, and update the expected results to match the correct
output.

Signed-off-by: Jeff Cody <>...

28f106af 02/14/2014 02:38 pm Jeff Cody

block: Add notes to iSCSI's .bdrv_open and .bdrv_reopen_prepare

iSCSI currently does not need to do any actions to support the
current usage of bdrv_reopen(). However, it is important to note
a couple of things: 1.) A connection will not be re-established to...

1a838745 02/14/2014 02:04 pm Kevin Wolf

sdhci: Drop unnecessary #include

Signed-off-by: Kevin Wolf <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Stefan Hajnoczi <>

ee13ed1c 02/14/2014 02:04 pm Kevin Wolf

blockdev: Remove 'type' parameter from blockdev_init()

blockdev-add doesn't know about the device that the backend will be
attached to, this is a legacy -drive concept. Move the remaining checks
that use it to drive_init().

[Fam Zheng <> suggested line-wrapping to 80 chars as...

933b19ea 02/14/2014 12:42 pm Alexander Graf

PPC: KVM: Add missing address space to ldl_phys helper

We now have to pass an address space to our _phys helpers. During the
transition apparently the EPR exit path missed out, so let's put it there.

Signed-off-by: Alexander Graf <>
Signed-off-by: Peter Maydell <>

0888a29c 02/13/2014 05:02 pm Peter Maydell

Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

acpi,pc,pci fixes and enhancements

Most changes here are hotplug related:

This merges hotplug infrastructure changes by Igor,
some acpi related fixes, and PC fixes.

Signed-off-by: Michael S. Tsirkin <>...

f673e70c 02/13/2014 04:52 pm Peter Maydell

Merge remote-tracking branch 'remotes/afaerber/tags/prep-for-upstream' into staging

PReP machine and devices

  • Cleanups for Raven PCI host bridge
  • Removal of PReP machine and devices from qemu-system-ppcemb
  1. gpg: Signature made Mon 10 Feb 2014 16:19:03 GMT using RSA key ID 3E7E013F...
9d74f6fe 02/12/2014 07:53 pm Peter Maydell

Merge remote-tracking branch 'remotes/alon/pull-libcacard.glusterfs' into staging

  • remotes/alon/pull-libcacard.glusterfs:
    libcacard: Don't link with all libraries QEMU links to

Signed-off-by: Peter Maydell <>

628a746c 02/12/2014 06:42 pm Peter Maydell

Merge remote-tracking branch 'remotes/kevin/tags/for-anthony' into staging

Block patches

  1. gpg: Signature made Sun 09 Feb 2014 08:12:51 GMT using RSA key ID C88F2FD6
  2. gpg: Good signature from "Kevin Wolf <>"
  • remotes/kevin/tags/for-anthony:...
5631e69c 02/12/2014 02:47 am Richard Henderson

target-openrisc: Use new qemu_ld/st opcodes

Signed-off-by: Richard Henderson <>
Acked-by: Jia Liu <>
Signed-off-by: Jia Liu <>

a4550442 02/11/2014 02:57 pm Edgar E. Iglesias

petalogix-ml605: Create the CPU with object_new()

This is to allow future patches to set properties before cpu::realize().

Reviewed-by: Andreas Färber <>
Signed-off-by: Edgar E. Iglesias <>

2e38847b 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make cpu_memory_rw_debug use the CPUs AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2a221651 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make cpu_physical_memory_write_rom input an AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

db3be60d 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stb_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

5ce5944d 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2198a121 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_phys_notdirty input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

ab1da857 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

f606604f 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make stq_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

41701aa4 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make lduw_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

2c17449b 02/11/2014 02:57 pm Edgar E. Iglesias

exec: Make ldq/ldub_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

fdfba1a2 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make ldl_*_phys input an AddressSpace

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

33bde2e1 02/11/2014 02:56 pm Edgar E. Iglesias

exec: On AS changes, only flush affected CPU TLBs

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

09daed84 02/11/2014 02:56 pm Edgar E. Iglesias

cpu: Add per-cpu address space

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

c6c6958c 02/11/2014 02:56 pm Edgar E. Iglesias

memory: Add MemoryListener to typedefs.h

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

1b3fb98f 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make memory_region_section_get_iotlb use section AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

3be91e86 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Always initialize MemorySection address spaces

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

77717094 02/11/2014 02:56 pm Edgar E. Iglesias

exec: Make iotlb_to_region input an AS

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

29d8ec7b 02/11/2014 02:55 pm Edgar E. Iglesias

exec: Make tb_invalidate_phys_addr input an AS

No functional change.

Reviewed-by: Peter Maydell <>
Signed-off-by: Edgar E. Iglesias <>

8fa75749 02/11/2014 01:26 pm Peter Maydell

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

target-arm queue: * more A64 Neon instructions * AArch32 VCVTB and VCVTT ARMv8 instructions * fixes to inaccuracies in GIC emulation * libvixl disassembler for A64...

702f6df9 02/10/2014 08:31 pm Peter Maydell

Merge remote-tracking branch 'remotes/kvaneesh/for-upstream' into staging

  • remotes/kvaneesh/for-upstream:
    hw/9pfs: fix P9_STATS_GEN handling
    hw/9pfs: make get_st_gen() return ENOTTY error on special files
    hw/9pfs: handle undefined FS_IOC_GETVERSION case in handle_ioc_getversion()...
a87f3954 02/10/2014 08:10 pm Paolo Bonzini

memory: fix limiting of translation at a page boundary

Commit 360e607 (address_space_translate: do not cross page boundaries,
2014-01-30) broke MMIO accesses in cases where the section is shorter
than the full register width. This can happen for example with the...

ea81ce06 02/10/2014 06:06 pm Andreas Färber

prep: Drop from ppcemb-softmmu

ppcemb covers only embedded processors, which does not include PReP.

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

736d120a 02/10/2014 05:46 pm Petar Jovanovic

target-mips: add user-mode FR switch support for MIPS32r5

Description of UFR feature:

Required in MIPS32r5 if floating point is implemented and user-mode FR
switching is supported. The UFR register allows user-mode to clear StatusFR
by executing a CTC1 to UFR with GPR0 as input, and read StatusFR by...

b4dd99a3 02/10/2014 05:46 pm Petar Jovanovic

target-mips: add support for CP0_Config5

Add CP0_Config5, define rw_bitmask and enable modifications.

Signed-off-by: Petar Jovanovic <>
Reviewed-by: Eric Johnson <>

b4160af1 02/10/2014 05:46 pm Petar Jovanovic

target-mips: add support for CP0_Config4

Add CP0_Config4, define rw_bitmask.

Signed-off-by: Petar Jovanovic <>
Reviewed-by: Eric Johnson <>

e527526d 02/10/2014 05:45 pm Petar Jovanovic

target-mips: add CPU definition for MIPS32R5

Add mips32r5-generic among CPU definitions for MIPS.
Define ISA_MIPS32R3 and ISA_MIPS32R5.

Signed-off-by: Petar Jovanovic <>
Reviewed-by: Eric Johnson <>

417c45ab 02/10/2014 11:09 am Gabriel L. Somlo

ACPI: Remove commented-out code from HPET._CRS

IRQNoFlags on HPET._CRS crashes WinXP because it causes the HPET
to conflict with the system timer and/or the RTC. It only occurs
on Apple hardware, and even there it is exposed fully only when
OS X is detected (via _OSI). Recent OS X versions work on QEMU...

c24d5e0b 02/10/2014 10:27 am Igor Mammedov

acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API

Split piix4_device_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PIIX4_PM device.

Replace pci_bus_hotplug() wiring with setting link on...

5d268704 02/10/2014 10:27 am Igor Mammedov

pci/shpc: convert SHPC hotplug to use hotplug-handler API

Split shpc_device_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCI_BRIDGE_DEV device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS...

a66e657e 02/10/2014 10:27 am Igor Mammedov

pci/pcie: convert PCIE hotplug to use hotplug-handler API

Split pcie_cap_slot_hotplug() into hotplug/unplug callbacks
and register them as "hotplug-handler" interface implementation of
PCIE_SLOT device.

Replace pci_bus_hotplug() wiring with setting link on PCI BUS...

5e954943 02/10/2014 10:27 am Igor Mammedov

hw/pci: switch to a generic hotplug handling for PCIDevice

make qdev_unplug()/device_set_realized() to call hotplug handler's
plug/unplug methods if available and remove not needed anymore
hot(un)plug handling from PCIDevice.

In case if hotplug handler is not available, revert to the legacy...

2897ae02 02/10/2014 10:26 am Igor Mammedov

qdev:pci: refactor PCIDevice to use generic "hotpluggable" property

Get rid of PCIDevice specific PCIDeviceClass.no_hotplug and use
generic DeviceClass.hotpluggable field instead.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

5fdae20c 02/10/2014 10:23 am Igor Mammedov

hw/acpi: move typeinfo to the file end

do so to avoid not necessary forward declarations and
place typeinfo registration at the file end where it's
usually expected.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

a1483f88 02/10/2014 10:23 am Michael S. Tsirkin

loader: document that errno is set

Document that get_image_size sets errno
on failure.

Suggested-by: Peter Maydell <>
Reviewed-by: Eric Blake <>
Signed-off-by: Michael S. Tsirkin <>

9f117d41 02/10/2014 10:23 am Igor Mammedov

define hotplug interface

Provide a generic hotplug interface for hotplug handlers.
Intended for replacing hotplug mechanism used by
PCI/PCIE/SHPC code and will be used for memory hotplug.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Michael S. Tsirkin <>...

0ee4de6c 02/10/2014 10:23 am Igor Mammedov

qdev: add to BusState "hotplug-handler" link

It will allow to reuse field with different BUSes,
reducing code duplication. Field is intended for
replacing 'hotplug_qdev' field in PCIBus and also
will allow to avoid adding equivalent field to
DimmBus with possiblitity to refactor other BUSes...

1a37eca1 02/10/2014 10:23 am Igor Mammedov

qdev: add "hotpluggable" property to Device

Currently it's possible to make PCIDevice not hotpluggable
by using no_hotplug field of PCIDeviceClass. However it
limits this only to PCI devices and prevents from
generalizing hotplug code.

So add similar field to DeviceClass so it could be reused...

963116b0 02/09/2014 04:49 pm Hervé Poussineau

raven: Use constant PCI_NUM_PINS instead of 4

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Andreas Färber <>

c0f2bf9b 02/09/2014 04:49 pm Hervé Poussineau

prep: Kill get_system_io() usage

While ISA address space in prep machine is currently the one returned
by get_system_io(), this depends of the implementation of i82378/raven
devices, and this may not be the case forever.

Use the right ISA address space when adding some more ports to it....

73db416a 02/09/2014 01:06 pm Christophe Fergeau

libcacard: Don't link with all libraries QEMU links to

As described in https://bugzilla.redhat.com/show_bug.cgi?id=987441 ,
libcacard currently links to all the libraries QEMU is linking to,
including glusterfs libraries, libiscsi, ... libcacard does not need all of...

16f0587e 02/09/2014 10:12 am Hu Tao

qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset()

n_start can be actually calculated from offset. The number of
sectors to be allocated(n_end - n_start) can be passed in in
num. By removing n_start and n_end, we can save two parameters.

The side effect is there is a bug in qcow2.c:preallocate() that...

33304ec9 02/09/2014 10:12 am Hu Tao

qcow2: fix offset overflow in qcow2_alloc_clusters_at()

When cluster size is big enough it can lead to an offset overflow
in qcow2_alloc_clusters_at(). This patch fixes it.

The allocation is stopped each time at L2 table boundary
(see handle_alloc()), so the possible maximum bytes could be...

7c2bbf4a 02/09/2014 10:12 am Hu Tao

qcow2: check for NULL l2meta

In the case of a metadata preallocation with a large cluster size,
qcow2_alloc_cluster_offset() can allocate nothing and returns a
NULL l2meta. This patch checks for it and link2 l2 with only valid
l2meta.

Replace 9 and 512 with BDRV_SECTOR_BITS, BDRV_SECTOR_SIZE...

693a50ad 02/09/2014 10:12 am Hu Tao

qemu-iotests: add test for qcow2 preallocation with different cluster sizes

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

ad6aef43 02/09/2014 10:12 am Kevin Wolf

raw: Fix BlockLimits passthrough

raw copies over the BlockLimits of bs->file during bdrv_open().
However, since commit d34682cd it is immediately overwritten during
bdrv_refresh_limits(). This caused all fields except for
opt_transfer_length and opt_mem_alignment (which happen to be correctly...

99c4a85c 02/09/2014 10:12 am Kevin Wolf

block: Fix memory leaks in bdrv_co_do_pwritev()

The error path for a failure in one of the two bdrv_aligned_preadv()
calls leaked head_buf or tail_buf, respectively. This fixes the memory
leak.

Reported-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>...

af91f9a7 02/09/2014 10:12 am Kevin Wolf

block: bdrv_aligned_pwritev: Assert overlap range

This adds assertions that the request that we actually end up passing to
the block driver (which includes RMW data and has therefore potentially
been rounded to alignment boundaries) is fully covered by the...

5f5bcd80 02/09/2014 10:12 am Kevin Wolf

block: Don't call ROUND_UP with negative values

The behaviour of the ROUND_UP macro with negative numbers isn't obvious.
It happens to do the right thing in this please, but better avoid it.

Suggested-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>...

eaf944a4 02/09/2014 10:12 am Kevin Wolf

blkdebug: Don't leak bs->file on failure

Reported-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>
Reviewed-by: Laszlo Ersek <>

e96126ff 02/09/2014 10:12 am Kevin Wolf

block: Fix 32 bit truncation in mark_request_serialising()

On 32 bit hosts, size_t is too small for align as the bitmask
~(align - 1) will zero out the higher 32 bits of the offset.

While at it, change the local overlap_bytes variable to unsigned to
match the field in BdrvTrackedRequest....

f5106206 02/09/2014 10:12 am Kevin Wolf

qemu-iotest: Make 077 raw-only

The qemu-io command sequences make the assumption that an unaligned
request on the format layer will be unaligned on the blkdebug layer as
well. This doesn't necessarily hold true for drivers other than raw.

Signed-off-by: Kevin Wolf <>...

6542aa9c 02/09/2014 10:12 am Peter Lieven

block: add native support for NFS

This patch adds native support for accessing images on NFS
shares without the requirement to actually mount the entire
NFS share on the host.

NFS Images can simply be specified by an url of the form:
nfs://<host>/<export>/<filename>[?param=value[&param2=value2[&...]]]...

1f7bf7d0 02/09/2014 10:12 am Peter Lieven

qemu-iotests: change _supported_proto to file for various tests

all these tests do anything of the following and thus fail with any
protocol other than file:
- the tests use rm, cp or mv shell commands which only work on file
- the tests use qcow2.py
- the images construct new filenames (e.g. backing file names) and...

ecd792fd 02/09/2014 10:12 am Peter Lieven

qemu-iotests: blacklist test 020 for NFS protocol

reopening is currently not supported.

Signed-off-by: Peter Lieven <>
Signed-off-by: Kevin Wolf <>

a19737f1 02/09/2014 10:12 am Peter Lieven

qemu-iotests: enable test 016 and 025 to work with NFS protocol

Signed-off-by: Peter Lieven <>
Signed-off-by: Kevin Wolf <>

170632db 02/09/2014 10:12 am Peter Lieven

qemu-iotests: enable support for NFS protocol

Signed-off-by: Peter Lieven <>
Signed-off-by: Kevin Wolf <>

765003db 02/09/2014 10:12 am Kevin Wolf

block: Fail gracefully with missing filename

This fixes a regression introduced in commit 2a05cbe42 ('block: Allow
block devices without files'):

$ qemu-system-x86_64 drive driver=file
qemu-system-x86_64: block.c:892: bdrv_open_common: Assertion
`!drv
>bdrv_needs_filename || filename != ((void *)0)' failed....

5d259fc7 02/09/2014 10:12 am Peter Lieven

block/iscsi: always fill bs->bl.opt_transfer_length

the opt_transfer_length has nothing to do with logical
block provisioning stuff so always copy it from
the block limits VPD page.

Reported-By: Benoit Canet <>
Signed-off-by: Peter Lieven <>...

1f6b12f7 02/08/2014 05:57 pm Peter Maydell

Merge remote-tracking branch 'remotes/mwalle/tags/lm32-fixes/20140204' into staging

target-lm32: fixes

  1. gpg: Signature made Tue 04 Feb 2014 18:47:56 GMT using DSA key ID 3F98A378
  2. gpg: Can't check signature: public key not found
  • remotes/mwalle/tags/lm32-fixes/20140204:...
37fd5b53 02/08/2014 04:50 pm Peter Maydell

disas/libvixl: Fix upstream libvixl compilation issues

Fix various minor issues with upstream libvixl so that it will compile
successfully on the platforms QEMU cares about: * remove unused GBytes constant (it clashes with the glib headers) * fix suffixes on constants to use 'LL' for 64 bit constants so...

999b53ec 02/08/2014 04:50 pm Claudio Fontana

disas: Implement disassembly output for A64

Use libvixl to implement disassembly output in debug
logs for A64, for use with both AArch64 hosts and targets.

Signed-off-by: Claudio Fontana <>
[PMM: * added support for target disassembly...

c4e57af8 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: implement push/pop of multiple bytes

The patch adds functions fifo8_push_all() and fifo8_pop_buf() which
can be used respectively to push the content of a memory buffer to the
fifo and to pop multiple bytes obtaining a pointer to the fifo backing...

58892d47 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: clear fifo head upon reset

To improve the predictability of fifo8_pop_buf(), the fifo head is set
to the start of data buffer upon a reset so that the first call to the
function will be able to retrieve all data in the fifo.

Signed-off-by: Beniamino Galvani <>...

22f90bcb 02/08/2014 04:50 pm Beniamino Galvani

hw/net: add support for Allwinner EMAC Fast Ethernet controller

This patch adds support for the Fast Ethernet MAC found on Allwinner
SoCs, together with a basic emulation of Realtek RTL8201CP PHY.

Since there is no public documentation of the Allwinner controller, the...

db7dfd4c 02/08/2014 04:50 pm Beniamino Galvani

hw/arm/allwinner-a10: initialize EMAC

Signed-off-by: Beniamino Galvani <>
Reviewed-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

69991d7d 02/08/2014 04:50 pm Sebastian Huber

arm/zynq: Add software system reset via SCLR

Support software-driven system reset via the register in the SCLR.

Signed-off-by: Sebastian Huber <>
Reviewed-by: Peter Crosthwaite <>
Signed-off-by: Peter Maydell <>