Statistics
| Branch: | Revision:

root / hw / display @ da87dd7b

# Date Author Comment
da87dd7b 11/21/2013 06:38 pm Mark Cave-Ayland

sun4m: Add FCode ROM for TCX framebuffer

Upstream OpenBIOS now implements SBus probing in order to determine the
contents of a physical bus slot, which is required to allow OpenBIOS to
identify the framebuffer without help from the fw_cfg interface.

SBus probing works by detecting the presence of an FCode program...

2c8ebac7 11/06/2013 06:01 am Marc-André Lureau

vga: fix invalid read after free

After calling dpy_gfx_replace_surface(s->con, surface), the outer
surface is invalid.

5370 Invalid read of size 4
5370 at 0x460229: surface_bits_per_pixel (console.h:250)
5370 by 0x466A81: get_depth_index (vga.c:1173)...
7d579514 11/06/2013 05:57 am Peter Maydell

bswap.h: Remove cpu_to_32wu()

Replace the legacy cpu_to_32wu() with stl_p().

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

4a46c99c 11/04/2013 01:31 pm Gerd Hoffmann

qxl: replace pipe signaling with bottom half

qxl creates a pipe, then writes something to it to wake up the iothread
from the spice server thread to raise an irq. These days qemu bottom
halves can be scheduled from threads and signals, so there is no reason...

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

98964491 10/18/2013 08:01 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging

  1. By Paolo Bonzini (10) and others
  2. Via Paolo Bonzini
    • bonzini/iommu-for-anthony:
      exec: remove qemu_safe_ram_ptr
      icount: make it thread-safe
      icount: document (future) locking rules for icount...
eb25a1d9 10/17/2013 06:24 pm Jan Kiszka

cirrus: Mark vga io region as coalesced MMIO flushing

This allows to remove the explicit qemu_flush_coalesced_mmio_buffer
calls - the memory core will invoke them now.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

c46860ea 10/17/2013 06:24 pm Jan Kiszka

vga: Mark relevant portio lists regions as coalesced MMIO flushing

This allows to remove the explicit qemu_flush_coalesced_mmio_buffer
calls.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

9fa03286 10/17/2013 01:42 pm Gerd Hoffmann

spice: fix multihead support

This patch fixes spice display initialization to handle
multihead properly.

spice-core now keeps track of which QemuConsole has a spice
display channel attached to it and which has not. It also
manages display channel ids.
...

26defe81 10/17/2013 01:25 pm Marc-André Lureau

spice: replace use of deprecated API

hose API are deprecated since 0.11, and qemu depends on 0.12 already.

Signed-off-by: Gerd Hoffmann <>

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

9efc2d8d 09/18/2013 12:13 pm Gerd Hoffmann

qxl: define qxl operating on 4k pages

Signed-off-by: Gerd Hoffmann <>

60b3b2a5 09/18/2013 12:13 pm Gerd Hoffmann

qxl: simplify qxl_rom_size

Nowdays rom size is fixed at 8192 for live migration compat reasons.
So we can ditch the pointless math trying to calculate the size needed.
Also make the size sanity check fail at compile time not runtime.

Signed-off-by: Gerd Hoffmann <>

b0297b4a 09/18/2013 12:13 pm Gerd Hoffmann

qxl: simplify page dirtying

No need to do target page size calculations here,
memory_region_set_dirty will care for us.

Signed-off-by: Gerd Hoffmann <>

521e759c 09/18/2013 12:13 pm Gerd Hoffmann

qxl: compile only once

Signed-off-by: Gerd Hoffmann <>

2d1fe187 09/11/2013 10:46 pm Anthony Liguori

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

ARM queue: * aarch64 preparation patchset (excluding the defconfigs, so this
doesn't actually enable the new targets yet) * minor bugfixes and cleanups * disable "-cpu any" in system emulation mode...

031c44e4 09/10/2013 09:09 pm Peter Maydell

pl110: Clarify comment about PL110 ID on VersatilePB

Clarify a comment about the ID register value presented by
the PL110 variant present on the VersatilePB board (based
on testing what the actual hardware does), to indicate that
this is not an error in our emulation, and to remove an #if-0....

18b20385 09/10/2013 12:14 pm Gerd Hoffmann

qxl: trace io port name

Signed-off-by: Gerd Hoffmann <>

c58c7b95 09/10/2013 12:14 pm Gerd Hoffmann

qxl: fix local renderer

The local spice renderer assumes the primary surface is located at the
start of the "ram" bar. This used to be a requirement in qxl hardware
revision 1. In revision 2+ this is relaxed. Nevertheless guest drivers
continued to use the traditional location, for historical and backward...

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

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

milkymist-vgafb: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field.

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

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

pl110: Rename pl110_state to PL110State

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

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

pl110: QOM'ify pl110, pl110_versatile and pl111

Let pl110_versatile and pl111 inherit from pl110 and use PL110 cast;
set their version index in an instance_init.

Reviewed-by: Hu Tao <>
[AF: Set version PL110 explicitly, suggested by Hu Tao; fixed inheritence]...

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

tcx: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field.

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

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

milkymist-tmu2: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field.

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

66c2de56 07/29/2013 10:05 pm Andreas Färber

jazz_led: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field.

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

f27321aa 07/29/2013 10:05 pm Andreas Färber

exynos4210_fimd: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field.

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

0f31aa86 07/29/2013 10:05 pm Andreas Färber

g364fb: QOM cast cleanup

Introduce a type constant, use QOM casts and rename the parent field and
prepare for QOM realize.

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

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

39d45987 07/23/2013 01:37 am Peter Crosthwaite

display/vmware_vga: QOM casting sweep

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

Signed-off-by: Peter Crosthwaite <>
[AF: Renamed to TYPE_VMWARE_VGA and VMWARE_VGA()]
Signed-off-by: Andreas Färber <>

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

display/vmware_vga: QOM parent field cleanup

Replace direct uses of pci_vmsvga_state_s::card with QOM casts and
rename it to parent_obj.

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

5444e768 07/04/2013 06:42 pm Paolo Bonzini

add a header file for atomic operations

We're already using them in several places, but __sync builtins are just
too ugly to type, and do not provide seqcst load/store operations.

Reviewed-by: Richard Henderson <>
Signed-off-by: Paolo Bonzini <>

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

piolist: add owner argument to initialization functions and pass devices

Signed-off-by: Paolo Bonzini <>

3eadad55 07/04/2013 06:42 pm Paolo Bonzini

hw/d*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

712f0cc7 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_init

Signed-off-by: Paolo Bonzini <>

270327fe 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_common_init

Signed-off-by: Paolo Bonzini <>

9eb58a47 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to cirrus_init_common

Signed-off-by: Paolo Bonzini <>

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

vga: pass owner to vga_init_vbe

Signed-off-by: Paolo Bonzini <>

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

vga: pass owner to vga_init_io

Signed-off-by: Paolo Bonzini <>

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

vga: set owner in vga_update_memory_access

Signed-off-by: Paolo Bonzini <>

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

memory: add ref/unref calls

Add ref/unref calls at the following places:

- places where memory regions are stashed by a listener and
used outside the BQL (including in Xen or KVM).

- memory_region_find callsites

- creation of aliases and containers (only the aliased/contained...

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

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

04e8cd50 07/04/2013 06:42 pm Jan Kiszka

vmware-vga: Accept unaligned I/O accesses

Before switching to the memory core dispatcher, we need to make sure
that this pv-device will continue to receive unaligned portio accesses.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

9fbbf0d1 06/24/2013 10:33 pm Anthony Liguori

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

  1. By Gerd Hoffmann (1) and Hans de Goede (1)
  2. Via Gerd Hoffmann
    • spice/spice.v71:
      spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850)
      qxl: fix Coverity scan SIGN_EXTENSION error...
bfc10122 06/24/2013 09:23 am Gerd Hoffmann

qxl: fix Coverity scan SIGN_EXTENSION error

Cc: Markus Armbruster <>
Signed-off-by: Gerd Hoffmann <>

329f97fc 06/21/2013 09:52 pm Anthony PERARD

qxl: Fix QXLRam initialisation.

The qxl driver expect NULL for QXLRam.memory_configs, but this is never
initialized.

If memory is set to 0xc2c2.., it leads to a spice-critical error when
trying to start qxl.

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

052e87b0 06/20/2013 05:32 pm Paolo Bonzini

memory: make section size a 128-bit integer

So far, the size of all regions passed to listeners could fit in 64 bits,
because artificial regions (containers and aliases) are eliminated by
the memory core, leaving only device regions which have reasonable sizes...

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

7087d3df 06/03/2013 04:37 pm Anthony Liguori

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

  1. By Ed Maste (3) and others
  2. Via Michael Tokarev
    • mjt/trivial-patches:
      do not check pointers after dereferencing them
      m25p80: Add Micron n25q032a
      qemu: fix out of tree cross compile...
f10acc8b 06/02/2013 07:45 pm Mark Cave-Ayland

tcx: Fix 24-bit display mode

Commit d08151bf (conversion of tcx to the memory API) broke the 24-bit mode of
the tcx display adapter by accidentally passing in the final address of the
dirty region to memory_region_reset_dirty() instead of its size.

Signed-off-by: Mark Cave-Ayland <>...

6681fca3 06/01/2013 01:25 pm Stefan Weil

Remove unnecessary break statements

Fix these warnings from cppcheck:

hw/display/cirrus_vga.c:2603:
hw/sd/sd.c:348:
hw/timer/exynos4210_mct.c:1033:
target-arm/translate.c:9886:
target-s390x/mem_helper.c:518:
target-unicore32/translate.c:1936:
style: Consecutive return, break, continue, goto or throw statements are unnecessary....

0a2b5e3a 05/09/2013 12:46 pm Hans de Goede

qxl: Call spice_qxl_driver_unload from qxl_enter_vga_mode

With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to
know what part of the primary to use for each monitor. If the guest driver
does not support this, the server sends messages to the client for a...

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

vga-isa: QOM'ify ISA VGA

Introduce type constant and cast macro to obsolete DO_UPCAST() and
container_of(). Prepares for ISA realizefn.

Unify function naming scheme while at it.

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

6d4c2f17 04/29/2013 04:27 pm Andreas Färber

cirrus_vga: QOM'ify ISA Cirrus VGA

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

95be0669 04/25/2013 10:45 pm Gerd Hoffmann

console: qom-ify QemuConsole

Just the minimal bits to turn QemuConsoles into Objects.

Signed-off-by: Gerd Hoffmann <>

aa2beaa1 04/25/2013 10:45 pm Gerd Hoffmann

console: add device link to QemuConsoles

So it is possible to figure which qemu console displays which device.

Signed-off-by: Gerd Hoffmann <>

5209089f 04/25/2013 10:45 pm Gerd Hoffmann

console: zap ds arg from register_displaychangelistener

We don't have multiple DisplayStates any more,
so passing it in as argument is not needed.

Signed-off-by: Gerd Hoffmann <>

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

19298eca 04/20/2013 08:54 pm Peter Maydell

hw/sm501: Use correct setter for sysbus-ohci dma-address property

The sysbus-ohci dma-address property is declared as a HEX64
property, not a TADDR, so use the correct setter for it.

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

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

2b6b7099 04/18/2013 03:12 pm Paolo Bonzini

configure: eliminate target_libs_softmmu

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Edgar E. Iglesias <>

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

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

qxl: add 2000x2000 and 2048x2048 video modes

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

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

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

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

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

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

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

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

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

hw: move display devices to hw/display/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>

1fd6bb44 04/08/2013 07:13 pm Paolo Bonzini

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>