Statistics
| Branch: | Revision:

root @ 57f45b62

# Date Author Comment
57f45b62 03/04/2014 03:02 pm Stefan Weil

Makefile: Add missing dependency for system emulation (fix build)

Comment from Makefile.objs:

The system emulation needs this dependency (which was missing in Makefile),
otherwise builds without tools (or massive parallel builds) fail.

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

d844a7b6 02/28/2014 02:30 pm Fam Zheng

modules: Fix building with --enable-modules

Compiling util/modules.c with modules enabled fails now.

Fix it by including qemu-common.h before #ifdef testing in module.c.

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

9fbee91a 02/27/2014 06:00 pm Peter Maydell

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

  • remotes/kvm/uq/master:
    KVM: Use return value for error print

Signed-off-by: Peter Maydell <>

73795cea 02/27/2014 01:31 pm Peter Maydell

Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140226.0' into staging

Updates include:
- Coverify fixes for vfio & pci-assign (Markus)
- VFIO blacklisting support for known brokwn PCI option ROMs (Bandan)

  1. gpg: Signature made Wed 26 Feb 2014 18:15:28 GMT using RSA key ID 3BB08B22...
2ce5868c 02/27/2014 12:53 am Peter Maydell

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

target-arm queue: * fixes for various Coverity-spotted bugs * support new KVM device control API for VGIC * support KVM VGIC save/restore/migration * more AArch64 system mode foundations...

6f6831f6 02/27/2014 12:31 am Peter Maydell

Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20140225' into staging

migration/next for 20140225

  1. gpg: Signature made Tue 25 Feb 2014 14:04:31 GMT using RSA key ID 5872D723
  2. gpg: Can't check signature: public key not found
  • remotes/juanquintela/tags/migration/20140225:...
bc3fbad8 02/26/2014 10:04 pm Peter Maydell

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

Net patches

  1. gpg: Signature made Tue 25 Feb 2014 13:32:33 GMT using RSA key ID 81AB73C8
  2. gpg: Good signature from "Stefan Hajnoczi <>"
  3. gpg: aka "Stefan Hajnoczi <>"...
28c05edf 02/26/2014 08:22 pm Peter Maydell

Merge remote-tracking branch 'remotes/kraxel/tags/pull-audio-3' into staging

hda-audio: qom cleanups

  1. gpg: Signature made Mon 24 Feb 2014 12:19:48 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
4b943029 02/26/2014 07:33 pm Bandan Das

vfio: blacklist loading of unstable roms

Certain cards such as the Broadcom BCM57810 have rom quirks
that exhibit unstable system behavior duing device assignment. In
the particular case of 57810, rom execution hangs and if a FLR
follows, the device becomes inoperable until a power cycle. This...

52aa17cb 02/26/2014 07:32 pm Bandan Das

qdev-monitor: set DeviceState opts before calling realize

Setting opts before the realize property is set allows the
following patch to make decisions based on whether the user
specified "rombar". This also avoids having to create a new
tristate property especially for this purpose...

82d07945 02/26/2014 07:30 pm Markus Armbruster

pci-assign: Fix potential read beyond buffer on -EBUSY

readlink() doesn't write a terminating null byte.
assign_failed_examine() passes the unterminated string to strrchr().
Oops. Terminate it.

Spotted by Coverity.

Signed-off-by: Markus Armbruster <>...

13665a2d 02/26/2014 07:28 pm Markus Armbruster

vfio: Fix overrun after readlink() fills buffer completely

readlink() returns the number of bytes written to the buffer, and it
doesn't write a terminating null byte. vfio_init() writes it itself.
Overruns the buffer when readlink() filled it completely....

c04018e9 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: implement dmaadnh instruction

Implement the missing DMAADNH instruction. This is a minor variant
of the DMAADDH instruction, so factor out to a common implementation
for both (dmaadxh).

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

024c6e2e 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: Fix misleading type

This type really should just be a regular int as no usages rely on it's
32 bitness (it's only meaningful as a bit position and not a bit mask).
This also fixes a printf which uses the variable with a regular %d.

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

c3143ba8 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: printf format type sweep.

Use PRI formats as appropriate rather than raw %x and %d. This fixes
debug printfery on some host platforms. Fix types of debug only
variables as appropriate.

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

1c8be73d 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: Rename parent_obj

As per current QOM conventions.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Message-id: ...

432a0a13 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: Add event debugging printfs

These are helpful to anyone trying to debug event sequencing.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Message-id: ...

a5ae7e39 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: Fix buffer depth

This is the product of the data-width and the depth arguments, I.e the
depth of the FIFO is in terms of data entries and not bytes (which is
what the original implementation was suggesting). Fix.

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

1f79ee32 02/26/2014 07:20 pm Peter Maydell

target-arm: Add utility function for checking AA32/64 state of an EL

There are various situations where we need to behave differently
depending on whether a given exception level is in AArch64 or
AArch32 state. The state of the current exception level is stored...

0956ff5a 02/26/2014 07:20 pm Will Newton

include/qemu/crc32c.h: Rename include guards to match filename

Signed-off-by: Will Newton <>
Reviewed-by: Peter Maydell <>
Message-id:
Signed-off-by: Peter Maydell <>

eb0ecd5a 02/26/2014 07:20 pm Will Newton

target-arm: Add support for AArch32 ARMv8 CRC32 instructions

Add support for AArch32 CRC32 and CRC32C instructions added in ARMv8
and add a CPU feature flag to enable these instructions.

The CRC32-C implementation used is the built-in qemu implementation...

63a31905 02/26/2014 07:20 pm Peter Crosthwaite

dma/pl330: Delete overly verbose debug printf

When using event synchronisation, this particular debug printf floods.
Just delete it.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Message-id: ...

1ed69e82 02/26/2014 07:20 pm Peter Maydell

target-arm: A64: Implement WFI

Implement the WFI instruction for A64; this just involves wiring
up the instruction, and adding a gen_a64_set_pc_im() which was
accidentally omitted from the A64 decoder top loop.

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

4cc35614 02/26/2014 07:20 pm Peter Maydell

target-arm: Store AIF bits in env->pstate for AArch32

To avoid complication in code that otherwise would not need to
care about whether EL1 is AArch32 or AArch64, we should store
the interrupt mask bits (CPSR.AIF in AArch32 and PSTATE.DAIF
in AArch64) in one place consistently regardless of EL1's mode....

9cfa0b4e 02/26/2014 07:20 pm Peter Maydell

target-arm: A64: Implement MSR (immediate) instructions

Implement the MSR (immediate) instructions, which can update the
PSTATE SP and DAIF fields.

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

34222fb8 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 view of CPACR

Implement the AArch64 view of the CPACR. The AArch64
CPACR is defined to have a lot of RES0 bits, but since
the architecture defines that RES0 bits may be implemented
as reads-as-written and we know that a v8 CPU will have...

a7adc4b7 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 generic timers

Implement the AArch64 view of the generic timer system registers.

Signed-off-by: Peter Maydell <>

e60cef86 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 ID and feature registers

Implement the AArch64-specific ID and feature registers. Although
many of these are currently not used by the architecture (and so
always zero for all implementations), we define the full set of
fields in the ARMCPU struct for symmetry....

0b45451e 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 dummy breakpoint and watchpoint registers

In AArch64 the breakpoint and watchpoint registers are mandatory, so the
kernel always accesses them on bootup. Implement dummy versions, which
read as written but have no actual effect....

cd5c11b8 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 OSLAR_EL1 sysreg as WI

Define a dummy version of the AArch64 OSLAR_EL1 system register
which just ignores writes. Linux will always write to this (it
is the OS lock used for debugging), but we don't support debug.

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

d9ea7d29 02/26/2014 07:20 pm Peter Maydell

target-arm: Get MMU index information correct for A64 code

Emit the correct MMU index information for loads and stores from
A64 code, rather than hardwiring it to "always kernel mode",
by storing the exception level in the TB flags, and make
cpu_mmu_index() return the right answer when the CPU is in...

cb2e37df 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 TCR_EL1

Implement the AArch64 TCR_EL1, which is the 64 bit view of
the AArch32 TTBCR. (The uses of the bits in the register are
completely different, but in any given situation the CPU will
always interpret them one way or the other. In fact for QEMU EL1...

a505d7fe 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 VBAR_EL1

Implement the A64 view of the VBAR system register.

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

327ed10f 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 TTBR*

Implement the AArch64 TTBR* registers. For v7 these were already 64 bits
to handle LPAE, but implemented as two separate uint32_t fields.
Combine them into a single uint64_t which can be used for all purposes.
Since this requires touching every use, take the opportunity to rename...

4b7fff2f 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 MPIDR

Implement the AArch64 MPIDR system register.

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

168aa23b 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 TLB invalidate ops

Implement the AArch64 TLB invalidate operations. This is
the full set of TLBI ops defined for a CPU which doesn't
implement EL2 or EL3.

Signed-off-by: Peter Maydell <>

91e24069 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 dummy MDSCR_EL1

We don't support letting the guest do debug, but Linux prods the
monitor debug system control register anyway, so implement a dummy
RAZ/WI version.

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

b0fe2427 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 memory attribute registers

Implement the AArch64 memory attribute registers. Since QEMU doesn't
model caches it does not need to care about memory attributes at all,
and we can simply make these read-as-written.

We did not previously implement the AArch32 versions of the MAIR...

5ebafdf3 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 SCTLR_EL1

Implement the AArch64 view of the system control register SCTLR_EL1.

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

0eef9d98 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 CurrentEL sysreg

Implement the CurrentEL sysreg.

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

cd4da631 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 MIDR_EL1

Implement the AArch64 view of the MIDR system register
(for AArch64 it is a simple constant, unlike the complicated
mess that TI925 imposes on the 32-bit view).

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

8af35c37 02/26/2014 07:20 pm Peter Maydell

target-arm: Implement AArch64 cache invalidate/clean ops

Implement all the AArch64 cache invalidate and clean ops
(which are all NOPs since QEMU doesn't emulate the cache).
The only remaining unimplemented cache op is DC ZVA.

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

855011be 02/26/2014 07:20 pm Christoffer Dall

hw: arm_gic_kvm: Add KVM VGIC save/restore logic

Save and restore the ARM KVM VGIC state from the kernel. We rely on
QEMU to marshal the GICState data structure and therefore simply
synchronize the kernel state with the QEMU emulated state in both
directions....

67ed771d 02/26/2014 07:20 pm Peter Maydell

target-arm: Fix raw read and write functions on AArch64 registers

The raw read and write functions were using the ARM_CP_64BIT flag in
ri->type to determine whether to treat the register's state field as
uint32_t or uint64_t; however AArch64 register info structs don't use...

7da845b0 02/26/2014 07:20 pm Peter Maydell

target-arm: A64: Make cache ID registers visible to AArch64

Make the cache ID system registers (CLIDR, CSSELR, CCSIDR, CTR)
visible to AArch64. These are mostly simple 64-bit extensions of the
existing 32 bit system registers and so can share reginfo definitions....

876074c2 02/26/2014 07:20 pm Christoffer Dall

linux-headers: Update from v3.14-rc3

Update to tag v3.14-rc3 (6d0abeca3242a88cab8232e4acd7e2bf088f3bc2)

Signed-off-by: Christoffer Dall <>
Message-id:
Signed-off-by: Peter Maydell <>

d6032e06 02/26/2014 07:20 pm Christoffer Dall

kvm: Introduce kvm_arch_irqchip_create

Introduce kvm_arch_irqchip_create an arch-specific hook in preparation
for architecture-specific use of the device control API to create IRQ
chips.

Following patches will implement the ARM irqchip create method to prefer...

0a6a7cca 02/26/2014 07:20 pm Christoffer Dall

kvm: Common device control API functions

Introduces two simple functions:
int kvm_device_ioctl(int fd, int type, ...);
int kvm_create_device(KVMState *s, uint64_t type, bool test);

These functions wrap the basic ioctl-based interactions with KVM in a...

1da41cc1 02/26/2014 07:20 pm Christoffer Dall

arm: vgic device control api support

Support creating the ARM vgic device through the device control API and
setting the base address for the distributor and cpu interfaces in KVM
VMs using this API.

Because the older KVM_CREATE_IRQCHIP interface needs the irq chip to be...

cf143ad3 02/26/2014 07:19 pm Peter Maydell

hw/arm/musicpal: Remove nonexistent CDTP2, CDTP3 registers

The ethernet device in the musicpal only has two tx queues,
but we modelled it with four CTDP registers, presumably a
cut and paste from the rx queue registers. Since the tx_queue[]
array is only 2 entries long this allowed a guest to overrun...

c10f7fc3 02/26/2014 07:19 pm Peter Maydell

target-arm: Load correct access bits from ARMv5 level 2 page table descriptors

In ARMv5 level 2 page table descriptors, each 4K or 64K page is split into
four subpages, each of which can have different access permission settings,
which are specified by four two-bit fields in the l2 descriptor. A...

6453fa99 02/26/2014 07:19 pm Christoffer Dall

hw/intc/arm_gic: Fix GIC_SET_LEVEL

The GIC_SET_LEVEL macro unfortunately overwrote the entire level
bitmask instead of just or'ing on the necessary bits, causing active
level PPIs on a core to clear PPIs on other cores.

Cc:
Reported-by: Rob Herring <>...

106a73b6 02/26/2014 07:19 pm Peter Maydell

hw/net/stellaris_enet: Avoid unintended sign extension

Add a cast to avoid an unintended sign extension that
would mean we returned 0xffffffff in the high 32 bits
for an IA0 read if bit 31 in the MAC address was 1.
(This is harmless since we'll only be doing 4 byte...

cba933b2 02/26/2014 07:19 pm Peter Maydell

hw/timer/arm_timer: Avoid array overrun for bad addresses

The integrator's timer read/write functions log an error for
bad addresses in guest accesses, but were falling through and
using an out of bounds array index rather than returning early.
Fix this....

775fda92 02/26/2014 07:19 pm Peter Maydell

target-arm: Fix incorrect arithmetic constructing short-form PAR for ATS ops

Correct some obviously nonsensical bit manipulation spotted by Coverity
when constructing the short-form PAR value for ATS operations.

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

fce0a826 02/26/2014 07:19 pm Peter Maydell

hw/intc/exynos4210_combiner: Don't overrun output_irq array in init

The Exynos4210 combiner has IIC_NIRQ inputs and IIC_NGRP outputs;
use the correct constant in the loop initializing our output
sysbus IRQs so that we don't overrun the output_irq[] array....

ec1efab9 02/26/2014 07:19 pm Peter Maydell

hw/misc/arm_sysctl: Fix bad boundary check on mb clock accesses

Fix incorrect use of sizeof() rather than ARRAY_SIZE() to guard
accesses into the mb_clock[] array, which was allowing a malicious
guest to overwrite the end of the array.

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

05a738c4 02/26/2014 06:54 am Peter Crosthwaite

microblaze/s3adsp_1800: Define macros for irq map

Define macros for the interrupt map for the sake of self documentation.

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

81cce07e 02/26/2014 06:54 am Peter Crosthwaite

ppc/virtex_ml507: Define macros for irq/memory maps

Define macros for the interrupt and memory maps for the sake of self
documentation.

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

8174196b 02/26/2014 06:54 am Peter Crosthwaite

microblaze/ml605: Define macros for irq/memory maps

Define (missing) macros for the interrupt and memory maps for the sake
of self documentation.

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

13c9bfbf 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_intc_create()

Inline these usages. Converts these init to at least a semi-recent QOM
styling.

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

29873712 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_timer_create()

Inline these usages. Converts these init to at least a semi-recent QOM
styling.

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

b8d4e1c4 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usage of xilinx_ethlite_create()

Inline the only usage. Converts this init to at least a semi-recent QOM
styling.

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

d91a68a7 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Inline usages of xilinx_axi*_init()

Inline the only usage of each of xilinx_axiethernet_init and
xilinx_axidma_init. Converts this init to at least a semi-recent QOM
styling.

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

d5001cf7 02/26/2014 06:54 am Peter Crosthwaite

xilinx: Delete hw/include/xilinx.h

This is now obsolete - remove the header and all its inclusions.

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

aa0d1f44 02/25/2014 08:34 pm Paolo Bonzini

modules: do not include gmodule-2.0 in static builds

gmodule-2.0's pkg-config files include -Wl,--export-dynamic, which breaks
static builds. It is a glib bug, but we need to support --static builds for
the linux-user targets, and in the end all that is needed to fix this is:...

a89d97df 02/25/2014 05:17 pm Peter Maydell

Merge remote-tracking branch 'remotes/spice/tags/pull-spice-3' into staging

qxl: add sanity check

  1. gpg: Signature made Mon 24 Feb 2014 12:01:27 GMT using RSA key ID D3E87138
  2. gpg: Good signature from "Gerd Hoffmann (work) <>"
  3. gpg: aka "Gerd Hoffmann <>"...
d6085e3a 02/25/2014 03:31 pm Stefan Hajnoczi

net: remove implicit peer from offload API

The virtio_net offload APIs are used on the NIC's peer (i.e. the tap
device). The API was defined to implicitly use nc->peer, saving the
caller the trouble.

This wasn't ideal because:
1. There are callers who have the peer but not the NIC. Currently they...

e3e48565 02/25/2014 03:31 pm Stefan Hajnoczi

vhost_net: use offload API instead of bypassing it

There is no need to access backend->info->has_vnet_hdr() and friends
anymore. Use the qemu_has_vnet_hdr() API instead.

Signed-off-by: Stefan Hajnoczi <>

ad37bb3b 02/25/2014 03:31 pm Stefan Hajnoczi

virtio-net: use qemu_get_queue() where possible

qemu_get_queue() is a shorthand for qemu_get_subqueue(n->nic, 0). Use
the shorthand where possible.

Signed-off-by: Stefan Hajnoczi <>

24a370ef 02/25/2014 03:30 pm Dr. David Alan Gilbert

Fix vmstate_info_int32_le comparison/assign

Fix comparison of vmstate_info_int32_le so that it succeeds if loaded
value is (l)ess than or (e)qual

When the comparison succeeds, assign the value loaded
This is a change in behaviour but I think the original intent, since...

6d3cb1f9 02/25/2014 03:30 pm Dr. David Alan Gilbert

Fix two XBZRLE corruption issues

Push zero'd pages into the XBZRLE cache
A page that was cached by XBZRLE, zero'd and then XBZRLE'd again
was being compared against a stale cache value

Don't use 'qemu_put_buffer_async' to put pages from the XBZRLE cache...

41310c68 02/25/2014 03:30 pm Michael R. Hines

rdma: rename 'x-rdma' => 'rdma'

As far as we can tell, all known bugs have been fixed:

1. Parallel migrations are working
2. IPv6 migration is working
3. virt-test is working

I'm not comfortable sending the revised libvirt patch
until this is accepted or review suggestions are addressed,...

aded6539 02/25/2014 03:26 pm Juan Quintela

qemu_file: use fwrite() correctly

fwrite() returns the number of items written. But when there is one
error, it can return a short write.

In the particular bug that I was tracking, I did a migration to a
read-only filesystem. And it was able to finish the migration...

0459650d 02/25/2014 02:30 pm Peter Maydell

Merge remote-tracking branch 'remotes/mdroth/qga-pull-2014-02-24' into staging

  • remotes/mdroth/qga-pull-2014-02-24:
    qemu-ga: isa-serial support on Windows
    qga: Fix memory allocation pasto
    qga: Don't require 'time' argument in guest-set-time command...
05fd3bf2 02/25/2014 01:54 pm Peter Maydell

Merge remote-tracking branch 'remotes/xtensa/tags/20140224-xtensa' into staging

Xtensa fixes and improvements queue 2014-02-24:
- add support for ML605 and KC705 FPGA boards;
- flush opencores_eth queue when new RX descriptor is available;
- add basic checks to cache opcodes;...

1f55ac45 02/25/2014 12:50 pm Vincenzo Maffione

net: extend NetClientInfo for offloading

Some new callbacks have been added to generalize the operations done
by virtio-net and vmxnet3 frontends to manipulate TAP offloadings.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

2e753bcc 02/25/2014 12:50 pm Vincenzo Maffione

net: TAP uses NetClientInfo offloading callbacks

The TAP NetClientInfo structure is inizialized with the TAP-specific
functions that manipulates offloading features.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

cf528b89 02/25/2014 12:50 pm Vincenzo Maffione

net: virtio-net and vmxnet3 use offloading API

With this patch, virtio-net and vmxnet3 frontends make
use of the qemu_peer_* API for backend offloadings manipulations,
instead of calling TAP-specific functions directly.
We also remove the existing checks which prevent those frontends...

3bac80d3 02/25/2014 12:50 pm Vincenzo Maffione

net: make tap offloading callbacks static

Since TAP offloadings are manipulated through a new API, it's
not necessary to export them in include/net/tap.h anymore.

Signed-off-by: Vincenzo Maffione <>
Signed-off-by: Stefan Hajnoczi <>

f6c65bfb 02/25/2014 12:50 pm Vincenzo Maffione

net: add offloading support to netmap backend

Whit this patch, the netmap backend supports TSO/UFO/CSUM
offloadings, and accepts the virtio-net header, similarly to what
happens with TAP. The offloading callbacks in the NetClientInfo
interface have been implemented....

0a985b37 02/25/2014 12:50 pm Vincenzo Maffione

net: Disable netmap backend when not supported

This patch fixes configure so that the netmap backend is not compiled in if the
host doesn't support an API version >= 11. A version upper bound (15) has been
added so that the netmap API can be extended with some minor features without...

6e50d188 02/25/2014 12:50 pm Max Filippov

opencores_eth: flush queue whenever can_receive can go from false to true

The following registers control whether MAC can receive frames:
- MODER.RXEN bit that enables/disables receiver;
- TX_BD_NUM register that specifies number of RX descriptors.
Notify QEMU networking core when the MAC is ready to receive frames....

e96dfd11 02/25/2014 12:50 pm Vincenzo Maffione

net: change vnet-hdr TAP prototypes

The tap_has_vnet_hdr() and tap_has_vnet_hdr_len() functions used
to return int, even though they only return true/false values.
This patch changes the prototypes to return bool.

Signed-off-by: Vincenzo Maffione <>...

e7a1d6c5 02/25/2014 12:50 pm Peter Maydell

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

Block patches

  1. gpg: Signature made Fri 21 Feb 2014 21:42:24 GMT using RSA key ID C88F2FD6
  2. gpg: Good signature from "Kevin Wolf <>"
  • remotes/kevin/tags/for-upstream: (54 commits)...
c58e2915 02/24/2014 06:12 pm Peter Maydell

Merge remote-tracking branch 'remotes/sstabellini/xen-140220' into staging

  • remotes/sstabellini/xen-140220:
    xen_disk: fix io accounting
    Call pci_piix3_xen_ide_unplug from unplug_disks

Signed-off-by: Peter Maydell <>

6dedf052 02/24/2014 05:38 pm Peter Maydell

Merge remote-tracking branch 'remotes/bonzini/configure' into staging

  • remotes/bonzini/configure:
    build: softmmu targets do not have a "main.o" file
    configure: Disable libtool if -fPIE does not work with it (bug #1257099)
    block: convert block drivers linked with libs to modules...
98b21dcd 02/24/2014 04:53 pm Peter Maydell

configure: check that C++ compiler actually works

Check that the C++ compiler works with the C compiler; if it
does not, then don't pass CXX to the build process. This
fixes a regression where QEMU was no longer building if the
build environment didn't have a C++ compiler (introduced...

9c70434f 02/24/2014 02:00 pm Gerd Hoffmann

qxl: add sanity check

Signed-off-by: Gerd Hoffmann <>
Reviewed-by: Laszlo Ersek <>

cd6c8830 02/24/2014 11:42 am Gerd Hoffmann

hda-audio: qom cleanups

Add HDA_AUDIO type and macro, drop DO_UPCAST().

Had to add a abstract hda audio class as parent
for all hda-* variants to make that fly. Killed
some init code duplication while being at it.

Cc: Andreas Färber <>...

2c09eee1 02/24/2014 02:47 am Max Filippov

target-xtensa: add basic tests for cache opcodes

Test that non-locking prefetch operations don't cause exceptions on
missing TLB and that other 'hit' cache operations do.

Signed-off-by: Max Filippov <>

676056d4 02/24/2014 02:47 am Max Filippov

target-xtensa: refactor standard core configuration

Coalesce all standard configuration sections into single
DEFAULT_SECTIONS macro for all cores. This allows to add new features in
a single place: overlay_tool.h

Signed-off-by: Max Filippov <>

604e1f9c 02/24/2014 02:47 am Max Filippov

target-xtensa: provide HW confg ID registers

Signed-off-by: Max Filippov <>

e0db904d 02/24/2014 02:47 am Max Filippov

hw/xtensa: add support for ML605 and KC705 FPGA board

Signed-off-by: Max Filippov <>
Reviewed-by: Andreas Färber <>

b807b5ff 02/24/2014 02:47 am Max Filippov

opencores_eth: flush queue whenever can_receive can go from false to true

The following registers control whether MAC can receive frames:
- MODER.RXEN bit that enables/disables receiver;
- TX_BD_NUM register that specifies number of RX descriptors.
Notify QEMU networking core when the MAC is ready to receive frames....

65026682 02/24/2014 02:47 am Max Filippov

target-xtensa: add RRRI4 opcode format fields

This encoding is used by cache instructions.

Signed-off-by: Max Filippov <>

7c842590 02/24/2014 02:47 am Max Filippov

target-xtensa: add basic checks to dcache opcodes

Check privilege level for privileged instructions (DHI, DHU, DII, DIU, DIWB,
DIWBI, DPFL are privileged), memory accessibility for instructions that
reference memory (all DH* and DPFL) and windowed register validity for all...

e848dd42 02/24/2014 02:47 am Max Filippov

target-xtensa: add basic checks to icache opcodes

Check privilege level for privileged instructions (IHU, III, IIU and IPFL
are privileged), memory accessibility for instructions that reference memory
(IH* and IPFL) and windowed register validity for all instruction cache...

d0fa1f0d 02/24/2014 02:47 am Max Filippov

target-xtensa: add overridable test_init macro

Some test suites, like MMU, need per-test initialization. Don't make them
redefine test macro, add test_init for that purpose.

Signed-off-by: Max Filippov <>

a2e67072 02/24/2014 02:47 am Max Filippov

target-xtensa: allow using core configuration in tests

Add path to the core configuration directory to test build command and
replace .include asm directive with #include to enable preprocessing.

Signed-off-by: Max Filippov <>