Statistics
| Branch: | Revision:

root / hw / net @ cb77e358

# Date Author Comment
cb77e358 12/02/2013 07:04 pm Zhi Yong Wu

virtio-net: fix the indent

Signed-off-by: Zhi Yong Wu <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Michael Tokarev <>

90d131fb 11/21/2013 04:28 pm Michael S. Tsirkin

Revert "e1000/rtl8139: update HMP NIC when every bit is written"

This reverts commit cd5be5829c1ce87aa6b3a7806524fac07ac9a757.
Digging into hardware specs shows this does not
actually make QEMU behave more like hardware:

There are valid arguments backed by the spec to indicate why the version...

88a47b9d 11/19/2013 10:58 pm Anthony Liguori

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

  1. By Amos Kong (1) and Sebastian Huber (1)
  2. Via Stefan Hajnoczi
    • stefanha/net:
      virtio-net: fix the memory leak in rxfilter_notify()
      smc91c111: Fix receive starvation

Message-id: ...

8c630d51 11/19/2013 10:57 pm Anthony Liguori

Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream-1.7' into staging

Patch queue for ppc - 2013-11-08

These are two patches that will hopefully make it into 1.7. The SLOF update
fixes -append kernel command line argument passing into the guest kernel. The...

96e35046 11/19/2013 11:26 am Amos Kong

virtio-net: fix the memory leak in rxfilter_notify()

object_get_canonical_path() returns a gchar*, it should be freed by the
caller.

Signed-off-by: Amos Kong <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Vlad Yasevich <>...

8b7acc79 11/15/2013 02:25 pm Sebastian Huber

smc91c111: Fix receive starvation

In case the smc91c111 interface signals that it cannot receive more
packets the packets are queued and further reception will be disabled.
In case the interface is again ready to receive packets notify the upper
layer.

Signed-off-by: Sebastian Huber <>...

cc386e96 11/08/2013 06:32 pm Dmitry Fleytman

virtio-net: broken RX filtering logic fixed

Upon processing of VIRTIO_NET_CTRL_MAC_TABLE_SET command
multicast list overwrites unicast list in mac_table.
This leads to broken logic for both unicast and multicast RX filtering.

Signed-off-by: Dmitry Fleytman <>...

29fdedfe 11/08/2013 05:33 am Alexey Kardashevskiy

spapr: add vio-bus devices to categories

In order to get devices appear in output of
"./qemu-system-ppc64 -device ?",
they must be assigned to one of DEVICE_CATEGORY_XXXX.

This puts VIO devices classes to corresponding categories.

Signed-off-by: Alexey Kardashevskiy <>...

cd5be582 11/07/2013 07:46 am Amos Kong

e1000/rtl8139: update HMP NIC when every bit is written

We currently just update the HMP NIC info when the last bit of macaddr
is written. This assumes that guest driver will write all the macaddr
from bit 0 to bit 5 when it changes the macaddr, this is the current...

fe2dafa0 11/07/2013 07:46 am Jason Wang

virtio-net: only delete bh that existed

We delete without check whether it existed during exit. This will lead NULL
pointer deference since it was created conditionally depends on guest driver
status and features. So add a check of existence before trying to delete it....

09fa8439 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove be32_to_cpupu()

Replace the legacy be32_to_cpupu() with ldl_be_p().

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Michael S. Tsirkin <>
Message-id: ...

d8ee2591 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove cpu_to_be16wu()

Replace the legacy cpu_to_be16wu() with stw_be_p().

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Michael S. Tsirkin <>
Message-id: ...

6bd194ab 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove cpu_to_be32wu()

Replace the legacy cpu_to_be32wu() with stl_be_p().

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Michael S. Tsirkin <>
Message-id: ...

f567656a 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove le32_to_cpupu()

Replace the legacy le32_to_cpupu() with ldl_le_p().

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Michael S. Tsirkin <>
Message-id: ...

6e931878 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove cpu_to_le32wu()

Replace the legacy cpu_to_le32wu() with stl_le_p().

Signed-off-by: Peter Maydell <>
Reviewed-by: Richard Henderson <>
Reviewed-by: Michael S. Tsirkin <>
Message-id: ...

b0eb759f 10/31/2013 05:58 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pci, pc, acpi fixes, enhancements

This includes some pretty big changes:
- pci master abort support by Marcel
- pci IRQ API rework by Marcel
- acpi generation support by myself

Everything has gone through several revisions, latest versions have been on...

655d3b63 10/18/2013 02:28 pm Amos Kong

net: update nic info during device reset

macaddr is reset during device reset, but nic info
isn't updated, this problem exists in e1000 & rtl8139

Signed-off-by: Amos Kong <>
Acked-by: Michael S. Tsirkin <>
Signed-off-by: Stefan Hajnoczi <>

7c36507c 10/18/2013 02:28 pm Amos Kong

net/e1000: update network information when macaddr is changed in guest

If we change macaddr in guest by 'ifconfig eth0 hw ether 12:12:12:34:35:36',
the mac register of e1000 is already updated, but we don't update
network information in qemu. Therefor, the information in monitor...

23c37c37 10/18/2013 02:28 pm Amos Kong

net/rtl8139: update network information when macaddr is changed in guest

rtl8139 has same problem as e1000, nic info isn't updated when macaddr
is changed in guest.

This patch updates the nic info when the last bit of macaddr is written.

Signed-off-by: Amos Kong <>...

4c89e3e5 10/14/2013 05:11 pm Marcel Apfelbaum

hw/vmxnet3: set interrupts using pci irq wrappers

pci_set_irq uses PCI_INTERRUPT_PIN config register
to compute device INTx pin to assert/deassert.

An assert is used to ensure that intx received
from the quest OS corresponds to PCI_INTERRUPT_PIN.

Signed-off-by: Marcel Apfelbaum <>...

9e64f8a3 10/14/2013 05:11 pm Marcel Apfelbaum

hw: set interrupts using pci irq wrappers

pci_set_irq and the other pci irq wrappers use
PCI_INTERRUPT_PIN config register to compute device
INTx pin to assert/deassert.

An irq is allocated using pci_allocate_irq wrapper
only if is needed by non pci devices....

eb322b81 10/01/2013 01:15 am Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pc,pci,virtio fixes and cleanups

This includes pc and pci cleanups and enhancements,
and a virtio-net bugfix related to softmac programming.

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

702d66a8 09/22/2013 09:30 am Michael S. Tsirkin

virtio-net: fix up HMP NIC info string on reset

When mac is updated on reset, info string has stale data.
Fix it up.

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

a26405b3 09/20/2013 08:49 pm Aurelien Jarno

pcnet-pci: mark I/O and MMIO as LITTLE_ENDIAN

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

This makes the pcnet-pci NIC to work again on big endian MIPS Malta...

97410dde 09/20/2013 08:49 pm Vincenzo Maffione

e1000: NetClientInfo.receive_iov implemented

This patch implements the NetClientInfo.receive_iov method for the
e1000 device emulation. In this way a network backend that uses
qemu_sendv_packet() can deliver the fragmented packet without
requiring an additional copy in the frontend/backend network code...

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

213f0c4f 08/30/2013 10:15 pm Andreas Färber

qom: Pass available size to object_initialize()

To be passed on to object_initialize_with_type().

Acked-by: Cornelia Huck <> (virtio-ccw)
Signed-off-by: Andreas Färber <>

bc72ad67 08/22/2013 08:14 pm Alex Bligh

aio / timers: Switch entire codebase to the new timer API

This is an autogenerated patch using scripts/switch-timer-api.

Switch the entire code base to using the new timer API.

Note this patch may introduce some line length issues.

Signed-off-by: Alex Bligh <>...

ee76c1f8 08/05/2013 03:11 pm Jan Kiszka

pcnet: Flush queued packets on end of STOP state

Analogously to other NICs, we have to inform the network layer when
the can_receive handler will no longer report 0. Without this, we may
get stuck waiting on queued incoming packets.

Signed-off-by: Jan Kiszka <>...

f6bda9cb 07/30/2013 03:56 am Peter Maydell

spapr: Rename 'dprintf' to 'DPRINTF'

'dprintf' is the name of a POSIX standard function so we should not be
stealing it for our debug macro. Rename to 'DPRINTF' (in line with
a number of other source files.)

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

4632cf2d 07/29/2013 10:07 pm Andreas Färber

opencores_eth: QOM cast cleanup

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

a4dbb8bd 07/29/2013 10:07 pm Andreas Färber

mipsnet: QOM cast cleanup

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

546921ea 07/29/2013 10:07 pm Andreas Färber

xgmac: QOM cast cleanup

Introduce type constant and use QOM casts and typedef consistently.

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

91a28042 07/29/2013 10:07 pm Andreas Färber

xilinx_ethlite: QOM cast cleanup

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

318643be 07/29/2013 10:06 pm Andreas Färber

cadence_gem: QOM cast cleanup

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

8784dfa4 07/29/2013 10:06 pm Andreas Färber

etraxfs_eth: QOM cast cleanup

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

58076497 07/29/2013 10:06 pm Andreas Färber

etraxfs_eth: Rename fs_eth to ETRAXFSEthState

Also add a typedef.

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

3ff66d10 07/29/2013 10:06 pm Andreas Färber

lan9118: QOM cast cleanup

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

b1a2aaf7 07/29/2013 10:06 pm Andreas Färber

lance: QOM cast cleanup

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

0e57587f 07/29/2013 10:06 pm Andreas Färber

milkymist-minimac2: QOM cast cleanup

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

926d152e 07/29/2013 10:06 pm Andreas Färber

smc91c111: QOM cast cleanup

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

2fa30aba 07/29/2013 10:06 pm Andreas Färber

stellaris_enet: QOM cast cleanup

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

0618db44 07/29/2013 10:06 pm Andreas Färber

stellaris_enet: Fix NetClientInfo::cleanup

Drop freeing stellaris_enet_state - that is done by QOM later on unref.

Both MemoryRegion init and savevm registration happen in SysBusDevice
initfn currently, so move them into an unrealizefn for now.

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

949fc823 07/29/2013 06:37 pm Marcel Apfelbaum

hw: import bitmap operations in qdev-core header

Made small tweaks in code to prevent compilation issues
when importing qemu/bitmap.h in qdev-core

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

686fefe4 07/29/2013 06:37 pm David Gibson

pseries: savevm support for PAPR VIO logical lan

This patch adds the necessary VMStateDescription information to support
savevm/loadvm for the spapr_llan (PAPR logical lan) device.

Signed-off-by: David Gibson <>
Reviewed-by: Anthony Liguori <>...

dfc6f865 07/27/2013 10:22 am Stefan Weil

misc: Use g_assert_not_reached for code which is expected to be unreachable

The macro g_assert_not_reached is a better self documenting replacement
for assert(0) or assert(false).

Signed-off-by: Stefan Weil <>
Signed-off-by: Michael Tokarev <>

567a3c9e 07/23/2013 01:37 am Peter Crosthwaite

net/e1000: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

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

b08340d5 07/23/2013 01:37 am Andreas Färber

net/e1000: QOM parent field cleanup

Replace direct uses of E1000State::dev field with QOM casts and rename
it to parent_obj.

Acked-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

39257515 07/23/2013 01:37 am Peter Crosthwaite

net/rtl8139: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

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

88a411a8 07/23/2013 01:37 am Andreas Färber

net/rtl8139: QOM parent field cleanup

Replace direct uses of RTL8139State::dev with QOM casts and rename it to
parent_obj.

Acked-by: Peter Crosthwaite <>
Signed-off-by: Andreas Färber <>

1f8c7946 07/23/2013 01:37 am Peter Crosthwaite

net/pcnet-pci: QOM Upcast Sweep

Define and use standard QOM cast macro. Remove usages of DO_UPCAST()
and direct -> style upcasting.

Signed-off-by: Peter Crosthwaite <>
[AF: Renamed parent field, renamed from PC_NET to PCNET]
Signed-off-by: Andreas Färber <>

90c66f58 07/22/2013 06:13 pm Anthony Liguori

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

  1. By Markus Armbruster
  2. Via Stefan Hajnoczi
    • stefanha/tracing:
      trace-events: Fix up source file comments
      trace-events: Drop unused events
      milkymist-minimac2: Fix minimac2_read/_write tracepoints...
e9acb8ce 07/18/2013 04:12 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pci,net,pc enhancements

This includes some fixes and enhancements that accumulated in my tree:
pci fixes by dkoch, virtio-net enhancements by akong and mst,
and a fix for xen pc by mst.

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

0ece9671 07/18/2013 06:44 am Markus Armbruster

milkymist-minimac2: Fix minimac2_read/_write tracepoints

Broken in milkymist-minimac.c from the start (commit 0742454),
faithfully moved to milkymist-minimac2.c (commit 57aa265).

Signed-off-by: Markus Armbruster <>
Signed-off-by: Stefan Hajnoczi <>

b1be4280 07/15/2013 09:23 pm Amos Kong

net: add support of mac-programming over macvtap in QEMU side

Currently macvtap based macvlan device is working in promiscuous
mode, we want to implement mac-programming over macvtap through
Libvirt for better performance.

Design:
QEMU notifies Libvirt when rx-filter config is changed in guest,...

dc11549e 07/08/2013 04:00 pm Anthony Liguori

Merge remote-tracking branch 'mst/tags/for_anthony' into staging

pci,misc enhancements

This includes some pci enhancements:

Better support for systems with multiple PCI root buses
FW cfg interface for more robust pci programming in BIOS
Minor fixes/cleanups for fw cfg and cross-version migration -...

eedfac6f 07/04/2013 06:42 pm Paolo Bonzini

hw/n*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

dcb117bf 07/04/2013 06:42 pm Paolo Bonzini

ne2000: pass device to ne2000_setup_io, use it as owner

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

a0ae17a6 07/04/2013 10:40 am Andrew Jones

e1000: cleanup process_tx_desc

Coverity complains about two overruns in process_tx_desc(). The
complaints are false positives, but we might as well eliminate
them. The problem is that "hdr" is defined as an unsigned int,
but then used to offset an array of size 65536, and another of...

371a775d 06/15/2013 01:53 pm Blue Swirl

Merge branch 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu

  • 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu:
    qdev: Drop FROM_QBUS() macro
    isa: QOM'ify ISADevice
    isa: QOM'ify ISABus
    i8259: Convert PICCommonState to use QOM realizefn...
97f31cbc 06/10/2013 07:37 pm Anthony Liguori

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

  1. By Jason Wang (1) and Stefan Hajnoczi (1)
  2. Via Stefan Hajnoczi
    • stefanha/net:
      tap: fix NULL dereference when passing invalid parameters to tap
      vmxnet3: fix NICState cleanup

Message-id: ...

4e298e46 06/10/2013 02:00 pm Stefan Weil

xilinx_axienet: Fix bit mask code

Obviously the code wanted to mask the lower bits but failed to do so
because of a missing "<".

cppcheck detected a conditional expression which was always true (1 < 7).

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

db895a1e 06/07/2013 01:14 pm Andreas Färber

isa: Use realizefn for ISADevice

Drop ISADeviceClass::init and the resulting no-op initfn and let
children implement their own realizefn. Adapt error handling.
Split off an instance_init where sensible.

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

3ffee3cd 06/05/2013 12:18 pm Stefan Hajnoczi

vmxnet3: fix NICState cleanup

Use qemu_del_nic() instead of qemu_del_net_client() to correctly free
the entire NICState.

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

00b7ade8 05/24/2013 05:34 pm Stefan Hajnoczi

rtl8139: flush queued packets when RxBufPtr is written

Net queues support efficient "receive disable". For example, tap's file
descriptor will not be polled while its peer has receive disabled. This
saves CPU cycles for needlessly copying and then dropping packets which...

644c9858 05/22/2013 03:40 pm Dmitry Fleytman

virtio-net: dynamic network offloads configuration

Virtio-net driver currently negotiates network offloads
on startup via features mechanism and have no ability to
disable and re-enable offloads later.
This patch introduced a new control command that allows...

8a253ec2 05/15/2013 04:48 pm KONRAD Frederic

virtio-net: add virtio_net_set_netclient_name.

This adds virtio_net_set_netclient_name, which is used to set the
name and type shown in "info network" command.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

d7108d90 05/07/2013 02:43 pm Jason Wang

virtio-net: properly check the vhost status during status set

Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost
also when the peer's link is down. But the check was not done properly, the
vhost were only started when:

1) peer's link is not down...

e0ff466c 05/06/2013 06:22 pm Alexey Kardashevskiy

spapr_llan: fix device reenabling

Normally, the "tap" device is polled by QEMU if a guest NIC can
receive packets. If a guest NIC is stopped during transfer (rmmod or
ifdown), it may still have packets in a queue which have to be send
to the guest before QEMU enables polling of a "tap" interface via...

e9016ee2 05/01/2013 12:04 am Jason Wang

virtio-net: count VIRTIO_NET_F_MAC when calculating config_len

Commit 14f9b664 (hw/virtio-net.c: set config size using host features) tries to
calculate config size based on the host features. But it forgets the
VIRTIO_NET_F_MAC were always set for qemu later. This will lead a zero config...

fe6f5deb 04/29/2013 04:27 pm Andreas Färber

ne2000-isa: QOM'ify

Introduce type constant and cast macro to obsolete DO_UPCAST().

Prepares for ISA realizefn.

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

ec57db16 04/29/2013 04:27 pm Jason Wang

virtio-net: unbreak the minix guest

Multiqueue patchset conditionally add control vq only when guest negotiate the
feature. Though the spec is not clear on this but it breaks the minix guest
since it will identify the ctrl vq even if it does not support it. Though this...

fd506b4f 04/27/2013 12:02 am David Gibson

pseries: Convert VIO code to QOM style type safe(ish) casts

Curerntly the pseries VIO device code contains quite a few explicit
uses of DO_UPCAST and plain C casts. This is (obviously) type unsafe,
and not the conventional way of doing things in the QOM model. This...

6a1a8cc7 04/24/2013 07:50 pm KONRAD Frederic

virtio: cleanup: init and exit function.

This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

181103cd 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove the function pointer.

This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

1c819449 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove virtiobindings.

This remove virtio-bindings, and use class instead.

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

21e5181f 04/20/2013 08:54 pm Peter Maydell

qdev: Drop taddr properties

Drop all the infrastructure for taddr properties (ie ones which
are 'hwaddr' sized). These are now unused, and any further desired
use would be rather questionable since device properties shouldn't
generally depend on a type that is conceptually variable based on...

e1fe50dc 04/19/2013 12:36 pm Stefan Weil

Remove unneeded type casts

cpu_physical_memory_read, cpu_physical_memory_write take any pointer
as 2nd argument without needing a type cast.

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

17a0ca55 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: cleanup: use QOM cast.

As the virtio-net-pci and virtio-net-s390 are switched to the new API,
we can use QOM casts.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

1773d9ee 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: cleanup: init and exit function.

This remove old init and exit function as they are no longer needed.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

17ec5a86 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: add the virtio-net device.

Create virtio-net-device which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

35e60bfd 04/16/2013 11:04 am Peter Crosthwaite

stream: Add flow control API

Add basic flow control to stream. A stream slave may return short, indicating
that it is not capable of accepting any more data at the present time. Polling
or a callback can be used via the can_push() function to determine when the...

3630ae95 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet/dma: Implement rx path flow control

Implement flow control for the RX data path from xilinx_axienet->xilinx_axidma.
On short return from axidma, then ethernet sets up the notify callback to resume
transfer from where it left off.

This also allows the ethernet to track whether there is an in progress transaction...

42bb9c91 04/16/2013 11:04 am Peter Crosthwaite

stream: Remove app argument hack

The uint32_t *app argument doesn't exist in real hardware. It was a hack in
xilinx_axidma/enet to fake the (secondary) control stream connection. Removed
the argument and added the second stream to axienet/dma.

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

545129e5 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet: typedef XilinxAXIEnet struct

Typedef xilinx_axienets object state struct to shorten the repeated usages of
struct XilinxAXIEnet.

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

f0e7a81c 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet: Defined and use type cast macro

Standard QOM cast macro. Replaces usages of FROM_SYSBUS

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

9ee0ceb7 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet: Register reset properly

Register the reset function and the Device::reset function rather than
explicitly call it from the sysbus::init.

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

b2d9dfe9 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet: converted init->realize

The prescribed transition from SysBusDevice::init to Device::realize. Im going
with Andreas suggestion to move the sysbus foo to Object::init for early IRQ
visibility.

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

55b3e0c2 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axienet: Create Proxy object for stream

Create a separate child object to proxy the stream slave connection. This is
setup for future work where a second stream slave connection is needed. The
new child object is created at qdev init time and is linked back to the parent...

0bc3cd62 04/15/2013 07:19 pm Paolo Bonzini

include: avoid useless includes of exec/ headers

Headers in include/exec/ are for the deepest innards of QEMU,
they should almost never be included directly.

Signed-off-by: Paolo Bonzini <>

dccfcd0e 04/15/2013 07:19 pm Paolo Bonzini

sysemu: avoid proliferation of include/ subdirectories

Signed-off-by: Paolo Bonzini <>

bd2be150 04/15/2013 04:16 pm Peter Maydell

arm: fix location of some include files

The recent rearrangement of include files had some minor errors:
devices.h is not ARM specific and should not be in arm/
arm.h should be in arm/

Move these two headers to correct this.

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

47b5264e 04/08/2013 09:12 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/hw-dirs' into staging

  1. By Paolo Bonzini
  2. Via Paolo Bonzini
    • bonzini/hw-dirs: (35 commits)
      hw: move private headers to hw/ subdirectories.
      MAINTAINERS: update for source code movement
      hw: move last file to hw/arm/...
47b43a1f 04/08/2013 07:13 pm Paolo Bonzini

hw: move private headers to hw/ subdirectories.

Many headers are used only in a single directory. These can be
kept in hw/.

Signed-off-by: Paolo Bonzini <>

d7e35d4a 04/08/2013 07:13 pm Paolo Bonzini

hw: move NICs to hw/net/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>