Statistics
| Branch: | Revision:

root / hw @ 5e22c276

# Date Author Comment
be7c236f 01/07/2013 06:37 pm Scott Wood

openpic: make register names correspond better with hw docs

The base openpic specification doesn't provide abbreviated register
names, so it's somewhat understandable that the QEMU code made up
its own, except that most of the names that QEMU used didn't correspond...

5e22c276 01/07/2013 06:37 pm Scott Wood

openpic: rework critical interrupt support

Critical interrupts on FSL MPIC are not supposed to pay
attention to priority, IACK, EOI, etc. On the currently modeled
version it's not supposed to pay attention to the mask bit either.

Also reorganize to make it easier to implement newer FSL MPIC models,...

a26a7b38 01/07/2013 06:37 pm Scott Wood

openpic: s/opp->nb_irqs 1/opp>nb_cpus - 1/

"opp->nb_irqs-1" would have been a minor coding style error,
but putting in one space but not the other makes it look
confusingly like a numeric literal "-1".

Signed-off-by: Scott Wood <>...

c3203fa5 01/07/2013 06:37 pm Scott Wood

openpic: don't crash on a register access without a CPU context

If we access a register via the QEMU memory inspection commands (e.g.
"xp") rather than from guest code, we won't have a CPU context.
Gracefully fail to access the register in that case, rather than...

af7e9e74 01/07/2013 06:37 pm Alexander Graf

openpic: fix coding style issues

This patch fixes the following coding style violations:

- structs have to be typedef and be CamelCase
- if()s are always surrounded by curly braces

Signed-off-by: Alexander Graf <>

88a78d90 01/07/2013 06:37 pm Bharat Bhushan

PPC: Reset qemu timers when guest reset

This patch install the timer reset handler. This will be called when
the guest is reset.

Signed-off-by: Bharat Bhushan <>
[agraf: adjust for QOM'ification]
Signed-off-by: Alexander Graf <>

4c4f0e48 01/07/2013 06:37 pm Scott Wood

openpic: fix debug prints

Fix various format errors when debug prints are enabled. Also
cause error checking to happen even when debug prints are not
enabled, and consistently use 0x for hex output.

Signed-off-by: Scott Wood <>
[agraf: adjust for more recent code base, prettify DPRINTF macro]...

e99fd8af 01/07/2013 06:37 pm Scott Wood

openpic: lower interrupt when reading the MSI register

This will stop things from breaking once it's properly treated as a
level-triggered interrupt. Note that it's the MPIC's MSI cascade
interrupts that are level-triggered; the individual MSIs are
edge-triggered....

71c6cacb 01/07/2013 06:37 pm Scott Wood

openpic: symbolicize some magic numbers

Deefine symbolic names for some register bits, and use some that
have already been defined.

Also convert some register values from hex to decimal when it improves
readability.

IPVP_PRIORITY_MASK is corrected from (0x1F << 16) to (0xF << 16), in...

c975330e 01/07/2013 06:37 pm Scott Wood

openpic: remove pcsr (CPU sensitivity register)

I could not find this register in any spec (FSL, IBM, or OpenPIC)
and the code doesn't do anything with it but initialize, save,
or restore it.

Signed-off-by: Scott Wood <>
Signed-off-by: Alexander Graf <>

0fe04622 01/07/2013 06:37 pm Scott Wood

openpic: support large vectors on FSL mpic

Previously only the spurious vector was sized appropriately
to the openpic model.

Also, instances of "IPVP_VECTOR(opp->spve)" were replace with
just "opp->spve", as opp->spve is already just a vector and not
an IVPR....

0d404683 01/07/2013 06:37 pm Scott Wood

openpic: BRR1 is not a CPU-specific register.

It's in the address range that normally contains a magic redirection
to the CPU-specific region of the curretn CPU, but it isn't actually
a per-CPU register. On real hardware BRR1 shows up only at 0x40000,
not at 0x60000 or other non-magic per-CPU areas. Plus, this makes...

8e4a424b 01/06/2013 08:30 pm Blue Swirl

Revert "virtio-pci: replace byte swap hack"

This reverts commit 9807caccd605d09a72495637959568d690e10175.

Signed-off-by: Blue Swirl <>

9807cacc 01/06/2013 10:24 am Blue Swirl

virtio-pci: replace byte swap hack

Remove byte swaps by declaring the config space
as native endian.

Signed-off-by: Blue Swirl <>

549db5c3 01/05/2013 12:14 pm Stefan Weil

hw/i386: Fix broken build for non POSIX hosts

pc-testdev.c cannot be compiled with MinGW (and other non POSIX hosts):

CC    i386-softmmu/hw/i386/../pc-testdev.o
qemu/hw/i386/../pc-testdev.c:38:22: warning: sys/mman.h: file not found
qemu/hw/i386/../pc-testdev.c: In function ‘test_flush_page’:...
a4c7ecd8 01/04/2013 09:25 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    spice: drop incorrect vm_change_state_handler() opaque
    linux-user/syscall.c: remove forward declarations
    hw/mcf5206: Reduce size of lookup table
    Remove --sparc_cpu option from the configure list...
346c1f8b 01/04/2013 09:25 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/testdev.1' into staging

  • kraxel/testdev.1:
    pc: remove bochs bios debug ports
    hw: Add test device for unittests execution
    add isa-debug-exit device.
    switch debugcon to memory api

Signed-off-by: Anthony Liguori <>

715857cb 01/04/2013 03:38 pm Stefan Weil

hw/mcf5206: Reduce size of lookup table

This typically reduces the size from 512 bytes to 128 bytes.

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

e7b1d0ea 01/04/2013 03:38 pm Markus Armbruster

pc_sysfw: Check for qemu_find_file() failure

pc_fw_add_pflash_drv() ignores qemu_find_file() failure, and happily
creates a drive without a medium.

When pc_system_flash_init() asks for its size, bdrv_getlength() fails
with -ENOMEDIUM, which isn't checked either. It fails relatively...

e2af7a4d 01/04/2013 03:38 pm Stefan Weil

pseries: Remove unneeded include statement (fixes MinGW builds)

sys/mman.h is not needed (tested on Linux) and unavailable for MinGW,
so remove it.

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

9ee59f34 01/04/2013 10:11 am Gerd Hoffmann

pc: remove bochs bios debug ports

Prehistoric leftover, zap it. We poweroff via acpi these days.

And having a port (0x501,0x502) where any random guest write will make
qemu exit -- with no way to turn it off -- is a bad joke anyway.

Signed-off-by: Gerd Hoffmann <>

ee0cc541 01/04/2013 10:11 am Lucas Meneghel Rodrigues

hw: Add test device for unittests execution

Add a test device which supports the kvmctl ioports,
so one can run the KVM unittest suite.

Intended Usage:

qemu-system-x86_64 -nographic \
-device pc-testdev \
-device isa-debug-exit,iobase=0xf4,iosize=0x04 \...

e8ba1ce9 01/04/2013 09:51 am Gerd Hoffmann

switch debugcon to memory api

Also some QOM glue while being at it.

Signed-off-by: Gerd Hoffmann <>

bb355b18 01/04/2013 09:51 am Gerd Hoffmann

add isa-debug-exit device.

When present it makes qemu exit on any write.
Mapped to port 0x501 by default.

Without this patch Anthony doesn't allow me to
remove the bochs bios debug ports because his
test suite uses this.

Signed-off-by: Gerd Hoffmann <>

f7e4dd6c 01/04/2013 09:51 am Gerd Hoffmann

acpi: autoload dsdt

Signed-off-by: Gerd Hoffmann <>

56e5b2a1 01/04/2013 09:51 am Gerd Hoffmann

apci: assign memory regions to piix4 acpi device

Get rid of get_system_io() usage.

Signed-off-by: Gerd Hoffmann <>

503b19fc 01/04/2013 09:51 am Gerd Hoffmann

apci: assign memory regions to ich9 lpc device

Get rid of get_system_io() usage.

Signed-off-by: Gerd Hoffmann <>

ef4929fb 01/03/2013 03:13 pm Stefan Hajnoczi

dataplane: use linux-headers/ for virtio includes

The hw/dataplane/vring.c code includes linux/virtio_ring.h. Ensure that
we use linux-headers/ instead of the system-wide headers, which may be
out-of-date on older distros.

This resolves the following build error on Debian 6:...

217da7fd 01/02/2013 08:19 pm Anthony Liguori

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

  • stefanha/block:
    sheepdog: pass oid directly to send_pending_req()
    sheepdog: don't update inode when create_and_write fails
    block/raw-win32: Fix compiler warnings (wrong format specifiers)...
9e72c450 01/02/2013 05:08 pm Alexey Zaytsev

virtio-blk: Return UNSUPP for unknown request types

Currently, all unknown requests are treated as VIRTIO_BLK_T_IN

Signed-off-by: Alexey Zaytsev <>
Signed-off-by: Stefan Hajnoczi <>

392808b4 01/02/2013 05:08 pm Stefan Hajnoczi

virtio-blk: add x-data-plane=on|off performance feature

The virtio-blk-data-plane feature is easy to integrate into
hw/virtio-blk.c. The data plane can be started and stopped similar to
vhost-net.

Users can take advantage of the virtio-blk-data-plane feature using the...

e72f66a0 01/02/2013 05:08 pm Stefan Hajnoczi

dataplane: add virtio-blk data plane code

virtio-blk-data-plane is a subset implementation of virtio-blk. It only
handles read, write, and flush requests. It does this using a dedicated
thread that executes an epoll(2)-based event loop and processes I/O...

8a873ba7 01/02/2013 04:59 pm Stefan Hajnoczi

virtio-blk: restore VirtIOBlkConf->config_wce flag

Two slightly different versions of a patch to conditionally set
VIRTIO_BLK_F_CONFIG_WCE through the "config-wce" qdev property have been
applied (ea776abca and eec7f96c2). David Gibson
<> noticed that the "config-wce"...

3e9ec521 01/02/2013 04:58 pm Stefan Hajnoczi

dataplane: add Linux AIO request queue

The IOQueue has a pool of iocb structs and a function to add new
read/write requests. Multiple requests can be added before calling the
submit function to actually tell the host kernel to begin I/O. This
allows callers to batch requests and submit them in one go....

71973b04 01/02/2013 04:56 pm Stefan Hajnoczi

dataplane: add event loop

Outside the safety of the global mutex we need to poll on file
descriptors. I found epoll(2) is a convenient way to do that, although
other options could replace this module in the future (such as an
AioContext-based loop or glib's GMainLoop)....

88807f89 01/02/2013 04:55 pm Stefan Hajnoczi

dataplane: add virtqueue vring code

The virtio-blk-data-plane cannot access memory using the usual QEMU
functions since it executes outside the global mutex and the memory APIs
are this time are not thread-safe.

This patch introduces a virtqueue module based on the kernel's vhost...

185ecf40 01/02/2013 04:50 pm Stefan Hajnoczi

dataplane: add host memory mapping code

The data plane thread needs to map guest physical addresses to host
pointers. Normally this is done with cpu_physical_memory_map() but the
function assumes the global mutex is held. The data plane thread does
not touch the global mutex and therefore needs a thread-safe memory...

34daffa0 01/02/2013 04:01 pm Anthony Liguori

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

  • qemu-kvm/uq/master:
    qemu-kvm/pci-assign: 64 bits bar emulation
    target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

Signed-off-by: Anthony Liguori <>

079944e6 01/02/2013 04:01 pm Anthony Liguori

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

pci,virtio

This optimizes MSIX handling in virtio-pci.
Also included is pci express capability bugfix.

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

5928023c 01/01/2013 02:05 pm Stefan Weil

pflash_cfi01: Suppress warning when Linux probes for AMD flash

There are several ARM and MIPS boards which are manufactured with
either Intel (pflash_cfi01.c) or AMD (pflash_cfi02.c) flash memory.

The Linux kernel supports both and first probes for AMD flash which...

62054c06 12/28/2012 06:09 pm Alon Levy

usb/redirect.c: unbreak compilation due to include/char/char.h

Broken since:

commit 927d4878b0ff319ed87fed9363f314613b0a5ed9
Author: Paolo Bonzini <>
Date: Mon Dec 17 18:20:05 2012 +0100

softmmu: move remaining include files to include/ subdirectories...
4de63460 12/28/2012 06:08 pm Blue Swirl

Merge branch 'qom-cpu' of git://repo.or.cz/qemu/afaerber

  • 'qom-cpu' of git://repo.or.cz/qemu/afaerber:
    MAINTAINERS: Include X86CPU in CPU maintenance area
    cpu: Move kvm_run into CPUState
    cpu: Move kvm_state field into CPUState
    ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()...
70f8ee39 12/26/2012 11:49 am Michael S. Tsirkin

msix: expose access to masked/pending state

For use by poll handler.

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

89d62be9 12/26/2012 11:49 am Michael S. Tsirkin

virtio-pci: don't poll masked vectors

At the moment, when irqfd is in use but a vector is masked,
qemu will poll it and handle vector masks in userspace.
Since almost no one ever looks at the pending bits,
it is better to defer this until pending bits
are actually read....

812d2594 12/26/2012 11:49 am Knut Omang

pcie: Fix bug in pcie_ext_cap_set_next

Upper 16 bits of the PCIe Extended Capability Header was truncated during update,
also breaking pcie_add_capability.

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

bbef882c 12/26/2012 11:49 am Michael S. Tsirkin

msi: add API to get notified about pending bit poll

Update all users.

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

0a2a59d3 12/25/2012 02:37 pm Xudong Hao

qemu-kvm/pci-assign: 64 bits bar emulation

Enable 64 bits bar emulation.

Test pass with the current seabios which already support 64bit pci bars.

Signed-off-by: Xudong Hao <>
Reviewed-by: Alex Williamson <>...

2915efbf 12/23/2012 10:37 pm Alex Horn

tmp105: Create API for TMP105 temperature sensor.

  • Define enum for TMP105 registers
  • Move tmp105_set() from I2C to TMP105 header
  • Document units and range of temperature as preconditions

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

501a7ce7 12/23/2012 01:40 am Andreas Färber

Merge branch 'master' of git://git.qemu.org/qemu into qom-cpu

Adapt header include paths.

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

d2a0ccc6 12/20/2012 09:20 am Michael S. Tsirkin

virtio: make bindings typesafe

Move bindings from opaque to DeviceState.
This gives us better type safety with no performance cost.
Add macros to make future QOM work easier.

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

27dd7730 12/20/2012 01:15 am Anthony Liguori

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

  • bonzini/header-dirs: (45 commits)
    janitor: move remaining public headers to include/
    hw: move executable format header files to hw/
    fpu: move public header file to include/fpu
    softmmu: move remaining include files to include/ subdirectories...
ee0c98e6 12/19/2012 03:09 pm Andreas Färber

ppc_booke: Pass PowerPCCPU to {decr,fit,wdt} timer callbacks

Cleans up after passing PowerPCCPU to booke_update_irq().

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

2f9859fb 12/19/2012 03:09 pm Andreas Färber

ppc4xx_devs: Return PowerPCCPU from ppc4xx_init()

Prepares for passing PowerPCCPU to ppc_booke_timers_init().

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

a34a92b9 12/19/2012 03:09 pm Andreas Färber

ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()

Cleans up after passing PowerPCCPU to timer callbacks.

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

04a2d61e 12/19/2012 03:09 pm Eduardo Habkost

qdev: Coding style fixes

Add missing braces and break lines larger than 80 chars.

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

a404b612 12/19/2012 03:09 pm Eduardo Habkost

qdev-properties.c: Separate core from the code used only by qemu-system-*

This separates the qdev properties code in two parts:
- qdev-properties.c, that contains most of the qdev properties code;
- qdev-properties-system.c for code specific for qemu-system-*,...

1bc22652 12/19/2012 03:09 pm Andreas Färber

kvm: Pass CPUState to kvm_vcpu_ioctl()

Adapt helper functions to pass X86CPU / PowerPCCPU / S390CPU.

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

7058581a 12/19/2012 03:09 pm Andreas Färber

ppc: Pass PowerPCCPU to ppc_set_irq()

Adapt static caller functions.

This cleans up after passing PowerPCCPU to kvmppc_set_interrupt().

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

7e0a9247 12/19/2012 03:09 pm Andreas Färber

ppc: Pass PowerPCCPU to [h]decr callbacks

Cleans up after passing PowerPCCPU to ppc_set_irq().

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

50c680f0 12/19/2012 03:09 pm Andreas Färber

ppc: Pass PowerPCCPU to [h]decr timer callbacks

Cleans up after passing PowerPCCPU to [h]decr exception callbacks.

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

927d4878 12/19/2012 09:32 am Paolo Bonzini

softmmu: move remaining include files to include/ subdirectories

Signed-off-by: Paolo Bonzini <>

42dc882f 12/19/2012 09:32 am Paolo Bonzini

hw: move executable format header files to hw/

Or delete a.out.h which is unused.

Signed-off-by: Paolo Bonzini <>

9c17d615 12/19/2012 09:32 am Paolo Bonzini

softmmu: move include files to include/sysemu/

Signed-off-by: Paolo Bonzini <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

83c9089e 12/19/2012 09:31 am Paolo Bonzini

monitor: move include files to include/monitor/

Signed-off-by: Paolo Bonzini <>

caf71f86 12/19/2012 09:31 am Paolo Bonzini

migration: move include files to include/migration/

Signed-off-by: Paolo Bonzini <>

14cccb61 12/19/2012 09:31 am Paolo Bonzini

qom: move include files to include/qom/

Signed-off-by: Paolo Bonzini <>

cb9c377f 12/19/2012 09:31 am Paolo Bonzini

janitor: add guards to headers

Signed-off-by: Paolo Bonzini <>

7b1b5d19 12/19/2012 09:31 am Paolo Bonzini

qapi: move include files to include/qobject/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

022c62cb 12/19/2012 09:31 am Paolo Bonzini

exec: move include files to include/exec/

Signed-off-by: Paolo Bonzini <>

28ecbaee 12/19/2012 09:31 am Paolo Bonzini

ui: move files to ui/ and include/ui/

Signed-off-by: Paolo Bonzini <>

1422e32d 12/19/2012 09:31 am Paolo Bonzini

net: reorganize headers

Move public headers to include/net, and leave private headers in net/.
Put the virtio headers in include/net/tap.h, removing the multiple copies
that existed. Leave include/net/tap.h as the interface for NICs, and
net/tap_int.h as the interface for OS-specific parts of the tap backend....

f8fe7964 12/19/2012 09:29 am Paolo Bonzini

janitor: do not include qemu-char everywhere

Touching char/char.h basically causes the whole of QEMU to
be rebuilt. Avoid this, it is usually unnecessary.

Signed-off-by: Paolo Bonzini <>

090f7ac5 12/19/2012 09:29 am Paolo Bonzini

net: move Bluetooth stuff out of net.h

Signed-off-by: Paolo Bonzini <>

7fa22f2b 12/19/2012 09:29 am Paolo Bonzini

net: do not include net.h everywhere

Signed-off-by: Paolo Bonzini <>

077805fa 12/19/2012 09:29 am Paolo Bonzini

janitor: do not rely on indirect inclusions of or from qemu-char.h

Various header files rely on qemu-char.h including qemu-config.h or
main-loop.h, but they really do not need qemu-char.h at all (particularly
interesting is the case of the block layer!). Clean this up, and also...

525877c9 12/19/2012 09:29 am Paolo Bonzini

build: move rules from Makefile to */Makefile.objs

Signed-off-by: Paolo Bonzini <>

76cad711 12/19/2012 09:29 am Paolo Bonzini

build: kill libdis, move disassemblers to disas/

Signed-off-by: Paolo Bonzini <>

ad601177 12/19/2012 02:01 am Andreas Färber

alpha: Pass AlphaCPU array to Typhoon

Also store it in TyphoonCchip.

Signed-off-by: Andreas Färber <>
Acked-by: Richard Henderson <>

c9245853 12/19/2012 02:01 am Andreas Färber

target-alpha: Avoid leaking the alarm timer over reset

Move the timer from CPUAlphaState to AlphaCPU to avoid the pointer being
zero'ed once we implement reset. Would cause a segfault in
sys_helper.c:helper_set_alarm().

This also simplifies timer initialization in Typhoon....

914606d2 12/18/2012 11:41 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    configure: Earlier pkg-config probe
    vmmouse_reset(): remove minimal code duplication
    linux-user/syscall.c: remove wrong forward decl of setgroups()
    fix build error on ARM due to wrong glibc check...
5455a474 12/18/2012 11:41 pm Anthony Liguori

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

  • amit/master:
    virtio-serial-bus: assert port is non-null in remove_port()
    virtio-serial-bus: send_control_msg() should not deal with cpkts
    virtio-serial: delete timer if active during exit
    virtio-serial: allocate post_load only at load-time...
510981a0 12/18/2012 11:41 pm Anthony Liguori

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

  • spice/spice.v66:
    docs: add spice-port-fqdn.txt
    spice-qemu-char: register spicevmc ports during qemu_spice_init()
    spice-qemu-char: keep a list of spice chardev
    spice-qemu-char: add spiceport chardev...
5a6c7644 12/18/2012 06:38 pm Laszlo Ersek

vmmouse_reset(): remove minimal code duplication

Commit 069ab0eb added a vmmouse_disable() call to vmmouse_reset().
vmmouse_disable() resets the status already.

Signed-off-by: Laszlo Ersek <>
Signed-off-by: Stefan Hajnoczi <>

8c815fb3 12/18/2012 05:50 pm Peter Crosthwaite

arm_gic: Add cpu nr to Raised IRQ message

Add the relevant CPU nr to this debug message to make IRQ debugging more
informative.

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

d96fc51c 12/18/2012 05:49 pm Peter Crosthwaite

pflash_cfi01: qemu_log_mask "unimplemented" msg

This printf is informing the user of unimplemented functionality. It should be
re-directed to qemu_log(LOG_UNIMP, ...) accordingly.

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

ec9ea489 12/18/2012 05:49 pm Peter Crosthwaite

pflash_cfi0x: Send debug messages to stderr

These debug info messages should go to stderr rather than stdout.

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

8f603800 12/18/2012 05:49 pm Peter Crosthwaite

zynq_slcr: Compile time warning fixes.

Few warnings when compiled with debug printfs enabled. Fixed all.

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

91bdd1cf 12/18/2012 10:58 am Amit Shah

virtio-serial-bus: assert port is non-null in remove_port()

remove_port() is called from qdev's unplug callback, and we're certain
the port will be found in our list of ports. Adding an assert()
documents this.

This was flagged by Coverity, fix suggested by Markus....

4e28976e 12/18/2012 09:34 am Amit Shah

virtio-serial-bus: send_control_msg() should not deal with cpkts

Stuff the cpkt before calling send_control_msg(). This function should
not be concerned about contents of the buffer it receives.

A few code refactorings recently have made making this change easier...

6f991980 12/17/2012 07:56 pm Paolo Bonzini

Merge commit '1dd3a74d2ee2d873cde0b390b536e45420b3fe05' into HEAD

Signed-off-by: Paolo Bonzini <>

2f464b5a 12/17/2012 03:01 pm Gerd Hoffmann

qxl: save qemu_create_displaysurface_from result

Spotted by Coverity.

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

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

f1b8caf1 12/17/2012 01:37 pm Sander Eikelenboom

Fix compile errors when enabling Xen debug logging.

Signed-off-by: Sander Eikelenboom <>
Acked-by: Stefano Stabellini <>

044b99c6 12/17/2012 01:36 pm Stefano Stabellini

xen: fix trivial PCI passthrough MSI-X bug

We are currently passing entry->data as address parameter. Pass
entry->addr instead.

Signed-off-by: Stefano Stabellini <>
Tested-by: Sander Eikelenboom <>
Xen-devel: http://marc.info/?l=xen-devel&m=135515462613715

2c1d4d15 12/17/2012 01:36 pm Stefano Stabellini

xen: implement support for secondary consoles in the console backend

This patch corresponds to commit
840184a106bc24e745beda5c77e392f6cecd2bc9 from
git://xenbits.xensource.com/qemu-xen-unstable.git.

Signed-off-by: Stefano Stabellini <>

952deab6 12/17/2012 01:02 pm Michael S. Tsirkin

pci_bus: update comment

Don't ask everyone to desist from including this header,
simply recommend using accessors.

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

20599463 12/17/2012 01:02 pm Michael S. Tsirkin

pci_bus.h: tweak include guards

Now that header has been renamed, tweak include guards
to match.

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

d9fb5805 12/17/2012 01:02 pm Michael S. Tsirkin

Revert "pci: prepare makefiles for pci code reorganization"

This reverts commit 475d67c3bcd6ba9fef917b6e59d96ae69eb1a9b4.

Now that all users have been updated, we don't need the
makefile hack or the softlink anymore.

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

06aac7bd 12/17/2012 01:02 pm Michael S. Tsirkin

pci: rename pci_internals.h pci_bus.h

There are lots of external users of pci_internals.h,
apparently making it an internal interface only didn't
work out. Let's stop pretending it's an internal header.

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