Statistics
| Branch: | Revision:

root @ b0eb8449

# Date Author Comment
b0eb8449 11/02/2011 02:32 am Anthony Liguori

Revert "virtio: Add PCI memory BAR in addition to PIO BAR"

This reverts commit 46d95bfec7f9429d5228078219413d7e33496d65.

8aceefd7 11/02/2011 12:29 am Anthony Liguori

Merge remote-tracking branch 'afaerber/cocoa-for-upstream' into staging

ef26ee0e 11/02/2011 12:16 am malc

Merge branch 'master' of git://git.qemu.org/qemu

dd7b25b5 11/02/2011 12:14 am malc

Merge branch 'master' of git://git.qemu.org/qemu

0756e71c 11/02/2011 12:12 am Richard Henderson

tcg: Fix whitespace in tcg-op.h.

Removing the only tabs in the file.

Signed-off-by: Richard Henderson <>
Signed-off-by: malc <>

2f98c9db 11/02/2011 12:12 am Richard Henderson

tcg: Fix regression in tcg_gen_deposit_i64.

The error being caused by the failure to copy the other half of
the input to the output after having narrowed the deposit operation.

Signed-off-by: Richard Henderson <>
Signed-off-by: malc <>

488a1a5d 11/01/2011 11:52 pm Jan Kiszka

pcnet: Move BCR defines to header

This moves BCR defines to the common header and immediately makes use of
them to add BCR_APROMWE, replacing the open-coded write check in
pcnet_aprom_writeb.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

7ba79741 11/01/2011 11:52 pm Jan Kiszka

pcnet-pci: Fix PIO word access to PROM

Implement the various IO access widths according to the spec. This
specifically unbreaks word and dword access to the PROM area that is
mapped into IO space. It also drops redundant upper limit checks and
spurious "return void"....

e1c2008a 11/01/2011 11:52 pm Jan Kiszka

pcnet: Add link state support

Update lnkst on link state changes so that guests can obtain this
information via reading back the LED output pin. Works for Linux but
not for guests that depend on the missing PHY.

Signed-off-by: Jan Kiszka <>...

68d55358 11/01/2011 11:52 pm David Gibson

usb-ehci: Use PCI DMA stub functions

This updates the usb-ehci device emulation to use the explicit PCI DMA
wrapper to initialize its scatter/gathjer structure. This means this
driver should not need further changes when the sglist interface is
extended to support IOMMUs....

fff23ee9 11/01/2011 11:52 pm David Gibson

usb-uhci: Use PCI DMA stub functions

This updates the usb-uhci device emulation to use the explicit PCI DMA
wrapper to initialize its scatter/gathjer structure. This means this
driver should not need further changes when the sglist interface is
extended to support IOMMUs....

46d95bfe 11/01/2011 11:52 pm David Gibson

virtio: Add PCI memory BAR in addition to PIO BAR

Currently, virtio devices are usually presented to the guest as an
emulated PCI device, virtio_pci. Although the actual IO operations
are done through system memory, the configuration of the virtio device...

f809c0d6 11/01/2011 11:52 pm Peter Maydell

configure: Suppress messages from pkg_config probe for check

Suppress confusing messages from pkg_config when probing for
'check' by sending them to /dev/null as we do with other
similar probes.

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

443916d1 11/01/2011 11:52 pm Stefan Berger

Move filedescriptor parsing code from net.c into qemu_parse_fd()

Move the parsing of a filedescriptor into a common function
qemu_parse_fd() so others can use it as well. Have net.c call this
function.

v2:
- moving qemu_parse_fd into cutils.c

Signed-off-by: Stefan Berger <>...

22844510 11/01/2011 11:52 pm Avi Kivity

event_notifier: move to top-level directory

Has no business in hw/.

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

816f8925 11/01/2011 11:52 pm Wayne Xia

Sort the help info shown in monitor at runtime

This patch would try sort the command list in monitor at runtime. As a result,
command help and help info would show a more friendly sorted command list.
For eg:
(qemu)help
acl_add
acl_policy
acl_remove
acl_reset...

93f43c48 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

ac97: Use PCI DMA stub functions

This updates the ac97 device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>
Signed-off-by: David Gibson <>...

3204db98 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

es1370: Use PCI DMA stub functions

This updates the es1370 device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>
Signed-off-by: David Gibson <>...

62ecbd35 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

e1000: Use PCI DMA stub functions

This updates the e1000 device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>
Signed-off-by: David Gibson <>...

9ba4524c 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

lsi53c895a: Use PCI DMA stub functions

This updates the lsi53c895a device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>...

14fecf26 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

pcnet-pci: Use PCI DMA stub functions

This updates the pcnet-pci device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>...

fa0ce55c 11/01/2011 11:52 pm David Gibson

intel-hda: Use PCI DMA stub functions

This updates the intel-hda device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

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

552908fe 11/01/2011 11:52 pm David Gibson

PCI IDE: Use PCI DMA stub functions

This updates the PCI IDE device emulation to use the explicit PCI DMA
wrapper to initialize its scatter/gathjer structure. This means this
driver should not need further changes when the sglist interface is
extended to support IOMMUs....

ec174575 11/01/2011 11:52 pm David Gibson

Add stub functions for PCI device models to do PCI DMA

This patch adds functions to pci.[ch] to perform PCI DMA operations.
At present, these are just stubs which perform directly cpu physical
memory accesses. Stubs are included which are analogous to
cpu_physical_memory_{read,write}(), the stX_phys() and ldX_phys()...

3ada003a 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

rtl8139: Use PCI DMA stub functions

This updates the rtl8139 device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>
Signed-off-by: David Gibson <>...

16ef60c9 11/01/2011 11:52 pm Eduard - Gabriel Munteanu

eepro100: Use PCI DMA stub functions

This updates the eepro100 device emulation to use the explicit PCI DMA
functions, instead of directly calling physical memory access functions.

Signed-off-by: Eduard - Gabriel Munteanu <>
Signed-off-by: David Gibson <>...

3a26360d 11/01/2011 11:52 pm Anthony Liguori

spapr: fix build

Signed-off-by: Anthony Liguori <>

db9eae1c 11/01/2011 11:52 pm Xu He Jie

kvm_init didn't set return value after create vm failed

And kvm_ioctl(s, KVM_CREATE_VM, 0)'s return value can be < -1,
so change the check of vmfd at label 'err'.

Signed-off-by: Xu He Jie <>
Signed-off-by: Anthony Liguori <>

fa39a30f 11/01/2011 11:52 pm Juan Quintela

savevm: qemu_fille_buffer() used to return one error for reads of size 0.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e589728b 11/01/2011 11:52 pm Paolo Bonzini

checkpatch: remove rule on non-indented labels

There are 508 non-indented (non-default) labels, and 511 that are
indented. So the rule is debatable at least. Actually, in the
common case of labels at the outermost scope, there is really just
one place where to put the label, so the rule is just wrong IMHO....

ae878b17 11/01/2011 11:52 pm Stefan Weil

ui/vnc: Fix use of free() instead of g_free()

Please note that mechlist still uses malloc / strdup / free.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

7f540ab5 11/01/2011 11:52 pm Christophe Fergeau

ps2: migrate ledstate

Make the ps2 device track its ledstate so that we can migrate it.
Otherwise it gets lost across migration, and spice-server gets
confused about the actual keyboard state and sends bogus
caps/scroll/num key events. This fixes RH bug #729294...

d9d1055e 11/01/2011 11:52 pm David Gibson

Define DMA address and direction types

As a preliminary to adding more extensive DMA and IOMMU infrastructure
support into qemu, this patch defines a dma_addr_t for storing DMA bus
addresses and a DMADirection enum which describes whether a DMA is
from an external device to main memory or from main memory to an...

d3231181 11/01/2011 11:52 pm David Gibson

Use dma_addr_t type for scatter/gather code

This patch uses the newly created dma_addr_t type throughout the
scatter/gather handling code in dma-helpers.c whenever we need to
represent a dma bus address. This makes a better distinction as to
what is a bus address and what is a cpu physical address. Since we...

7f762366 11/01/2011 10:59 pm Blue Swirl

Revert "PPC: Fail configure when libfdt is not available"

This reverts commit f90a9d02401eeeec18a122b61ccccb91244f321c.

Signed-off-by: Blue Swirl <>

e927dab1 11/01/2011 10:57 pm Blue Swirl

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

  • 'ppc-next' of git://repo.or.cz/qemu/agraf: (24 commits)
    pseries: Add partial support for PCI
    ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate
    pseries: Allow writes to KVM accelerated TCE table...
351f1bf6 11/01/2011 09:41 pm Andreas Färber

MAINTAINERS: Add Cocoa maintainer

Degrade cocoa.m from Maintained to Odd Fixes.

Signed-off-by: Andreas Färber <>
Cc: Anthony Liguori <>

db529aab 11/01/2011 09:41 pm Andreas Färber

vl.c: Guard against GThread double-initialization

GThread-ERROR **: GThread system may only be initialized once.
aborting...

Making the g_thread_init() call in vl.c conditional resolves an abort on
Mac OS X, where coroutine-gthread.c seems to call it before vl.c....

13766eb1 11/01/2011 09:41 pm Andreas Färber

cocoa: Close sheet after image file selection

If no disk image is specified, the Cocoa frontend displays a modal sheet
to let the user select an image file to boot from.

This sheet is never closed and it permanently obscures the emulator window.

Close it after obtaining the file name in case the user did select a file....

2ff64581 11/01/2011 08:09 pm Anthony Liguori

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

0ffcb2ca 11/01/2011 08:08 pm Anthony Liguori

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

110fc086 11/01/2011 08:06 pm Anthony Liguori

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

59623530 11/01/2011 08:06 pm Anthony Liguori

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

695833bc 11/01/2011 06:50 pm Gerd Hoffmann

add test-coroutine to checks

There is a "test-coroutine" which isn't in the list.
Add it so "make check" runs it too.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

aab22936 11/01/2011 06:50 pm Gerd Hoffmann

migration: flush migration data to disk.

This patch increases robustness when migrating to a file with
two little changes:

(1) Before closing the migration file handle checks if it happens to be
a regular file and if so it issues a fsync. This way the data is...
90ea59fe 11/01/2011 06:50 pm Max Filippov

opencores_eth: fix RX path: FCS, padding and TL

OpenCores 10/100 Mbps Ethernet MAC specification doesn't clearly state
whether FCS is counted in the RX frame length or not. Looks like it is.
Append zero FCS to the received frames.

Get rid of big static buffer for RX frame padding, optimize it for the...

fffbeb75 11/01/2011 06:50 pm Gerd Hoffmann

move checks to separate variable

Create a new CHECKS variable. Put the checks there instead
of adding them to the TOOLS variable.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

ea7f7804 11/01/2011 06:50 pm Gerd Hoffmann

add "make check" target

Add some Makefile glue so we have a simple "make check"
to run the unit tests.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

4f39d27f 11/01/2011 06:50 pm David Gibson

Add qapi related generated files to .gitignore

.gitignore already lists the qapi-generated subdirectory which includes a
number of files generated during build. However, there are some additional
files generated by the qapi build which go in the top level directory....

1fdc11c3 11/01/2011 06:50 pm Luiz Capitulino

Fix segfault on migration completion

A simple migration reproduces it:

1. Start the source VM with:

  1. qemu [...] -S

2. Start the destination VM with:

  1. qemu <source VM cmd-line> -incoming tcp:0:4444

3. In the source VM:

(qemu) migrate -d tcp:0:4444...
90647853 11/01/2011 06:50 pm Peter Maydell

ia64-dis.c: Undefine ABS to avoid clash with glib

Undefine ABS to avoid a clash with the macro that glib.h
helpfully defines for us (and a resulting build failure
on ia64 hosts).

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

25b651be 11/01/2011 06:50 pm Gerd Hoffmann

Probe for libcheck by default.

Probe for libcheck and build checks (if found) by default.
Can be explicitly disabled using --disable-check-utests.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

9477c87e 11/01/2011 06:50 pm Pavel Borzenkov

fw_cfg: Use g_file_get_contents instead of multiple fread() calls

Reviewed-by: Peter Maydell <>
Signed-off-by: Pavel Borzenkov <>
Signed-off-by: Anthony Liguori <>

463ce4ae 11/01/2011 06:50 pm Eric Sunshine

qemu-barrier: Fix build failure on PowerPC Mac OS X

qemu-barrier.h tests if macro powerpc is defined, however, the
preprocessor on PowerPC Mac OS X defines only POWERPC, not
powerpc. Resolve by testing instead for qemu-provided _ARCH_PPC.

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

3e837b2c 11/01/2011 05:58 pm Alex Williamson

Error check find_ram_offset

Spotted via code review, we initialize offset to 0 to avoid a
compiler warning, but in the unlikely case that offset is
never set to something else, we should abort instead of return
a value that will almost certainly cause problems....

754fd932 11/01/2011 05:58 pm Peter Maydell

qemu-tls.h: Add abstraction layer for TLS variables

Add an abstraction layer for defining and using thread-local
variables. For the moment this is implemented only for Linux,
which means they can only be used in restricted circumstances.
The abstraction layer allows us to add POSIX and Win32 support...

8a5f7b03 11/01/2011 05:58 pm Paolo Bonzini

darwin-user/main.c: Drop unused cpu_single_env definition

Drop the cpu_single_env definition as it is unused.

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

b3c4bbe5 11/01/2011 05:58 pm Paolo Bonzini

Make cpu_single_env thread-local

Make cpu_single_env thread-local. This fixes a regression
in handling of multi-threaded programs in linux-user mode
(bug 823902).

Signed-off-by: Paolo Bonzini <>
[Peter Maydell: rename tls_cpu_single_env to cpu_single_env]...

bdb7ca67 11/01/2011 05:58 pm Jan Kiszka

Simplify cpu_exec_all to tcg_exec_all

After the removal of the non-threaded mode cpu_exec_all is now only used
by TCG. Refactor it accordingly, also dropping its unused return value.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

39fba3ad 11/01/2011 05:38 pm Gerd Hoffmann

usb-host: fix host close

The whole usb_host_close() function is skipped in case the device is not
in attached state. This is wrong though, only then usb_device_detach()
must be skipped, all other cleanup (especially device reset and closing
the file handle) still needs to be done. There are code paths where...

db80358a 11/01/2011 05:38 pm Roy Tam

usb: change VID/PID for usb-hub and usb-msd to prevent conflict

Some USB drivers, for example USBASPI.SYS, will skip different type of
device which has same VID/PID. The following patch helps preventing
usb-msd being skipped by the driver.

Signed-off-by: Roy Tam <>...

ec38d398 11/01/2011 05:04 pm Andreas Färber

MAINTAINERS: Add PReP maintainer

Officially take on maintainership for PReP and upgrade to Odd Fixes.

Acked-by: Alexander Graf <>
Signed-off-by: Andreas Färber <>
Cc: Alexander Graf <>
Cc: Hervé Poussineau <>...

c2a8238a 11/01/2011 05:04 pm Stefan Weil

Support running QEMU on Valgrind

Valgrind is a tool which can automatically detect many kinds of bugs.

Running QEMU on Valgrind with x86_64 hosts was not possible because
Valgrind aborts when memalign is called with an alignment larger than
1 MiB. QEMU normally uses 2 MiB on Linux x86_64....

454e202d 11/01/2011 04:12 pm Mark Wu

trace: Add wildcard trace event support

A basic wildcard matching is supported in both the monitor command
"trace-event" and the events list file. That means you can enable/disable
the events having a common prefix in a batch. For example, virtio-blk trace...

4a33a9ea 11/01/2011 02:40 pm Gerd Hoffmann

usb-hub: wakeup on attach

When attaching a new device we must send a wakeup request to the root
hub, otherwise the guest will not notice the new device in case the
usb hub is suspended.

Signed-off-by: Gerd Hoffmann <>

54825d2e 11/01/2011 02:24 pm Alon Levy

qxl: create slots on post_load in vga state

RHBZ 740547

If we migrate when the device is in vga state the guest
still believes the slots are created, and will cause operations
that reference the slots, causing a "panic: virtual address out of range"
on the first of them. Easy to see by migrating in vga mode with...

0e2487bd 11/01/2011 01:11 pm Gerd Hoffmann

qxl: stride fixup

spice uses negative stride value to signal the bitmap is upside down.
The qxl renderer (used for scl, vnc and screenshots) wants a positive
value because it is easier to work with. The positive value is then
stored in the very same variable, which has the drawback that the...

a053f1b1 11/01/2011 01:11 pm Gerd Hoffmann

qxl: make sure we continue to run with a shared buffer

The qxl renderer works only with a shared displaysurface. So better
make sure we actually have one and restore it when needed.

Signed-off-by: Gerd Hoffmann <>

93a7320e 11/01/2011 08:23 am Luiz Capitulino

net: tap-linux: Fix unhelpful error message

I'm getting:

could not configure /dev/net/tun (tap%d): Operation not permitted

When the ioctl() fails, ifr.ifr_name will most likely not be overwritten.
So we better only use it when ifname contains a string....

d0bc5bc3 11/01/2011 08:23 am Markus Armbruster

sysbus: Supply missing va_end()

C99 7.15.1: Each invocation of the va_start and va_copy macros shall
be matched by a corresponding invocation of the va_end macro in the
same function.

Spotted by Coverity. Harmless on the (common) systems where va_end()...

acf8394e 11/01/2011 08:23 am Stefan Hajnoczi

qapi: fix typos in documentation JSON examples

Signed-off-by: Stefan Hajnoczi <>

0ce6a434 11/01/2011 08:23 am Markus Armbruster

acl: Fix use after free in qemu_acl_reset()

Reproducer:

$ MALLOC_PERTURB_=234 qemu-system-x86_64 -vnc :0,acl,sasl [...]
QEMU 0.15.50 monitor - type 'help' for more information
(qemu) acl_add vnc.username fred allow
acl: added rule at position 1...
ff74c5a9 10/31/2011 10:05 pm Anthony Liguori

Merge remote-tracking branch 'riku/linux-user-for-upstream' into staging

8494a397 10/31/2011 06:09 pm Anthony Liguori

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

Conflicts:
block/vmdk.c

d439b79d 10/31/2011 06:06 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/for-upstream-7' into staging

96b3d73f 10/31/2011 06:02 pm Anthony Liguori

Merge remote-tracking branch 'qmp/queue/qmp' into staging

Conflicts:
ui/spice-core.c

549f808b 10/31/2011 06:00 pm Anthony Liguori

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

3a069ff1 10/31/2011 05:23 pm Anthony Liguori

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

acba3914 10/31/2011 05:14 pm Anthony Liguori

Merge remote-tracking branch 'alon/pull-libcacard-assert' into staging

eca968d0 10/31/2011 05:12 pm Anthony Liguori

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

9db221ae 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Add synthetic file system support using 9p

This patch create a synthetic file system with mount tag
v_synth when -virtfs_synth command line option is specified
in qemu. The synthetic file system can be mounted in guest
using 9p using the below command line...

5f7d05ec 10/31/2011 09:04 am Harsh Prateek Bora

qemu-queue: Introduce QLIST_INSERT_HEAD_RCU and dummy RCU wrappers.

SynthFS needs a QLIST_INSERT_HEAD_RCU to make sure list instructions are not
re-ordered and therefore avoiding a crash. There may be parallel readers which
should be allowed for lock-free access and this variant allows us to get rid...

2583e443 10/31/2011 09:04 am Harsh Prateek Bora

hw/9pfs: Replace rwlocks with RCU variants of interfaces.

Use QLIST_INSERT_HEAD_RCU and rcu_read_lock/unlock instead of rwlocks.
Use v9fs_synth_mutex as a write-only mutex to handle concurrent writers.

Signed-off-by: Harsh Prateek Bora <>...

2c74c2cb 10/31/2011 09:04 am M. Mohan Kumar

hw/9pfs: Read-only support for 9p export

A new fsdev parameter "readonly" is introduced to control accessing 9p export.
"readonly" can be used to specify the access type. By default "rw" access
is given to 9p export.

Signed-off-by: M. Mohan Kumar <>...

cc720ddb 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Abstract open state of fid to V9fsFidOpenState

To implement synthetic file system in Qemu we may not really
require file descriptor and Dir *. Make generic code use
V9fsFidOpenState instead.

Signed-off-by: Aneesh Kumar K.V <>

f02b77c9 10/31/2011 09:04 am M. Mohan Kumar

qemu: Add opt_set_bool functionality

Signed-off-by: M. Mohan Kumar <>
Signed-off-by: Aneesh Kumar K.V <>

17b1971f 10/31/2011 09:04 am Aneesh Kumar K.V

hw/9pfs: Fix error handling in local_mknod

Update local_chown to remove unnecessary if loop

Signed-off-by: Aneesh Kumar K.V <>

15329e83 10/31/2011 09:04 am Aneesh Kumar K.V

configure: Update configure so that open_by_handle_at check returns correct value

According to David Gibson for some compiler/libc combinations, open_by_handle_at
test in configure isn't quite right: because the file_handle pointer is never
dereferenced, gcc doesn't complain even if it is undefined. Change the test...

03a0e944 10/31/2011 06:40 am Peter Maydell

hw/vexpress.c, hw/realview.c: Add PL041 to VExpress, Realview boards

Instantiate the PL041 audio on the Versatile Express and
Realview board models.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d028d02d 10/31/2011 06:40 am Mathieu Sonet

Add AACI audio playback support to the ARM Versatile/PB platform

This driver emulates the ARM AACI interface (PL041) connected to a LM4549 codec.
It enables audio playback for the Versatile/PB platform.

Limitations:
- Supports only a playback on one channel (Versatile/Vexpress)...

3384f95c 10/31/2011 05:53 am David Gibson

pseries: Add partial support for PCI

This patch adds a PCI bus to the pseries machine. This instantiates
the qemu generic PCI bus code, advertises a PCI host bridge in the
guest's device tree and implements the RTAS methods specified by PAPR
to access PCI config space. It also sets up the memory regions we...

02d4eae4 10/31/2011 03:57 am David Gibson

ppc: Alter CPU state to mask out TCG unimplemented instructions as appropriate

The CPU state contains two bitmaps, initialized from the CPU spec
which describes which instructions are implemented on the CPU. A
couple of bits are defined which cover instructions (VSX and DFP)...

98efaf75 10/30/2011 09:03 pm David Gibson

ppc: Fix up usermode only builds

The recent usage of MemoryRegion in kvm_ppc.h breaks builds with
CONFIG_USER_ONLY=y. This patch fixes it.

Signed-off-by: David Gibson <>
Signed-off-by: Alexander Graf <>

70bca53f 10/30/2011 09:03 pm Alexander Graf

KVM: PPC: Override host vmx/vsx/dfp only when information known

The -cpu host feature tries to find out the host capabilities based
on device tree information. However, we don't always have that available
because it's an optional property in dt.

So instead of force unsetting values depending on an unreliable source...

74b41e56 10/30/2011 09:03 pm David Gibson

pseries: Allow writes to KVM accelerated TCE table

Sufficiently recent kernels include a KVM call to accelerate use of
PAPR TCE tables (IOMMU), which are used by PAPR virtual IO devices.
This involves qemu mapping the TCE table in from a kernel obtained fd,...

f0ad8c34 10/30/2011 09:03 pm Alexander Graf

PPC: Disable non-440 CPUs for ppcemb target

The sole reason we have the ppcemb target is to support MMUs that have
less than the usual 4k possible page size. There are very few of these
chips and I don't want to add additional QA and testing burden to everyone...

55f7d4b0 10/30/2011 09:03 pm David Gibson

ppc: Avoid decrementer related kvm exits

In __cpu_ppc_store_decr(), we set up a regular timer used to trigger
decrementer interrupts. This is necessary to implement the decrementer
properly under TCG, but is unnecessary under KVM (true for both Book3S-PR...

f90a9d02 10/30/2011 09:03 pm Alexander Graf

PPC: Fail configure when libfdt is not available

We have several targets in the PPC tree now that basically require libfdt
to function properly, namely the pseries and the e500 targets. This dependency
will rather increase than decrease in the future, so I want to make sure...

a7342588 10/30/2011 09:03 pm David Gibson

pseries: Correct vmx/dfp handling in both KVM and TCG cases

Currently, when KVM is enabled, the pseries machine checks if the host
CPU supports VMX, VSX and/or DFP instructions and advertises
accordingly in the guest device tree. It does this regardless of what...

8b242eba 10/30/2011 09:03 pm Alexander Graf

PPC: Bump qemu-system-ppc to 64-bit physical address space

Some 32-bit PPC CPUs can use up to 36 bit of physical address space.
Treat them accordingly in the qemu-system-ppc binary type.

Signed-off-by: Alexander Graf <>