Statistics
| Branch: | Revision:

root / hw @ 562f5f5d

# Date Author Comment
44ac582d 03/18/2013 08:40 pm Michael Walle

milkymist-uart: fix receive buffering

Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <>

562f5f5d 03/18/2013 08:40 pm Michael Walle

lm32_uart: fix receive buffering

Inform qemu-char when more input data can be received.

Signed-off-by: Michael Walle <>

71874c17 03/18/2013 11:21 am Gerd Hoffmann

spice: stop using DisplayState

Rework DisplayStateListener callbacks to not use the DisplayState
any more.

Signed-off-by: Gerd Hoffmann <>

bc2ed970 03/18/2013 11:21 am Gerd Hoffmann

console: zap displaystate from dcl callbacks

Now that nobody depends on DisplayState in DisplayChangeListener
callbacks any more we can remove the parameter from all callbacks.

Signed-off-by: Gerd Hoffmann <>

c78f7137 03/18/2013 11:21 am Gerd Hoffmann

console: stop using DisplayState in gfx hardware emulation

Use QemuConsole instead. Updates interfaces in console.[ch] and adapts
gfx hardware emulation code.

Signed-off-by: Gerd Hoffmann <>

7c20b4a3 03/18/2013 11:21 am Gerd Hoffmann

console: fix displaychangelisteners interface

Split callbacks into separate Ops struct. Pass DisplayChangeListener
pointer as first argument to all callbacks. Uninline a bunch of
display functions and move them from console.h to console.c

Signed-off-by: Gerd Hoffmann <>

c6c06853 03/18/2013 11:21 am Gerd Hoffmann

qxl: zap qxl0 global

DisplayChangeListener is passed now to all DisplayChangeListenerOps
callbacks, so we can use that to access the qxl state and kill the
qxl0 global variable.

Signed-off-by: Gerd Hoffmann <>

c099e7aa 03/18/2013 11:21 am Gerd Hoffmann

qxl: better vga init in enter_vga_mode

Ask the vga core to update the display. Will trigger dpy_gfx_resize
if needed. More complete than just calling dpy_gfx_resize.

Signed-off-by: Gerd Hoffmann <>

da229ef3 03/18/2013 11:21 am Gerd Hoffmann

console: rework DisplaySurface handling [vga emu side]

Decouple DisplaySurface allocation & deallocation from DisplayState.
Replace dpy_gfx_resize + dpy_gfx_setdata with a dpy_gfx_replace_surface
function.

This handles the graphic hardware emulation.

Signed-off-by: Gerd Hoffmann <>

c12aeb86 03/18/2013 11:21 am Gerd Hoffmann

console: rework DisplaySurface handling [dcl/ui side]

Replace the dpy_gfx_resize and dpy_gfx_setdata DisplayChangeListener
callbacks with a dpy_gfx_switch callback which notifies the ui code
when the framebuffer backing storage changes.

Signed-off-by: Gerd Hoffmann <>

e0891bd8 03/15/2013 06:41 pm Nathan Rossi

xilinx_spips: Fix bus setup conditional check

The R_LQPSI_CFG register has the LQSPI_CFG_SEP_BUS and LQSPI_CFG_TWO_MEM bits.

Signed-off-by: Nathan Rossi <>
Signed-off-by: Peter Crosthwaite <>
Message-id: ...

08a9635b 03/15/2013 06:41 pm Nathan Rossi

xilinx_spips: Add missing dual-bus snoop commands

Added additional commands to the switch to check for when snooping commands in
dual bus mode setups. Cleaned up code to use an enum.

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

f8b9fe24 03/15/2013 06:41 pm Peter Crosthwaite

xilinx_spips: QOM styling fixes

Few fixes for the latest QOM styling guides.

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

9c7d4893 03/15/2013 06:41 pm Peter Maydell

hw/vexpress: Set reset values for daughterboard oscillators

Set the reset values for the VExpress daughterboard oscillators
via the new sysctl properties.

Signed-off-by: Peter Maydell <>

06a1cea5 03/15/2013 06:41 pm Peter Crosthwaite

pl330: Initial version

Device model for Primecell PL330 DMA controller.

Signed-off-by: Peter Crosthwaite <>
Signed-off-by: Kirill Batuzov <>
Tested-by: Igor Mitsyanko <>
Reviewed-by: Igor Mitsyanko <>...

7451afb6 03/15/2013 06:41 pm Peter Crosthwaite

xilinx_zynq: added pl330 to machine model

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

2790cd91 03/15/2013 06:41 pm Peter Crosthwaite

xilinx_spips: Set unused IRQs to NULL

Unused CS lines should init to 0 to avoid segfaulting when accessing an
unattached QSPI controller.

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

0be6bfac 03/15/2013 06:41 pm Peter Maydell

qdev: Implement (variable length) array properties

Add support for declaring array properties for qdev devices.
These work by defining an initial static property 'len-arrayname'
which the user of the device should set to the desired size
of the array. When this property is set, memory is allocated...

8bd4824a 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Implement SYS_CFG_VOLT

Implement the SYS_CFG_VOLT registers which return the voltage
of various supplies on motherboard and daughterboard. Since
QEMU implements a perfectly stable power supply these registers
always return a constant value. The number and value of the...

31410948 03/15/2013 06:41 pm Peter Maydell

hw/vexpress: Pass voltage sensor properties to sysctl device

Pass voltage sensor properties to the sysctl device. Since
these are daughterboard specific, we specify them via the
VEDBoardInfo structure.

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

1f81f94b 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Implement SYS_CFG_OSC function

Implement the SYS_CFG_OSC function. Since the idea of
programmable clock rates doesn't make much sense for QEMU,
we simply allow the clock rate to be read back as written.
The number and value of the daughterboard oscillators varies...

cdef10bb 03/15/2013 06:41 pm Peter Maydell

hw/vexpress: Pass proc_id via VEDBoardInfo

Pass the daughterboard-specific proc_id property to the code that
creates the sysctl device via the VEDBoardInfo struct, rather than
by having the daughterboard init function write to a uint32_t*
argument. This is a cleaner way to pass the info around, and...

71538323 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Handle SYS_CFGCTRL in a more structured way

The SYS_CFGCTRL register consists of separate fields
for DCC, function, site, position and device, as well
as a read/write bit. Refactor the code handling SYS_CFGCTRL
writes to make it easier to add support for functions...

8ff05c98 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Implement SYS_CFG_MUXFPGA writes as a no-op

SYS_CFG_MUXFPGA allows the guest to select whether the
video output should come from the motherboard's LCD
controller or the daughterboard's one. Since QEMU doesn't
currently support selecting the video output like this,...

291155cb 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Implement SYS_CFG_DVIMODE as a no-op

SYS_CFG_DVIMODE allows the guest to select whether the
output DVI signal is VGA, SVGA, XGA, SGA or UXGA. Since
this makes no difference to QEMU, implement writes as a
no-op so Linux doesn't complain.

Signed-off-by: Peter Maydell <>

1f56f50a 03/15/2013 06:41 pm Peter Maydell

hw/arm_sysctl: Convert from qdev init to instance_init

Convert this device from old-style qdev init to an instance_init
function. We don't need a realize function yet, though.

Signed-off-by: Peter Maydell <>

dc0b0616 03/15/2013 05:47 pm Anthony Liguori

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

  1. By Stefan Hajnoczi (14) and others
  2. Via Stefan Hajnoczi
    • stefanha/block: (28 commits)
      blockdev: Fix up copyright and permission notice
      qemu-iotests: use -nographic in test case 007
      qemu-iotests: add tests for rebasing zero clusters...
d4d76824 03/15/2013 05:47 pm Anthony Liguori

Merge remote-tracking branch 'cohuck/virtio-ccw-upstr' into staging

  1. By Christian Borntraeger (1) and Cornelia Huck (1)
  2. Via Cornelia Huck
    • cohuck/virtio-ccw-upstr:
      virtio-ccw: Wire up virtio-rng.
      virtio-ccw: remove qdev_unparent in unplug routing
485e3ce8 03/15/2013 05:07 pm Paolo Bonzini

dataplane: fix hang introduced by AioContext transition

The bug is that the EventNotifiers do have a NULL io_flush callback.
Because none of the callbacks on the dataplane AioContext have such a
callback, aio_poll will simply do nothing. Fixed by adding the callbacks:...

de9c0cec 03/15/2013 05:07 pm Kevin Wolf

block: Add options QDict to bdrv_open() prototype

It doesn't do anything yet except storing the options QDict in the
BlockDriverState.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Reviewed-by: Stefan Hajnoczi <>...

b8a205f2 03/12/2013 02:39 pm Christian Borntraeger

virtio-ccw: remove qdev_unparent in unplug routing

This patch fixes unplugging a virtio-ccw device. We no
longer need to do that in virtio-ccw since common code does now
proper handling.

Signed-off-by: Christian Borntraeger <>
Signed-off-by: Jens Freimann <>...

2362ecc5 03/12/2013 02:39 pm Cornelia Huck

virtio-ccw: Wire up virtio-rng.

Make virtio-rng devices available for s390-ccw-virtio machines.

Signed-off-by: Cornelia Huck <>

259186a7 03/12/2013 11:35 am Andreas Färber

cpu: Move halted and interrupt_request fields to CPUState

Both fields are used in VMState, thus need to be moved together.
Explicitly zero them on reset since they were located before
breakpoints.

Pass PowerPCCPU to kvmppc_handle_halt().

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

d8ed887b 03/12/2013 11:35 am Andreas Färber

exec: Pass CPUState to cpu_reset_interrupt()

Move it to qom/cpu.c to avoid build failures depending on include order
of cpu-qom.h and exec/cpu-all.h.

Change opaques of various ..._irq_handler() functions to the
appropriate CPU type to facilitate using cpu_reset_interrupt()....

c3affe56 03/12/2013 11:35 am Andreas Färber

cpu: Pass CPUState to cpu_interrupt()

Move it to qom/cpu.h to avoid issues with include order.

Change pc_acpi_smi_interrupt() opaque to X86CPU.

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

b350ab75 03/12/2013 11:35 am Andreas Färber

target-sh4: Move PVR/PRR/CVR into SuperHCPUClass

They are never changed once initialized, and moving them to the class
will allow to inspect them before instantiating.

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

bba18e23 03/11/2013 02:39 pm Paolo Bonzini

arm: fix compilation with CONFIG_FDT

A conflict was resolved the wrong way when merging commit 320ba5f (build:
always link device_tree.o into emulators if libfdt available, 2013-02-05).
This causes a build failure for the arm-softmmu target due to multiply...

fa388916 03/11/2013 03:39 am Anthony Liguori

Merge remote-tracking branch 'origin/master' into staging

  • origin/master: (75 commits)
    tcg: Don't make exitreq flag a local temporary
    Makefile: Add subdir dependency on config-devices-all.mak
    make_device_config.sh: Emit dependency file to directory where included...
6e72a00f 03/11/2013 02:56 am Anthony Liguori

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

  • bonzini/hw-dirs:
    sh: move files referencing CPU to hw/sh4/
    ppc: move more files to hw/ppc
    ppc: move files referencing CPU to hw/ppc/
    m68k: move files referencing CPU to hw/m68k/
    i386: move files referencing CPU to hw/i386/...
6a245c66 03/11/2013 02:33 am Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  1. By Lei Li (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/trivial-patches:
      Fix the wrong description in qemu manual
      pci_host: Drop write-only address_space field
      rng-random: Use qemu_open / qemu_close...
6d06368d 03/11/2013 02:30 am Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  1. By Paolo Bonzini (4) and Peter Lieven (2)
  2. Via Paolo Bonzini
    • bonzini/scsi-next:
      scsi-disk: handle io_canceled uniformly and correctly
      scsi-disk: do not complete canceled UNMAP requests...
7830cf78 03/11/2013 02:26 am Blue Swirl

baum: fix build

08744c98115cfa144ed3493556024e400b2e2573 removed hw/baum.h
but did not adjust hw/baum.c, breaking build. Fix.

Signed-off-by: Blue Swirl <>
Message-id: ...

eb839909 03/09/2013 01:02 pm Blue Swirl

Merge branch 's390-for-upstream' of git://github.com/agraf/qemu

  • 's390-for-upstream' of git://github.com/agraf/qemu:
    s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del
    s390/css: Fix subchannel detection
    Allow virtio-net features for legacy s390 virtio bus...
62e1aeae 03/09/2013 01:02 pm Blue Swirl

Merge branch 'ppc-for-upstream' of git://github.com/agraf/qemu

  • 'ppc-for-upstream' of git://github.com/agraf/qemu: (66 commits)
    pseries: Add compatible property to root of device tree
    target-ppc: Move CPU aliases out of translate_init.c
    target-ppc: Report CPU aliases for QMP...
35569cea 03/08/2013 10:17 pm Christian Borntraeger

Allow virtio-net features for legacy s390 virtio bus

Enable all virtio-net features for the legacy s390 virtio bus. This also fixes
kernel BUG at /usr/src/packages/BUILD/kernel-default-3.0.58/linux-3.0/drivers/s390/kvm/kvm_virtio.c:121!

Signed-off-by: Christian Borntraeger <>...

38dd7cc7 03/08/2013 10:17 pm Christian Borntraeger

s390/css: Fix subchannel detection

We have to consider the m bit to find the real channel subsystem when
determining the last subchannel.

If we fail to take this into account, removal of a subchannel in
the middle of a big list of devices will stop device detection after...

8a7df84f 03/08/2013 10:17 pm Christian Borntraeger

s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del

blockdev_mark_auto_del is already called in virtio-blk-exit.
Remove the redundant call.

Signed-off-by: Christian Borntraeger <>
Signed-off-by: Jens Freimann <>...

e13da404 03/08/2013 10:04 pm Amadeusz Sławiński

PPC: Fix dma interrupt

In openbios (drivers/ide.c) they are set to

0000000d 00000000 00000002 00000000
0000000e 00000000 00000003 00000000
0000000f 00000000 00000004 00000000
(The last one seems to be not implemented in qemu)

It follows convention of how they are set on real machines,...

987422bc 03/08/2013 10:04 pm Amadeusz Sławiński

PPC: xnu kernel expects FLUSH to be cleared on STOP

otherwise it gets stuck in a loop
so clear it when unsetting run when flush is set

void
IODBDMAStop( volatile IODBDMAChannelRegisters *registers) {

IOSetDBDMAChannelControl( registers,
IOClearDBDMAChannelControlBits( kdbdmaRun )...
d63919c9 03/08/2013 10:04 pm David Gibson

pseries: Add compatible property to root of device tree

Currently, for the pseries machine the device tree supplied by qemu to SLOF
and from there to the guest does not include a 'compatible property' at the
root level. Usually that works fine, since in this case the compatible...

6bbd5dde 03/08/2013 10:04 pm Erlon Cruz

pseries: Implement h_read hcall

This h_call is useful for DLPAR in future amongst other things. Given an index
it fetches the corresponding PTE stored in the htab.

Signed-off-by: Erlon Cruz <>
Acked-by: David Gibson <>...

d60fa42e 03/08/2013 10:04 pm Fabien Chouteau

Save memory allocation in the elf loader

The current elf loader uses too much memory. For example, I have a
executable with a bss section of 400 MB and I set the ram size to 512
MB. Qemu uses about 780MB of RAM (which is fine), but there's a peak at
1.6 GB during initialization (this is not fine)....

156dfade 03/08/2013 10:04 pm David Gibson

pseries: Add cleanup hook for PAPR virtual LAN device

Currently the spapr-vlan device does not supply a cleanup call for its
NetClientInfo structure. With current qemu versions, that leads to a SEGV
on exit, when net_cleanup() attempts to call the cleanup handlers on all...

fcfb4d6a 03/08/2013 09:57 pm Anthony Liguori

serial: add flow control to transmit

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

7df4d457 03/08/2013 09:57 pm Amit Shah

virtio: console: add flow control

The virtio-serial-bus already has the logic to make flow control work
properly. Hook into the char layer's new ability to signal a backend is
writable again.

Signed-off-by: Amit Shah <>
Message-id: ...

d6258c93 03/08/2013 09:57 pm Amit Shah

virtio-serial: make flow control explicit in virtio-console

virtio-console.c used to return a value less than the number of bytes
asked to be written out to a chardev backend in case the backend is not
writable. virtio-serial-bus.c then implicitly enabled flow control for...

08744c98 03/08/2013 09:57 pm Anthony Liguori

qemu-char: move baum registration to baum.c

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

5ab8211b 03/08/2013 09:57 pm Anthony Liguori

qemu-char: move msmouse registeration to msmouse.c

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

d37e12a0 03/08/2013 02:15 pm Peter Maydell

pci_host: Drop write-only address_space field

The address_space field of PCIHostState was only ever written, never used.
Drop it completely.

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

58427a0f 03/08/2013 11:18 am Paolo Bonzini

lm32: remove unused function

The milkymist-minimac device in fact does not exist at all.

Signed-off-by: Paolo Bonzini <>
Acked-by: Michael Walle <>
Signed-off-by: Stefan Hajnoczi <>

0bc472a9 03/07/2013 10:27 am Kuo-Jung Su

hw/nand.c: correct the sense of the BUSY/READY status bit

The BIT6 of Status Register(SR):

SR6 behaves the same as R/B# pin
SR6 = 0 indicates the device is busy;
SR6 = 1 means the device is ready

Some NAND flash controller (i.e. ftnandc021) relies on the SR6...

6f6710aa 03/05/2013 06:51 pm Paolo Bonzini

scsi: do not call scsi_read_data/scsi_write_data for a canceled request

Cc:
Signed-off-by: Paolo Bonzini <>

d0242ead 03/05/2013 06:51 pm Paolo Bonzini

scsi-disk: do not complete canceled UNMAP requests

Canceled requests should never be completed, and doing that could cause
accesses to a NULL hba_private field.

Cc:
Reported-by: Stefan Priebe <>
Tested-by: Stefan Priebe <>...

0c92e0e6 03/05/2013 06:51 pm Paolo Bonzini

scsi-disk: handle io_canceled uniformly and correctly

Always check it immediately after calling bdrv_acct_done, and
always do a "goto done" in case the "done" label has to free
some memory---as is the case for scsi_unmap_complete in the
previous patch.

This patch could fix problems that happen when a request is...

ed466761 03/05/2013 02:45 am Peter Maydell

hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC

Implement support for using the KVM in-kernel GIC for ARM.

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

53111180 03/05/2013 02:45 am Peter Maydell

hw/arm_gic: Convert ARM GIC classes to use init/realize

Convert the ARM GIC classes to use init/realize rather than
SysBusDevice::init. (We have to do them all in one patch to
avoid unconverted subclasses calling a nonexistent SysBusDevice
init function in the base class and crashing.)...

9ecb9926 03/05/2013 02:45 am Peter Maydell

hw/arm_gic: Add presave/postload hooks

Add presave/postload hooks to the ARM GIC common base class.
These will be used by the KVM in-kernel GIC subclass to sync
state between kernel and userspace when migrating.

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

494b00c7 03/05/2013 02:45 am Christoffer Dall

ARM: KVM: Add support for KVM on ARM architecture

Add basic support for KVM on ARM architecture.

Signed-off-by: Christoffer Dall <>
[PMM: Minor tweaks and code cleanup, switch to ONE_REG]
Signed-off-by: Peter Maydell <>...

71df81af 03/04/2013 04:22 pm Anthony Liguori

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

  1. By MORITA Kazutaka (5) and others
  2. Via Stefan Hajnoczi
    • stefanha/block:
      block: for HMP commit() operations on 'all', skip non-COW drives
      sheepdog: add support for connecting to unix domain socket...
a6900601 03/04/2013 04:22 pm Anthony Liguori

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

virtio,vhost,pci,e1000

Mostly bugfixes, but also some ICH work by Laszlo.

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

  1. gpg: Signature made Thu 28 Feb 2013 07:13:56 AM CST using RSA key ID D28D5469...
bf5363ef 03/04/2013 04:20 pm Anthony Liguori

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

  1. By Jason Wang (2) and others
  2. Via Stefan Hajnoczi
    • stefanha/net:
      qmp: netdev_add is like -netdev, not -net, fix documentation
      doc: document -netdev hubport
      net: reduce the unnecessary memory allocation of multiqueue...
2c20e711 03/04/2013 10:54 am Paolo Bonzini

dataplane: remove EventPoll in favor of AioContext

During the review of the dataplane code, the EventPoll API morphed itself
(not concidentially) into something very very similar to an AioContext.
Thus, it is trivial to convert virtio-blk-dataplane to use AioContext,...

02d583c7 03/04/2013 10:54 am Mark Cave-Ayland

ide/macio: Fix macio DMA initialisation.

Commit 07a7484e5d713f1eb7c1c37b18a8ab0d56d88875 accidentally introduced a bug
in the initialisation of the second macio DMA device which could cause some
DMA operations to segfault QEMU.

CC: Andreas Färber <>...

69b302b2 03/04/2013 10:54 am Christian Borntraeger

virtio-blk: fix unplug + virsh reboot

virtio-blk registers a vmstate change handler. Unfortunately this
handler is not unregistered on unplug, leading to some random
crashes if the system is restarted, e.g. via virsh reboot.
Lets unregister the vmstate change handler if the device is removed....

7a2771d1 03/01/2013 04:01 pm Paolo Bonzini

sh: move files referencing CPU to hw/sh4/

Signed-off-by: Paolo Bonzini <>

320ba5fe 03/01/2013 04:01 pm Paolo Bonzini

build: always link device_tree.o into emulators if libfdt available

Signed-off-by: Paolo Bonzini <>

e4c8b28c 03/01/2013 04:01 pm Paolo Bonzini

ppc: express FDT dependency of pSeries and e500 boards via default-configs/

Signed-off-by: Paolo Bonzini <>

53018216 03/01/2013 04:01 pm Paolo Bonzini

hw: move boards and other isolated files to hw/ARCH

Signed-off-by: Paolo Bonzini <>

dd285b06 03/01/2013 04:01 pm Paolo Bonzini

arm: move files referencing CPU to hw/arm/

Signed-off-by: Paolo Bonzini <>

8786b05e 03/01/2013 04:01 pm Paolo Bonzini

i386: move files referencing CPU to hw/i386/

Signed-off-by: Paolo Bonzini <>

9743b581 03/01/2013 04:01 pm Paolo Bonzini

m68k: move files referencing CPU to hw/m68k/

Signed-off-by: Paolo Bonzini <>

c68c4a56 03/01/2013 04:01 pm Paolo Bonzini

ppc: move files referencing CPU to hw/ppc/

Signed-off-by: Paolo Bonzini <>

9f64bd8a 03/01/2013 04:01 pm Paolo Bonzini

ppc: move more files to hw/ppc

These sPAPR files do not implement devices, move them over.
Signed-off-by: Paolo Bonzini <>

83c9f4ca 03/01/2013 04:01 pm Paolo Bonzini

hw: include hw header files with full paths

Done with this script:

cd hw
for i in `find . -name '*.h' | sed 's/^..//'`; do
echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
done | sed -i -f - `find . -type f`

This is so that paths remain valid as files are moved....

7e6b14df 03/01/2013 02:57 pm Paolo Bonzini

virtio-9p: use CONFIG_VIRTFS, not CONFIG_LINUX

Signed-off-by: Paolo Bonzini <>

60653b28 03/01/2013 02:57 pm Paolo Bonzini

virtio-9p: remove PCI dependencies from hw/9pfs/

Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency
with the corresponding .c file.

Signed-off-by: Paolo Bonzini <>

eac7ec7f 03/01/2013 02:57 pm Paolo Bonzini

vt82c686: vt82c686 is not a PCI host bridge

Signed-off-by: Paolo Bonzini <>

7948b4b0 03/01/2013 02:57 pm Paolo Bonzini

ppc: do not use ../ in include files

This simplifies the scripted execution of the next patch.

Signed-off-by: Paolo Bonzini <>

1559e0d4 03/01/2013 02:57 pm Paolo Bonzini

hw: move device-hotplug.o to toplevel, compile it once

The situation with device-hotplug.c is similar to qdev-monitor.c.
Add a stub for pci_drive_hot_add, so that it can be compiled once,
and move it out of hw/.

Signed-off-by: Paolo Bonzini <>

b4a42f81 03/01/2013 02:54 pm Paolo Bonzini

hw: move qdev-monitor.o to toplevel directory

qdev-monitor.c is the only "core qdev" file that is not used in
user-mode emulation, and it does not define anything that is used
by hardware models. Remove it from the hw/ directory and
remove hw/qdev-monitor.h from hw/qdev.h too; this requires...

fd7f0d66 03/01/2013 02:53 pm Paolo Bonzini

hw: move fifo.[ch] to libqemuutil

fifo.c is generic code that can be easily unit tested. So it
belongs in libqemuutil.

Signed-off-by: Paolo Bonzini <>

159b6e9f 03/01/2013 02:18 pm Paolo Bonzini

hw: move char backends to backends/

Braille and msmouse support is in hw/, but it is not hardware.
Move it to the backends/ directory.

Signed-off-by: Paolo Bonzini <>

a7fd6915 02/28/2013 08:49 pm Peter Crosthwaite

m25p80.c: Use QOM classes for part differentiation

Currently, M25P80 uses an object property to differentiate between flash parts.
Changed this over to use QOM sub-classes - the actual names of the different parts
are used to create a set of dynamic classes which passes the part info as class...

e3f9d31c 02/28/2013 08:49 pm Peter Crosthwaite

cadence_gem: Flush queued packets

The device needs to check for queued RX packets when the RX path is re-enabled.

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

1c5d0790 02/28/2013 08:49 pm Peter Crosthwaite

cadence_gem: factor out can_rx() logic replication

The gem_receive() function replicates the logic for whether or not the device
can rx. Just call the actual gem_can_receive() function in place.

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

ae80a354 02/28/2013 08:49 pm Peter Crosthwaite

cadence_gem: fix interrupt events

Bits in the ISR were continually mirroring their corresponding TX/RX SR bits.
This is incorrect. The ISR bits are only ever set at the time their
corresponding event occurs.

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

5025388b 02/28/2013 08:49 pm Peter Crosthwaite

cadence_gem: Don't reset rx desc pointer on rx_en

This doesn't happen in the real hardware. The Zynq TRM explicitly states that
this bit has no effect on the rx descriptor pointer ("The receive queue
pointer register is unaffected").

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

288f1e3f 02/28/2013 08:49 pm Peter Crosthwaite

cadence_gem: Add debug msgs for rx desc movement

Add some helpful messages that show the rx descriptor pointer moving as packets
are rxed.

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

b972b4e2 02/28/2013 08:49 pm Peter Crosthwaite

xilinx_zynq: Added SD controllers

The Xilinx Zynq device has two SDHCI controllers. Added to the machine model.

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

d7dfca08 02/28/2013 08:23 pm Igor Mitsyanko

hw/sdhci: introduce standard SD host controller

Device model for standard SD Host Controller Interface (SDHCI) compliant with
version 2.00 of SD association specification.

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