Statistics
| Branch: | Revision:

root @ a540f158

# Date Author Comment
79f3b12f 04/18/2013 02:50 pm Peter Crosthwaite

configure: Put cross compile flags in EXTRA_CFLAGS

The cross compile CFLAGS are needed to properly build pixman (and any other
submodules). Only the EXTRA_CFLAGS set is passed to submodules not QEMU_CFLAGS,
so put the cross compile flags in EXTRA_CFLAGS instead....

98f63605 04/18/2013 02:50 pm Peter Crosthwaite

dtc: add submodule

Add dtc submodule as a fallback for old distros.
Picking version 1.3.0. as this is the most recently tagged stable version.

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

a540f158 04/18/2013 02:50 pm Peter Crosthwaite

configure/Make: Build libfdt from submodule DTC

Configure to use the DTC submodule to build libfdt when no system libfdt
is found. Prompt to install the DTC submodule if --enable-fdt is set but
no DTC can be found.

DTC has no out-of-tree build capability, so the configure will symlink...

74b4fe3d 04/17/2013 06:28 pm KONRAD Frederic

virtio-net-s390: switch to the new API.

Here the virtio-net-s390 is modified for the new API. The device
virtio-net-s390 extends virtio-s390-device as before. It creates and
connects a virtio-net-device during the init. The properties are not modified.

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

89334c8b 04/17/2013 06:28 pm KONRAD Frederic

virtio-net-ccw: switch to the new API.

Here the virtio-net-ccw is modified for the new API. The device
virtio-net-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-net-device during the init. The properties are not modified.

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

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

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

virtio-net-pci: switch to the new API.

Here the virtio-net-pci is modified for the new API. The device
virtio-net-pci extends virtio-pci. It creates and connects a
virtio-net-device during the init. The properties are not changed.

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

6a87acf7 04/17/2013 06:28 pm KONRAD Frederic

virtio: add two functions to VirtioDeviceClass.

Recent changes need two functions to VirtioDevice. This just add them
into VirtioDeviceClass.

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

e6f53fd5 04/17/2013 06:28 pm Markus Armbruster

Fix warnings suppressors to honor --disable-werror

Replace

#pragma GCC diagnostic ignored FOO
[Troublesome code...]
#pragma GCC diagnostic error FOO

by

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored FOO
[Troublesome code...]...
a875711a 04/17/2013 06:27 pm Anthony Liguori

i440fx-test: add test for PAM functionality

This tests PAM settings for the i440fx. This test does a lot of
byte MMIO which is fairly slow with qtest today. But the test
does complete in under 2 seconds.

We don't fully emulate PAM largely because of limitations with...

bf2a38d4 04/17/2013 06:27 pm Anthony Liguori

fw_cfg: add qtest test case

This validates some basic characteristics of fw_cfg.

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

9bda413c 04/17/2013 06:27 pm Anthony Liguori

i440fx-test: add test to compare default register values

This test compares all of the default register values against the
spec. It turns out we deviate in quite a few places. These
places are really only visible to the BIOS though which is why
this hasn't created any problems....

c4efe1ca 04/17/2013 06:26 pm Anthony Liguori

qtest: add libqos including PCI support

This includes basic PCI support for the PC platform. Enough
abstraction should be present to support non-PC platforms too.

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

234c69c5 04/17/2013 06:26 pm Anthony Liguori

libqos: add fw_cfg support

fw_cfg is needed to get the top of memory which is necessary for
doing PCI allocation and allocating RAM for DMA.

Add a PC version of fw_cfg and enough abstraction to support other
platforms.

Signed-off-by: Anthony Liguori <>...

8a0743cf 04/17/2013 06:26 pm Anthony Liguori

libqos: add malloc support

This is a very simple allocator for the PC platform. It should
be possible to add backends for other platforms.

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

8a8fd637 04/17/2013 06:26 pm Anthony Liguori

qtest: don't use system command to avoid double fork

Currently we waitpid on the child process we spawn off that does
nothing more than system() another process. While this does not
appear to be incorrect, it's wasteful and confusing so get rid of
it.

Signed-off-by: Anthony Liguori <>...

4aead692 04/17/2013 06:24 pm Eric Blake

migration: reflect incoming failure to shell

Management apps like libvirt don't know to pay attention to
stderr unless there is a non-zero exit status.

  • migration.c (process_incoming_migration_co): Exit with non-zero
    status on failure.

Signed-off-by: Eric Blake <>...

95e2af98 04/17/2013 06:24 pm Alexey Kardashevskiy

qbus: remove wrong error messages

The existing code shows the "Bus '%s' is full" message even if name
is specified and different from bus->name (i.e. match=0).

The patch excludes unnecessary error message.

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

bd5ac203 04/17/2013 06:22 pm Lei Li

chardev: remove the headers of Memory chardev driver

Memory chardev driver is no longer used, and Commit:
4bf0bb8014ac2ac61b1004f5d92b2a4594d48017 has droped
it but the headers, so clean it up.

Signed-off-by: Lei Li <>
Message-id: ...

20781f9c 04/17/2013 06:14 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/migration-writev' into staging

  1. By Paolo Bonzini
  2. Via Paolo Bonzini
    • bonzini/migration-writev:
      qemu-file: do not use stdio for qemu_fdopen
      iov: handle partial writes from sendmsg and recvmsg
      iov: reorganize iov_send_recv, part 3...
e9d8fbf5 04/17/2013 12:44 pm Paolo Bonzini

qemu-file: do not use stdio for qemu_fdopen

This uses system calls directly for Unix file descriptors, so that the
efficient writev_buffer can be used. Pay attention to the possibility
of partial writes in writev.

Reviewed-by: Juan Quintela <>...

f48869ad 04/17/2013 12:43 pm Paolo Bonzini

iov: reorganize iov_send_recv, part 3

"si" and "ei" are merged in a single variable.

Reviewed-by: Juan Quintela <>
Reviewed-by: Orit Wassermann <>
Signed-off-by: Paolo Bonzini <>

83f75c26 04/17/2013 12:43 pm Paolo Bonzini

iov: handle partial writes from sendmsg and recvmsg

Partial writes can still happen in sendmsg and recvmsg, if a
signal is received in the middle of a write. To handle this,
retry the operation with a new offset/bytes pair.

Reviewed-by: Juan Quintela <>...

15711565 04/17/2013 12:43 pm Paolo Bonzini

qemu-file: drop socket_put_buffer

It is enough to implement one of socket_writev_buffer and
socket_put_buffer.

Reviewed-by: Juan Quintela <>
Reviewed-by: Orit Wassermann <>
Signed-off-by: Paolo Bonzini <>

cb6247a7 04/17/2013 12:43 pm Paolo Bonzini

iov: reorganize iov_send_recv, part 1

Once the initial part of the iov is dropped, it is not used anymore.
Modify iov/iovcnt directly instead of adjusting them with the "si"
variable.

Reviewed-by: Juan Quintela <>
Reviewed-by: Orit Wassermann <>...

5209d675 04/17/2013 12:43 pm Paolo Bonzini

iov: reorganize iov_send_recv, part 2

Do not touch the "bytes" argument anymore. Instead, remember the
original length of the last iovec if we touch it, and restore it
afterwards.

This requires undoing the changes in opposite order. The previous
algorithm didn't care....

acbbc036 04/17/2013 12:10 am Amit Shah

rng random backend: check for -EAGAIN errors on read

Not handling EAGAIN triggers the assert

qemu/backends/rng-random.c:44:entropy_available: assertion failed: (len != -1)
Aborted (core dumped)

This happens when starting a guest with '-device virtio-rng-pci',...

2f7bd829 04/17/2013 12:10 am Andreas Färber

qdev: Fix device_add bus assumptions

Drop an unreachable fallback bus assignment to SysBus.

If no ,bus= is specified, only search busses recursively for bus type if
the DeviceClass has a bus_type specified. Handle resulting NULL cases.

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

e0a83fc2 04/17/2013 12:10 am Paolo Bonzini

qom: do nothing on unparent of object without parent

Otherwise, device_unparent will fail to get a canonical path of
the object.

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

7dda5dc8 04/17/2013 12:10 am Paolo Bonzini

migration: initialize RAM to zero

Using qemu_memalign only leaves the RAM zero by chance, because libc
will usually use mmap to satisfy our huge requests. But memory will
not be zero when using MALLOC_PERTURB_ with a nonzero value. In the
case of incoming migration, this breaks a recently-introduced...

86c7dba0 04/16/2013 06:28 pm Anthony Liguori

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

  1. By Gerd Hoffmann (6) and Hans de Goede (1)
  2. Via Gerd Hoffmann
    • kraxel/usb.80:
      use libusb for usb-host
      xhci: fix address device
      xhci: use slotid as device address
      xhci: fix portsc writes...
6f8111a1 04/16/2013 06:28 pm Anthony Liguori

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

  1. By Hans de Goede (5) and others
  2. Via Gerd Hoffmann
    • spice/spice.v69:
      spice-qemu-char: vmc_write: Don't write more bytes then we're asked too
      spice-qemu-char: Remove intermediate buffer
      spice-qemu-char: Add watch support...
100c5332 04/16/2013 06:28 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/pixman.v11' into staging

  1. By Gerd Hoffmann (22) and Igor Mitsyanko (2)
  2. Via Gerd Hoffmann
    • kraxel/pixman.v11: (24 commits)
      qxl: register QemuConsole for secondary cards
      gtk: custom cursor support
      console: allow pinning displaychangelisteners to consoles...
398973fe 04/16/2013 06:28 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/qom-cpu' into staging

  1. By Igor Mammedov (8) and others
  2. Via Andreas Färber
    • afaerber/qom-cpu:
      target-cris: Override do_interrupt for pre-v32 CPU cores
      qdev: Set device's parent before calling realize() down inheritance chain...
af203be3 04/16/2013 01:04 pm Gerd Hoffmann

xhci: use slotid as device address

Is good enougth for unique device addresses and avoids the need for any
state for device addressing. Makes live migration support easier. Also
makes device->slot lookups trivial.

Signed-off-by: Gerd Hoffmann <>

a6718874 04/16/2013 01:04 pm Gerd Hoffmann

xhci: fix address device

Zero-initialize the set-address dummy USBPacket,
also add buffer to avoid sanity checks triggering.

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

Signed-off-by: Gerd Hoffmann <>

2b2325ff 04/16/2013 01:04 pm Gerd Hoffmann

use libusb for usb-host

Reimplement usb-host on top of libusb.
Reasons to do this:

(1) Largely rewritten from scratch, nice opportunity to kill historical
cruft.
(2) Offload usbfs handling to libusb.
(3) Have a single portable code base instead of bsd + linux variants....
7598b41c 04/16/2013 12:59 pm Hans de Goede

usb-serial: Remove double call to qemu_chr_add_handlers( NULL )

usb-serial has a qdev chardev property, and hw/qdev-properties-system.c
already contains:

static void release_chr(Object *obj, const char *name, void *opaque) {
DeviceState *dev = DEVICE;...

94ae9eec 04/16/2013 12:59 pm Gerd Hoffmann

xhci: remove leftover debug printf

Signed-off-by: Gerd Hoffmann <>

6d3bc22e 04/16/2013 12:59 pm Gerd Hoffmann

xhci: add xhci_cap_write

Signed-off-by: Gerd Hoffmann <>

bdfce20d 04/16/2013 12:59 pm Gerd Hoffmann

xhci: fix portsc writes

Check for port reset first and skip everything else then.
Add sanity checks for PLS updates.
Add PLC notification when entering PLS_U0 state.

This gets host-initiated port resume going on win8.

Signed-off-by: Gerd Hoffmann <>

8bb9f51c 04/16/2013 12:52 pm Alon Levy

spice: (32 bit only) fix surface cmd tracking destruction

No change for 64 bit arches, but for 32 bit previously we zeroed half
the surfaces cmd array, instead of all of it.

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

f9fb0532 04/16/2013 12:52 pm Hans de Goede

virtio-console: Also throttle when less was written then requested

This is necessary so that we get properly woken up to write the rest.

This patch also changes the len argument to the have_data callback, to
avoid doing an unsigned signed comparison.

Signed-off-by: Hans de Goede <>...

c3d6b96e 04/16/2013 12:52 pm Hans de Goede

virtio-console: Remove any pending watches on close

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

52fe0e75 04/16/2013 12:52 pm Hans de Goede

spice-qemu-char: Remove #ifdef-ed code for old spice-server compat

We now require spice-server to be >= 0.12.0 so this is no longer needed.

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

ae893e5e 04/16/2013 12:52 pm Hans de Goede

spice-qemu-char: Add watch support

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

b010cec8 04/16/2013 12:52 pm Alon Levy

spice-qemu-char: Remove intermediate buffer

virtio-serial's buffer is valid when it calls us, and we don't
access it otherwise: vmc_read is only called in response to wakeup,
or else we set datalen=0 and throttle. Then vmc_read is called back,
we return 0 (not accessing the buffer) and set the timer to unthrottle....

75c439bc 04/16/2013 12:52 pm Hans de Goede

spice-qemu-char: vmc_write: Don't write more bytes then we're asked too

This one took me eons to debug, but I've finally found it now, oh well.

The usage of the MIN macro in this line:
last_out = MIN);

Causes qemu_chr_be_can_write to be called twice, since the MIN macro...

5c74fb27 04/16/2013 12:52 pm Gerd Hoffmann

qxl: add 2000x2000 and 2048x2048 video modes

Signed-off-by: Gerd Hoffmann <>

3bec0c7d 04/16/2013 11:25 am Peter Crosthwaite

m25p80: Fix debug messages.

Some dodgy casts were making a mess of these msgs.

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

e9711b4d 04/16/2013 11:25 am Peter Crosthwaite

m25p80: Convert guest errors to LOG_GUEST_ERROR

Some of the debug printfs in m25p80 are really guest errors.
Changed over to qemu_log_mask(LOG_GUEST_ERROR accordingly.

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

28097d02 04/16/2013 11:25 am Peter Crosthwaite

m25p80.c: Multiple debug verbosity levels

The debug printfs on every page program/read is extremely verbose. Add
a second level of debug for this.

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

095b9c48 04/16/2013 11:25 am Peter Crosthwaite

m25p80: Add debug message for no bdrv

If there is no backing bdrv, let the debugging developer know about it.

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

210914e2 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axidma: Fix rx/tx halted bit.

If there is no DMA buffer descriptor, the DMA halts, not idles.

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

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

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

xilinx_axidma: typedef XilinxAXIDMA struct

Typedef xilinx_axidma's object state struct to shorten the repeated usages of
struct XilinxAXIDMA.

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

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

xilinx_axidma: Defined and use type cast macro

Standard QOM cast macro. Replaces usages of FROM_SYSBUS

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

897374db 04/16/2013 11:04 am Peter Crosthwaite

xilinx_axidma: Register reset properly

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

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

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

xilinx_axidma: converted init->realize

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

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

54ff2a39 04/16/2013 11:04 am Peter Crosthwaite

petalogix_ml605_mmu: Fix machine node attachment

Just attach devices straight to the root machine node, rather than the
"unattached node"

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

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

petalogix_ml605_mmu: Attach ethernet to machine

Explicitly make the ethernet a child of the machine. This is needed to set
and use links pre-realize. Also makes the ethernet initialization consistent
with its peer DMA.

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

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

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

9697f5d2 04/16/2013 10:26 am Gerd Hoffmann

gtk: custom cursor support

Makes gtk ui play nicely with qxl (and vmware_svga)
as you can actually see your pointer now ;)

Signed-off-by: Gerd Hoffmann <>

bfe528b9 04/16/2013 10:26 am Gerd Hoffmann

qxl: register QemuConsole for secondary cards

Hook secondary qxl cards properly into the qemu console subsystem.

Signed-off-by: Gerd Hoffmann <>

dea1b0bd 04/16/2013 10:26 am Gerd Hoffmann

xen: re-enable refresh interval reporting for xenfb

xenfb informs the guest about the gui refresh interval so it can avoid
pointless work. That logic was temporarely disabled for the
DisplayState reorganization. Restore it now, with a proper interface
for it....

81c0d5a6 04/16/2013 10:26 am Gerd Hoffmann

console: add qemu_console_is_*

Signed-off-by: Gerd Hoffmann <>

284d1c6b 04/16/2013 10:26 am Gerd Hoffmann

console: allow pinning displaychangelisteners to consoles

DisplayChangeListener gets a new QemuConsole field, which can be set to
non-NULL before registering. This will pin the QemuConsole, so that
particular DisplayChangeListener will not follow console switches....

d4bcb199 04/16/2013 10:03 am Gerd Hoffmann

qxl: add 4k + 8k resolutions

Signed-off-by: Gerd Hoffmann <>

380cd056 04/16/2013 10:03 am Gerd Hoffmann

console: add GraphicHwOps

Pass a single GraphicHwOps struct pointer to graphic_console_init,
instead of a bunch of function pointers.

Signed-off-by: Gerd Hoffmann <>

0f7b2864 04/16/2013 10:03 am Gerd Hoffmann

console: gui timer fixes

Make gui update rate adaption code in gui_update() actually work.
Sprinkle in a tracepoint so you can see the code at work. Remove
the update rate adaption code in vnc and make vnc simply use the
generic bits instead.

Signed-off-by: Gerd Hoffmann <>

1dbfa005 04/16/2013 10:03 am Gerd Hoffmann

console: rename vga_hw_*, add QemuConsole param

Add QemuConsole parameter to vga_hw_*, so the interface allows to update
non-active consoles (the actual code can't handle this yet, see next
patch). Passing NULL is allowed and updates the active console, like...

321f048d 04/16/2013 10:03 am Gerd Hoffmann

console: give each QemuConsole its own DisplaySurface

Go away from the global DisplaySurface, give one to each QemuConsole
instead. With this patch applied it is possible to call
graphics_hw_* functions with qemu consoles which are not the current
foreground console....

2c62f08d 04/16/2013 10:03 am Gerd Hoffmann

console: simplify screendump

Screendumps are alot simpler as we can update non-active
QemuConsoles now. So we only need to update the QemuConsole
we want write out, then dump the DisplaySurface content into
a ppm file. Done.

No console switching needed. No special support code in the...

36671fbd 04/16/2013 10:03 am Gerd Hoffmann

console: zap g_width + g_height

We have a surface per QemuConsole now, so there is no need to keep
track of the QemuConsole size any more as we can query the surface
size directly at any time.

Signed-off-by: Gerd Hoffmann <>

98a9ad90 04/16/2013 10:03 am Gerd Hoffmann

console: move gui_update+gui_setup_refresh from vl.c into console.c

Pure code motion, no functional changes.

Signed-off-by: Gerd Hoffmann <>

27be5587 04/16/2013 10:03 am Gerd Hoffmann

console: make DisplayState private to console.c

With gui_* being moved to console.c nobody outside console.c needs
access to DisplayState fields any more. Make the struct private.

Signed-off-by: Gerd Hoffmann <>

7a6404cd 04/16/2013 10:03 am Gerd Hoffmann

hw/vmware_vga.c: add tracepoints for mmio reads+writes

Signed-off-by: Gerd Hoffmann <>

eb2f9b02 04/16/2013 10:03 am Gerd Hoffmann

hw/vmware_vga.c: various vmware vga fixes.

Hardcode depth to 32 bpp. It effectively was that way before because
that is the default surface depth, this just makes it explicit in the
code.

Rename depth to new_depth to make it consistent with the new_width +...

867c538f 04/16/2013 10:03 am Gerd Hoffmann

pixman: add qemu_pixman_color()

Helper function to map qemu colors (32bit integer + matching PixelFormat)
into pixman_color_t.

Signed-off-by: Gerd Hoffmann <>

b7627952 04/16/2013 10:03 am Gerd Hoffmann

pixman: render vgafont glyphs into pixman images

Add helper functions to create pixman mask images for glyphs
and to render these glyphs into a pixman image.

Signed-off-by: Gerd Hoffmann <>

68db6dc5 04/16/2013 10:03 am Gerd Hoffmann

console: use pixman for fill+blit

Zap homegrown pixel shuffeling code, use pixman calls instead.

Signed-off-by: Gerd Hoffmann <>

7d6ba01c 04/16/2013 10:03 am Gerd Hoffmann

console: use pixman for font rendering

Zap homegrown font rendering code, use pixman calls instead.

Signed-off-by: Gerd Hoffmann <>

e27bd65a 04/16/2013 10:03 am Gerd Hoffmann

console: switch color_table_rgb to pixman_color_t

Now that all text console rendering uses pixman we can easily
switch the color tables to use pixman_color_t directly.

Signed-off-by: Gerd Hoffmann <>

437fe106 04/16/2013 10:03 am Gerd Hoffmann

console: add trace events

Signed-off-by: Gerd Hoffmann <>

64840c66 04/16/2013 10:03 am Gerd Hoffmann

console: displaystate init revamp

We have only one DisplayState, so there is no need for the "next"
linking, rip it. Also consolidate all displaystate initialization
into init_displaystate(). This function is called by vl.c after
creating the devices (and thus all QemuConsoles) and before...

522fccbe 04/16/2013 10:03 am Igor Mitsyanko

exynos4210_fimd.c: fix display resize bug introduced after console revamp

In exynos4210 display update function, we were acquiring DisplaySurface
pointer before calling screen resize function, not paying attention that resize
procedure can replace current DisplaySurface with newly allocated one....

17866fc8 04/16/2013 10:03 am Igor Mitsyanko

hw/vmware_vga.c: fix screen resize bug introduced after console revamp

In vmsvga display update function, a pointer to DisplaySurface must be acquired
after a call to vmsvga_check_size since this function might replace current
DisplaySurface with a new one....

b21bfeea 04/16/2013 03:45 am Andreas Färber

target-cris: Override do_interrupt for pre-v32 CPU cores

Instead of forwarding from cris_cpu_do_interrupt() to do_interruptv10(),
override CPUClass::do_interrupt with crisv10_cpu_do_interrupt() in the
newly introduced class_init functions.

Acked-by: Edgar E. Iglesias <>...

7f833247 04/16/2013 02:19 am Igor Mammedov

target-i386: Split out CPU creation and features parsing

Move CPU creation and features parsing into a separate cpu_x86_create()
function, so that board would be able to set board-specific CPU
properties before CPU is realized.

Keep cpu_x86_init() for compatibility with the code that uses cpu_init()...

3f24a58f 04/16/2013 02:19 am Igor Mammedov

cpu: Pass CPUState to cpu_synchronize_post()

... so it could be called without requiring CPUArchState.

Signed-off-by: Igor Mammedov <>
Reviewed-by: Eduardo Habkost <>
Signed-off-by: Andreas Färber <>

a7ddba52 04/16/2013 02:19 am Igor Mammedov

qdev: Set device's parent before calling realize() down inheritance chain

Currently device_set_realized() sets parent only after device was realized,
but qdev_device_add() sets it before device is realized.
Make behavior consistent and alter device_set_realized() to behave like...