Statistics
| Branch: | Revision:

root / hw @ 7e0a9247

# Date Author Comment
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 <>

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

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

a8a826a3 12/16/2012 10:35 am Blue Swirl

exec: refactor cpu_restore_state

Refactor common code around calls to cpu_restore_state().

tb_find_pc() has now no external users, make it static.

Signed-off-by: Blue Swirl <>

6d4e1892 12/15/2012 11:05 am Blue Swirl

Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf

  • 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf: (40 commits)
    pseries: Increase default NVRAM size
    target-ppc: Don't use hwaddr to represent hardware state
    PPC: e500: pci: Export slot2irq calculation...
bc210eb1 12/14/2012 10:56 pm Gerd Hoffmann

pixman: fix vnc tight png/jpeg support

This patch adds an x argument to qemu_pixman_linebuf_fill so it can
also be used to convert a partial scanline. Then fix tight + png/jpeg
encoding by passing in the x+y offset, so the data is read from the
correct screen location instead of the upper left corner....

a64ae610 12/14/2012 02:12 pm David Gibson

pseries: Increase default NVRAM size

If no image file for NVRAM is specified, the pseries machine currently
creates a 16K non-persistent NVRAM by default. This basically works, but
is not large enough for current firmware and guest kernels to create all...

68d1e1f5 12/14/2012 02:12 pm Alexander Graf

MSI-X: Fix endianness

The MSI-X vector tables are usually stored in little endian in memory,
so let's mark the accessors as such.

This fixes MSI-X on e500 for me.

Signed-off-by: Alexander Graf <>
Acked-by: Michael S. Tsirkin <>

dbe30e13 12/14/2012 02:12 pm Alexander Graf

openpic: fix minor coding style issues

This patch removes all remaining occurences of spaces before function
parameter indicating parenthesis.

Signed-off-by: Alexander Graf <>

76aec1f8 12/14/2012 02:12 pm Alexander Graf

openpic: Accelerate pending irq search

When we're done with one interrupt, we need to search for the next pending
interrupt in the queue. This search has grown quite big now that we have
more than 256 possible irq lines.

So let's memorize how many interrupts we have pending in our bitmaps, so...

eafb325f 12/14/2012 02:12 pm Alexander Graf

PPC: E500: PCI: Make first slot qdev settable

Today the first slot id in our e500 pci implementation is hardcoded to
0x11. Keep it there as default, but allow users to change the default to
a different id.

Signed-off-by: Alexander Graf <>

05f57d9d 12/14/2012 02:12 pm Alexander Graf

PPC: E500: PCI: Make IRQ calculation more generic

The IRQ line calculation is more or less hardcoded today. Instead, let's
write it as an algorithmic function that theoretically allows an arbitrary
number of PCI slots.

Signed-off-by: Alexander Graf <>

347dd79d 12/14/2012 02:12 pm Alexander Graf

PPC: E500: Generate dt pci irq map dynamically

Today we're hardcoding the PCI interrupt map in the e500 machine file.
Instead, let's write it dynamically so that different machine types
can have different slot properties.

Signed-off-by: Alexander Graf <>

492ec48d 12/14/2012 02:12 pm Alexander Graf

PPC: E500: Move PCI slot information into params

We have a params struct that allows us to expose differences between
e500 machine models. Include PCI slot information there, so we can have
different machines with different PCI slot topology.

Signed-off-by: Alexander Graf <>

3bb7e02a 12/14/2012 02:12 pm Alexander Graf

PPC: E500plat: Make a lot of PCI slots available

The ppce500 machine doesn't have to stick to hardware limitations,
as it's defined as being fully device tree based.

Thus we can change the initial PCI slot ID to 0x1 which gives us a
whopping 31 PCI devices we can support with this machine now!...

9e2c1298 12/14/2012 02:12 pm Alexander Graf

PPC: e500: pci: Export slot2irq calculation

We need the calculation method to get from a PCI slot ID to its respective
interrupt line twice. Once in the internal map function and once when
assembling the device tree.

So let's extract the calculation to a separate function that can be called...

35732cb4 12/14/2012 02:12 pm Alexander Graf

openpic: unify memory api subregions

The only difference between the "openpic" and "mpic" memory api subregion
descriptors is the endianness. Unify them as openpic accessors with explicit
endianness markers in their names.

Signed-off-by: Alexander Graf <>

e1d10851 12/14/2012 02:12 pm Alexander Graf

openpic: remove unused type variable

The openpic source irqs are carrying around a type indicator that
is never accessed by anything. Remove it.

Signed-off-by: Alexander Graf <>

1945dbc1 12/14/2012 02:12 pm Alexander Graf

openpic: convert simple reg operations to builtin bitops

The openpic code has its own bitmap code to access bits inside of a
bitmap. However, that is overkill when we simply want to check for a
bit inside of a uint32_t.

So instead, let's use normal bit masks and C builtin shifts and ands....

6d544ee8 12/14/2012 02:12 pm Alexander Graf

openpic: rename openpic_t to OpenPICState

Rename the openpic_t struct to OpenPICState, so it adheres better to
the current coding style rules.

Signed-off-by: Alexander Graf <>

5bac0701 12/14/2012 02:12 pm Alexander Graf

openpic: remove irq_out

The current openpic emulation contains half-ready code for bypass mode.
Remove it, so that when someone wants to finish it they can start from a
clean state.

Signed-off-by: Alexander Graf <>

d0b72631 12/14/2012 02:12 pm Alexander Graf

openpic: convert to qdev

This patch converts the OpenPIC device to qdev. Along the way it
renames the "openpic" target to "raven" and the "mpic" target to
"fsl_mpic_20", to better reflect the actual models they implement.

This way we have a generic OpenPIC device now that can handle...

dbbbfd60 12/14/2012 02:12 pm Alexander Graf

openpic: make brr1 model specific

Now that we can properly distinguish between openpic model differences,
let's move brr1 out of the raven code path.

Signed-off-by: Alexander Graf <>

732aa6ec 12/14/2012 02:12 pm Alexander Graf

openpic: add Shared MSI support

The OpenPIC allows MSI access through shared MSI registers. Implement
them for the MPC8544 MPIC, so we can support MSIs.

Signed-off-by: Alexander Graf <>

a911b7a9 12/14/2012 02:12 pm Alexander Graf

PPC: e500: Add MSI support

Now that our interrupt controller supports MSIs, let's expose that feature
to the guest through the device tree!

Signed-off-by: Alexander Graf <>

99750506 12/14/2012 02:12 pm Alexander Graf

PPC: e500: Declare pci bridge as bridge

The new PCI host bridge device needs to identify itself as PCI host bridge.
Declare it as such.

Signed-off-by: Alexander Graf <>

8b1853e7 12/14/2012 02:12 pm David Gibson

pseries: Don't allow TCE (iommu) tables to be registered with duplicate LIOBNs

The PAPR specification requires that every bus or device mediated by the
IOMMU have a unique Logical IO Bus Number (LIOBN). This patch adds a check
to enforce this, which will help catch errors in configuration earlier....

38898d7e 12/14/2012 02:12 pm Alexander Graf

openpic: Remove unused code

The openpic code had a few WIP bits left that nobody reanimated within
the last few years. Remove that code.

Signed-off-by: Alexander Graf <>
Acked-by: Hervé Poussineau <>

cdbb912a 12/14/2012 02:12 pm Alexander Graf

mpic: Unify numbering scheme

MPIC interrupt numbers in Linux (device tree) and in QEMU are different,
because QEMU takes the sparseness of the IRQ number space into account.

Remove that cleverness and instead assume a flat number space. This makes
the code easier to understand, because we are actually aligned with Linux...

b9b2aaa3 12/14/2012 02:12 pm Alexander Graf

openpic: update to proper memory api

The openpic code was still using the old mmio memory api. Convert it to
be a generic memory api user and clean up some code that becomes redundant
that way.

Signed-off-by: Alexander Graf <>

a285f1ca 12/14/2012 02:12 pm Alexander Graf

openpic: combine mpic and openpic src handlers

The MPIC source irq handler suddenly became identical to the standard
OpenPIC source irq handler. Combine them into the same function.

Signed-off-by: Alexander Graf <>

780d16b7 12/14/2012 02:12 pm Alexander Graf

openpic: Convert subregions to memory api

The "openpic" controller is currently using one big region and does
subregion dispatching manually. Move this to the memory api.

Signed-off-by: Alexander Graf <>

5861a338 12/14/2012 02:12 pm Alexander Graf

openpic: combine mpic and openpic irq raise functions

The IRQ raise mechanisms of the OpenPIC and MPIC controllers is identical,
just that the MPIC one can also raise critical interrupts.

Combine those two and check for critical raise capability during runtime....

c38c0b8a 12/14/2012 02:12 pm Alexander Graf

openpic: merge mpic and openpic timer handling

The openpic and mpic timer handling code is basically the same.
Merge them.

Signed-off-by: Alexander Graf <>

825463b3 12/14/2012 02:12 pm Alexander Graf

openpic: combine openpic and mpic reset functions

The openpic and mpic reset handlers are almost identical. Combine
them and extract the differences into state variables.

Signed-off-by: Alexander Graf <>

4aac82c3 12/14/2012 02:12 pm Michael Ellerman

pseries: Return the token when we register an RTAS call

The kernel will soon be able to service some RTAS calls. However the
choice of tokens will still be up to userspace. To support this have
spapr_rtas_register() return the token that is allocated for an...

d36b66f7 12/14/2012 02:12 pm Ben Herrenschmidt

pseries: Allow RTAS tokens without a qemu handler

Kernel-based RTAS calls will not have a qemu handler, but will
still be registered in qemu in order to be assigned a token
number and appear in the device-tree.

Let's test for the name being NULL rather than the handler...

500efa23 12/14/2012 02:12 pm David Gibson

pseries: Add tracepoints to the XICS interrupt controller

This patch adds tracing / debugging calls to the XICS interrupt controller
implementation used on the pseries machine.

Signed-off-by: Ben Herrenschmidt <>
Signed-off-by: David Gibson <>...

22a2611c 12/14/2012 02:12 pm David Gibson

pseries: Split xics irq configuration from state information

Currently the XICS irq controller code has a per-irq state structure which
amongst other things includes whether the interrupt is level or message
triggered - this is configured by the platform code, and is not directly...

639e8102 12/14/2012 02:12 pm David Gibson

pseries: Implement PAPR NVRAM

The PAPR specification requires a certain amount of NVRAM, accessed via
RTAS, which we don't currently implement in qemu. This patch addresses
this deficiency, implementing the NVRAM as a VIO device, with some glue to
instantiate it automatically based on a machine option....

dffb1dc2 12/14/2012 02:12 pm Bharat Bhushan

e500: Adding CCSR memory region

All devices are also placed under CCSR memory region.
The CCSR memory region is exported to pci device. The MSI interrupt
generation is the main reason to export the CCSR region to PCI device.
This put the requirement to move mpic under CCSR region, but logically...

3eddc1be 12/14/2012 02:12 pm Bharat Bhushan

Adding BAR0 for e500 PCI controller

PCI Root complex have TYPE-1 configuration header while PCI endpoint
have type-0 configuration header. The type-1 configuration header have
a BAR (BAR0). In Freescale PCI controller BAR0 is used for mapping pci
address space to CCSR address space. This can used for 2 purposes: 1)...

044f4c8b 12/14/2012 02:12 pm David Gibson

pseries: Fix incorrect initialization of interrupt controller

Currently in the reset code for the XICS interrupt controller, we
initialize the pending_priority field to 0 (most favored, by XICS
convention). This is incorrect, since there is no pending interrupt, it...

bf3bc4c4 12/14/2012 02:12 pm Ben Herrenschmidt

pseries: Use #define for XICS base irq number

Currently the lowest "real" irq number for the XICS irq controller (as
opposed to numbers reserved for IPIs and other special purposes) is
hard coded as 16 in two places - in xics_system_init() and in spapr.c....

e376a788 12/13/2012 10:32 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

  • kwolf/for-anthony: (43 commits)
    qcow2: Factor out handle_dependencies()
    qcow2: Execute run_dependent_requests() without lock
    qcow2: Enable dirty flag in qcow2_alloc_cluster_link_l2
    qcow2: Allocate l2meta only for cluster allocations...
df933007 12/13/2012 07:41 pm Anthony Liguori

Merge remote-tracking branch 'pmaydell/arm-devs.next' into staging

  • pmaydell/arm-devs.next:
    hw/ds1338.c: Fix handling of DAY (wday) register.
    hw/ds1338.c: Implement support for the control register.
    hw/ds1338.c: Ensure state is properly initialized....
ed3d37d2 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Ensure state is properly initialized.

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

996e91f0 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Implement support for the control register.

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

871edc5f 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Fix handling of DAY (wday) register.

Per the datasheet, the DAY (wday) register is user defined. Implement this.

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

580f5c00 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Correct bug in conversion to BCD.

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

95c93615 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Add definitions for various flags in the RTC registers.

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

59dda8e0 12/13/2012 04:05 pm Antoine Mathys

hw/ds1338.c: Fix handling of HOURS register.

Per the datasheet, the mapping between 12 and 24 hours modes is:
0 <-> 12 PM
1-12 <-> 1-12 AM
13-23 <-> 1-11 PM

Signed-off-by: Antoine Mathys <>
Signed-off-by: Peter Maydell <>

2e575a86 12/13/2012 12:31 pm Amit Shah

virtio-serial: move active ports loading to separate function

The virtio_serial_load() function became too big, split the code that
gets the port info from the source into a separate function.

Signed-off-by: Amit Shah <>

bdb917bf 12/13/2012 12:31 pm Amit Shah

virtio-serial: allocate post_load only at load-time

This saves us a few bytes in the VirtIOSerial struct. Not a big
savings, but since the entire structure is used only during a short
while after migration, it's helpful to keep the struct cleaner and
smaller....

a75bf146 12/13/2012 12:31 pm Amit Shah

virtio-serial: delete timer if active during exit

The post_load timer was being freed, but not deleted. This could cause
problems when the timer is armed, but the device is hot-unplugged before
the callback is executed.

Signed-off-by: Amit Shah <>

c3587ca1 12/13/2012 12:26 pm Amit Shah

virtio-serial: use uint32_t to count ports

Signed-off-by: Amit Shah <>

a7f3d65b 12/13/2012 12:17 pm Pavel Hrdina

atapi: reset cdrom tray statuses on ide_reset

Tray statuses should be also reseted. Some guests may lock the tray
and after reset before any kernel is loaded the tray should be unlocked.

Also if you reset the real computer the tray is closed. We should
do the same in qemu....

e478b448 12/11/2012 05:35 pm Dong Xu Wang

use qemu_opts_create_nofail

We will use qemu_opts_create_nofail function, it can make code
more readable.

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Kevin Wolf <>

97331270 12/11/2012 02:54 pm Jean-Christophe DUBOIS

exynos4210/mct: Avoid infinite loop on non incremental timers

Check for a 0 "distance" value to avoid infinite loop when the
expired FCR timer was not programed with auto-increment.

With this change the behavior is coherent with the same type
of code in the exynos4210_gfrc_restart() function in the same...

f47b48fb 12/11/2012 01:30 pm Daniel Sangorrin

hw/arm_gic: fix target CPUs affected by set enable/pending ops

Fix a bug on the ARM GIC model where interrupts are not
set pending on the correct target CPUs when they are
triggered by writes to the Interrupt Set Enable or
Set Pending registers.

Signed-off-by: Daniel Sangorrin <>...

bf471f79 12/11/2012 01:30 pm Peter Maydell

hw/arm_boot, exynos4210, highbank: Fix secondary boot GIC init

Fix the code in the secondary CPU boot stubs so that it correctly
initialises the GIC rather than relying on bugs or implementation
dependent aspects of the QEMU GIC implementation: * set the GIC_PMR.Priority field to all-ones, so that all...

cad065f1 12/11/2012 01:30 pm Peter Maydell

hw/arm_gic: Fix comparison with priority mask register

The GIC spec states that only interrupts with higher priority
than the value in the GICC_PMR priority mask register are
passed through to the processor. We were incorrectly allowing
through interrupts with a priority equal to the specified...

ee3f0956 12/11/2012 01:30 pm Peter Maydell

hw/arm_gic_common: Correct GICC_PMR reset value for newer GICs

The GIC architecture specification for v1 and v2 GICs (as found
on the Cortex-A9 and newer) states that the GICC_PMR reset value
is zero; this differs from the 0xf0 reset value used on 11MPCore....

79f5d67e 12/11/2012 01:30 pm walimis

xilinx_zynq: Add one variable to avoid overwriting QSPI bus

commit 7b482bcf xilinx_zynq: added QSPI controller

Adds one QSPI controller, which has two spi buses, one is for
spi0, and another is for spi1. But when initializing the spi1
bus, "dev" has been overwrited by the ssi_create_slave_no_init() function,...

2d0d2837 12/11/2012 12:05 pm Christian Borntraeger

Support default block interfaces per QEMUMachine

There are QEMUMachines that have neither IF_IDE nor IF_SCSI as a
default/standard interface to their block devices / drives. Therefore,
this patch introduces a new field default_block_type per QEMUMachine
struct. The prior use_scsi field becomes thereby obsolete and is...

d567e62f 12/11/2012 12:04 pm David Gibson

virtio-blk: Remove duplicate property definition

For the virtio-blk device (via virtio-pci) the property "config-wce" is
defined in two places. First, it's defined from the
DEFINE_VIRTIO_BLK_FEATURES macro, second it's defined directly in
virtio-pci, just two lines above the call to that macro....

d281084d 12/10/2012 08:30 pm Alex Williamson

vfio-pci: Don't use kvm_irqchip_in_kernel

kvm_irqchip_in_kernel() has an architecture specific meaning, so
we shouldn't be using it to determine whether to enabled KVM INTx
bypass. kvm_irqfds_enabled() seems most appropriate. Also use this
to protect our other call to kvm_check_extension() as that explodes...

1c97e303 12/10/2012 04:35 pm Anthony Liguori

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

  • afaerber/qom-cpu:
    target-i386: Postpone cpuid_level update to realize time
    target-i386: Use define for cpuid vendor string size
    target-i386: Separate feature string parsing from CPU model lookup...
7c12fd9b 12/10/2012 04:34 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path
    qemu-options: Fix space at EOL
    Fix spelling in comments and documentation
    Clean up pci_drive_hot_add()'s use of BlockInterfaceType...
8385b173 12/10/2012 04:33 pm Anthony Liguori

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

  • kraxel/acpi.1:
    acpi: drop debug port
    q35: update lpc pci config space according to configured devices
    apci: switch piix4 pci hotplug to memory api
    acpi: remove acpi_gpe_blk
    apci: switch piix4 gpe to memory api...
c62adbee 12/10/2012 04:31 pm Anthony Liguori

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

  • kraxel/usb.74:
    usb-tablet: Allow connecting to ehci
    ehci: Lower timer freq when the periodic schedule is idle
    usb: Allow overriding of usb_desc at the device level
    usb: Don't allow USB_RET_ASYNC for interrupt packets...
536b558f 12/08/2012 07:50 pm Blue Swirl

Merge branch 'master' of git.qemu-project.org:/pub/git/qemu

  • 'master' of git.qemu-project.org:/pub/git/qemu:
    target-mips: Fix incorrect shift for SHILO and SHILOV
    target-mips: Fix incorrect code and test for INSV
    xilinx_uartlite: Accept input after rx FIFO pop...
036f0f83 12/07/2012 01:34 pm Peter Crosthwaite

arm: a9mpcore: remove un-used ptimer_iomem field

I'm guessing this is a hangover from a previous coreification of the mptimer
sub-module. This field is completely unused - removed.

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

4dbd84e2 12/07/2012 01:34 pm Markus Armbruster

Clean up pci_drive_hot_add()'s use of BlockInterfaceType

pci_drive_hot_add() parameter type has the wrong type: int instead of
BlockInterfaceType. It's actually redundant, so we can just drop it.

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

993d46ce 12/07/2012 01:34 pm Stefan Weil

Fix spelling in comments and documentation

These spelling bugs were found by codespell:

supressing -> suppressing
transfered -> transferred

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

654598c9 12/07/2012 01:34 pm Markus Armbruster

pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path

Harmless, because we the error inevitably leads to another, fatal one
in pc_system_flash_init(): PC system firmware (pflash) not available.
Fix it anyway.

Signed-off-by: Markus Armbruster <>...

038d3d44 12/07/2012 01:34 pm Peter Crosthwaite

sd: Send debug printfery to stderr not stdout

Some debug printfs for SD are coming up in stdout. Redirected them to stderr
instead.

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

8367a14f 12/07/2012 01:34 pm Stefan Weil

s390x: Spelling fixes (endianess -> endianness, occured -> occurred)

Replace also "write into" by "write to".

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

394e1bb7 12/06/2012 10:17 am Eduardo Habkost

Create qemu-types.h for struct typedefs

Instead of keeping all those struct typedefs in qemu-common.h, move it
to a header that can be safely included by other headers, containing
only the struct typedefs and not pulling in other dependencies.

Also, move some of the qdev-core.h typedefs to the new file, too, so...

23e3fbec 12/06/2012 10:17 am Eduardo Habkost

qdev: qdev_create(): use error_report() instead of hw_error()

hw_error() is specific for fatal hardware emulation errors, not for
internal errors related to the qdev object/class abstraction or object
initialization.

Replace it with an error_report() call, followed by abort()....

859cc10d 12/05/2012 10:20 am Peter Crosthwaite

xilinx_uartlite: suppress "cannot receive message"

This message is not an error condition, its just informing the user that
the device is corking the uart traffic to not drop characters.

Reported-by: Jason Wu <>
Signed-off-by: Peter Crosthwaite <>...

80625b97 12/05/2012 10:20 am Peter Crosthwaite

xilinx_uartlite: Accept input after rx FIFO pop

The device return false from the can receive function when the FIFO is
full. This mean the device should check for buffered input whenever a byte is
popped from the FIFO.

Reported-by: Jason Wu <>...