Statistics
| Branch: | Revision:

root / hw @ f5654039

# Date Author Comment
f5654039 11/21/2011 10:58 pm Paolo Bonzini

9p: allow compiling the dummy virtio-9p-handle.c code on Linux

Avoid a conflict on the definition of struct file_handle by
using a replacement name.

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

38e0735e 11/21/2011 10:58 pm Anthony Liguori

ivshmem: use migration blockers to prevent live migration in peer mode (v2)

Now when you try to migrate with ivshmem, you get a proper QMP error:

(qemu) migrate tcp:localhost:1025
Migration is disabled when using feature 'peer mode' in device 'ivshmem'
(qemu)...

a3baf1be 11/21/2011 10:44 pm Anthony Liguori

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

1571b6cb 11/21/2011 10:36 pm Anthony Liguori

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

59310659 11/21/2011 04:32 pm Gerd Hoffmann

usb-storage: don't try to send the status early.

Until recently all scsi commands sent to scsi-disk did either transfer
data or finished instantly. The correct implementation of
SYNCRONIZE_CACHE changed the picture though, and usb-storage needs
a fix to handle that case correctly.

b2467216 11/21/2011 04:32 pm Gerd Hoffmann

ehci: add assert

Coverity thinks q could be NULL there and warns.
I believe it can't be NULL there.
Add assert to prove it.

Signed-off-by: Gerd Hoffmann <>

414c4604 11/21/2011 03:08 pm Gerd Hoffmann

usb-storage: drop result from device state.

Signed-off-by: Gerd Hoffmann <>

92a114f6 11/21/2011 03:08 pm Gerd Hoffmann

usb-storage: fill status in complete callback.

Put status word into device state, fill it in command_complete, have
usb_msd_send_status just send it out.

Signed-off-by: Gerd Hoffmann <>

7b863f41 11/21/2011 03:08 pm Gerd Hoffmann

usb-storage: drop tag from device state.

scsi keeps track of the tag in SCSIRequest,
no need to store a separate copy.

Signed-off-by: Gerd Hoffmann <>

e04da7c3 11/21/2011 03:07 pm Gerd Hoffmann

usb-storage: move status debug message to usb_msd_send_status.

usb_msd_send_status can be called from different code paths, move the
debug message into the function to make sure it is printed
unconditionally.

Signed-off-by: Gerd Hoffmann <>

725e14e9 11/19/2011 01:23 pm Markus Armbruster

loader: Fix read_targphys() to behave when read() fails

Happily passes (size_t)-1 to rom_add_blob_fixed(), which promptly dies
attempting to malloc that much. Spotted by Coverity.

Bonus fix for ROMs larger than INT_MAX bytes: return ssize_t instead
of int. Bug can't bite, because the only user load_aout() limits ROM...

25cc4a76 11/19/2011 01:17 pm Blue Swirl

Merge branch 's390-1.0' of git://repo.or.cz/qemu/agraf

  • 's390-1.0' of git://repo.or.cz/qemu/agraf:
    s390x: initialize virtio dev region
    tcg: Use TCGReg for standard tcg-target entry points.
    tcg: Standardize on TCGReg as the enum for hard registers
    s390x: Add shutdown for TCG s390-virtio machine...
05a86f23 11/19/2011 01:17 pm Blue Swirl

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

  • 'ppc-1.0' of git://repo.or.cz/qemu/agraf:
    pseries: Fix qdev.id handling in the VIO bus code
    pseries: Allow kernel's early debug output to work
    pseries: Default reg for vty should be SPAPR_VTY_BASE_ADDRESS...
54dcd0b3 11/18/2011 09:30 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/block-stable' into staging

1e34d859 11/18/2011 03:26 pm Michael Ellerman

pseries: Fix qdev.id handling in the VIO bus code

When the user creates a device on the command line with -device, they
can specify the id, using id=foo. Currently the VIO bus code overwrites
this id with it's own value. We should only set qdev.id if it is not...

57285302 11/18/2011 03:22 pm Michael Ellerman

pseries: Check we have a chardev in spapr_vty_init()

If qemu is run like:

qemu-system-ppc64 -nodefaults -device spapr-vty

We end up in spapr_vty_init() with dev->chardev == NULL. Currently
that leads to a segfault because we unconditionally call
qemu_chr_add_handlers()....

5afdec40 11/18/2011 03:22 pm Michael Ellerman

pseries: Default reg for vty should be SPAPR_VTY_BASE_ADDRESS

In commit b4a78527359a4540d84d4cdf629d01cbb262f698 ("Place pseries vty
devices at addresses more similar to existing machines"), we changed the
default reg for the vty to 0x30000000, however we didn't update the default...

3feef8ad 11/18/2011 03:22 pm David Gibson

pseries: Allow kernel's early debug output to work

The PAPR specification defines a virtual TTY/console interface for guest
OSes to use via the H_PUT_TERM_CHAR and H_GET_TERM_CHAR hypercalls. There
can be multiple virtual ttys, so these take a "termno" parameter. This...

92c93a81 11/18/2011 03:22 pm David Gibson

pseries: Correct RAM size check for SLOF

The SLOF firmware used on the pseries machine needs a reasonable amount of
(guest) RAM in order to run, so we have a check in the machine init
function to check that this is available. However, SLOF runs in real mode...

5435352c 11/18/2011 03:22 pm David Gibson

pseries: Fix buggy spapr_vio_find_by_reg()

The spapr_vio_find_by_reg() function in hw/spapr_vio.c is supposed to find
the device structure for a PAPR virtual IO device with the given reg value,
and return NULL if none exists.

It does the first ok, but if no device with that reg exists, it just...

33ebad12 11/18/2011 03:14 pm Paolo Bonzini

scsi-block: always use SG_IO for MMC devices

CD burning messes up the state of the host page cache and host block
device. Just pass all operations down to the device, even though that
might have slightly worse performance. Everything else just is not
reliable in combination with burning....

f3b338ef 11/18/2011 03:12 pm Paolo Bonzini

scsi: pass down REQUEST SENSE to the device when there is no stored sense

This will let scsi-block/scsi-generic report progress on long
operations.

Reported-by: Thomas Schmitt <>
Tested-by: Thomas Schmitt <>...

0fd76ff4 11/18/2011 03:09 pm Paolo Bonzini

scsi: remove block descriptors from CDs

Reported-by: Thomas Schmitt <>
Tested-by: Thomas Schmitt <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

06b86357 11/18/2011 03:04 pm Paolo Bonzini

scsi: fix parsing of allocation length field

- several MMC commands were parsed wrong by QEMU because their allocation
length/parameter list length is placed in a non-standard position in
the CDB (i.e. it is different from most commands with the same value in...

00a01ad4 11/18/2011 02:57 pm Paolo Bonzini

scsi: update list of commands

Add more commands and their names, and remove SEEK which is obsolete.
Instead, use SET_CAPACITY which is still in SSC.

Tested-by: Thomas Schmitt <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

2c20ae11 11/18/2011 02:54 pm Paolo Bonzini

atapi: kill MODE SENSE, fix MODE SENSE

Mode page 2A of emulated ATAPI DVD-ROM should have page length 0x14
like SCSI CD-ROM, rather than 0x12.

Mode page length is off by 8, as it should contain the length of the
payload after the first two bytes....

245d0049 11/18/2011 02:37 pm Paolo Bonzini

scsi-disk: guess geometry

Old operating systems rely on correct geometry to convert from CHS
addresses to LBA. Providing correct data is necessary for them to boot.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

7082826e 11/18/2011 02:35 pm Paolo Bonzini

scsi: fix fw path

The pre-1.0 firmware path for SCSI devices already included the LUN
using the suffix argument to add_boot_device_path. I missed that when
making channel and LUN customizable. Avoid that it is included twice, and
convert the colons to commas for consistency with other kinds of devices...

b5e4946f 11/17/2011 02:57 pm Stefan Weil

Fix spelling in documentation and comments (similiar -> similar)

This bug was detected by codespell.
In mips_mipssim.c a grammatical error was fixed, too.

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

e1556ad5 11/14/2011 07:26 pm Peter Maydell

hw/omap_gpio: Fix infinite recursion when doing 8/16 bit reads

Fix a long-standing bug which meant that any attempt to do an
8 or 16 bit read from the OMAP GPIO module would cause qemu to
crash due to an infinite recursion.

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

3827cdb1 11/14/2011 07:26 pm Alon Levy

pc_piix: set qxl revision to 2 for pc-0.14

The default is still 3, and I didn't change older machine types.

Signed-off-by: Alon Levy <>
Signed-off-by: Anthony Liguori <>

371572df 11/14/2011 07:17 pm Andrzej Zaborowski

Revert bugfix e7852674d5 until tested or until after the release.

Signed-off-by: Andrzej Zaborowski <>

326384d5 11/14/2011 06:47 pm Alexander Graf

s390x: initialize virtio dev region

When running the s390x virtio machine we can potentially use uninitialized
memory for the virtio device backing ram. That can lead to weird breakge.

So let's better initialize it to 0 properly.

Reported-by: Andreas Färber <>...

e9d86b76 11/14/2011 06:47 pm Christian Borntraeger

s390: fix reset hypercall to reset the status

This patch fixes the reset hypercall which is supposed to also
reset the device status in device memory.
This fixes the following bug:

[root@localhost driver]# echo virtio0 > unbind
[ 35.056966] ------------[ cut here ]------------...

13449a6e 11/14/2011 06:47 pm Christian Borntraeger

s390: fix short kernel command lines

The default kernel command line for s390 is
"root=/dev/ram0 ro"

When overriding this line, we have to ensure to also copy the \0 to
avoid false lines, for example, -append "root=/dev/vda" will result in
"root=/dev/vda0 ro" with the current code....

854e42f3 11/14/2011 06:47 pm Christian Borntraeger

s390: Fix cpu shutdown for KVM

On s390 a shutdown is the state of all CPUs being either stopped
or disabled (for interrupts) waiting. We have to track the overall
number of running CPUs to call the shutdown sequence accordingly.
This patch implements the counting and shutdown handling for the...

a3efecb8 11/14/2011 04:22 am Juha Riihimäki

hw/onenand: reject read-only drives

Signed-off-by: Juha Riihimäki <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Andrzej Zaborowski <>

3fc3abf7 11/14/2011 04:19 am Juha Riihimäki

hw/nand: reject read-only drives

also gracefully fail on nand_device_init() for unsupported block
size instead of aborting.

Signed-off-by: Juha Riihimäki <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Andrzej Zaborowski <>

b2887c43 11/14/2011 04:09 am Jean-Christophe DUBOIS

hw/arm_sysctl: Fix RESETCTL for realview-pb-a8 and -pbx-a9

Depending on the considered baseboard the bit used to
reset the platform is different.

Here is the list of considered Realview/Versatile platforms:

Realview/Versatile AB for ARM926EJ-S: BOARD_ID = 0x100 = BOARD_ID_PB9...

7c64d297 11/14/2011 03:26 am Peter Maydell

hw/pxa2xx.c: Fix handling of RW bits in PMCR

Fix an error in commit afd4a6522 which meant that writing a zero
to the RW bits in the PMCR wouldn't actually clear them. (Error
spotted by Andrzej Zaborowski.)

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

e7852674 11/14/2011 03:19 am Peter Maydell

hw/usb-net.c: Fix precedence bug when checking rndis_state

"!X == 2" is always false (spotted by Coverity), so the checks
for whether rndis is in the correct state would never fire.

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

74d33d5c 11/12/2011 01:26 am Anthony Liguori

Merge remote-tracking branch 'kwolf/block-stable' into staging

35914dc7 11/11/2011 08:49 pm Peter Maydell

hw/tc58128.c: Remove unnecessary check for g_malloc failure

Remove a check for g_malloc failing: this never happens.
Also use g_malloc rather than g_malloc0 as we immediately
memset the entire region and so zero-initialising it is pointless.
Spotted by Coverity (see bug 887883)....

b78c2b3a 11/11/2011 08:49 pm Peter Maydell

hw/pl061: Remove pointless comparison of array to null

Remove a pointless comparison of an array to null. (There is
no need to check whether s->out[i] is non-null as qemu_set_irq
will do that for us.) Spotted by Coverity (see bug 887883).

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

afd4a652 11/11/2011 08:49 pm Peter Maydell

hw/pxa2xx.c: Fix handling of R/WC bits in PMCR

Fix a bug in handling the write-one-to-clear bits in the PMCR
which meant that we would always clear the bit even if the
value written was a zero. Spotted by Coverity (see bug 887883).

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

ee71c984 11/11/2011 08:49 pm Peter Maydell

hw/arm_timer.c: Fix bounds check for Integrator timer accesses

There are only three counter/timers on the integrator board:
correct the bounds check to avoid an array overrun. (Spotted
by Coverity, see bug 887883).

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

096685fc 11/11/2011 08:49 pm Peter Maydell

hw/omap_intc.c: Avoid crash on access to nonexistent banked registers

Avoid a crash due to null pointer dereference if a guest attempts
to access banked registers for a nonexistent bank. Spotted by
Coverity (see bug 887883).

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

d43b45e2 11/11/2011 06:33 pm David Gibson

pseries: Fix initialization of sPAPREnvironment structure

Since we added PCI support to the pseries machine, we include a qlist of
PCI host bridges in the sPAPREnvironment structure. However this list
was never properly initialized it. Somehow we got away with this until...

980bda8b 11/11/2011 03:02 pm Peter Maydell

hw/pc.c: Fix use-while-uninitialized of fd_type[]

Fix a use-while-uninitialized of the fd_type[] array (introduced
in commit 34d4260e1, noticed by Coverity). This is more theoretical
than practical, since it's quite hard to get here with floppy==NULL
(the qdev_try_create() of the isa-fdc device has to fail)....

2df0a3a3 11/11/2011 03:02 pm Paolo Bonzini

atapi: implement eject requests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

4480de19 11/11/2011 03:02 pm Paolo Bonzini

scsi-disk: implement eject requests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

542379f4 11/10/2011 02:29 pm Markus Armbruster

qdev: Fix crash on -device '?=x'

Spotted by Coverity.

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

0e3b800e 11/10/2011 02:29 pm Peter Maydell

hw/lan9118.c: Add missing 'break' to fix buffer overrun

Add a missing 'break' statement to fix a buffer overrun when
executing the EEPROM write-all command. Spotted by Coverity
(see bug 887883).

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

4f26f2b6 11/09/2011 08:06 pm Avi Kivity

configure: fix detection for xattr.h on modern distributions

Modern distributions place xattr.h in /usr/include/sys, and fold
libattr.so into libc. They also don't have an ENOATTR.

Make configure detect this, and add a qemu-xattr.h file that
directs the #include to the right place....

95117be5 11/09/2011 08:06 pm Peter Maydell

hw/omap_dss.c: Fix !-vs-~ bug in handling DISPC_CONTROL

Fix a bug revealed by a coverity scan (see bug 887883) which meant
that we would never print the warning about unpredictable behaviour
if a nonexistent overlay is enabled.

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

c0465d1a 11/09/2011 08:06 pm Peter Maydell

hw/omap_gpmc.c: Add missing 'break's to fix 8 bit NAND writes

Add missing 'break' statements which would have meant that writing
to an 8 bit NAND device was broken. Spotted by Coverity (see bug
887883).

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

4f61927a 11/09/2011 08:06 pm Max Filippov

hpet: fix infinite loop in qemu_run_timers with -icount enabled

hpet_timer timer callback rearms itself based on difference between
current HPET tick counter and comparator value. Difference calculated by
the hpet_calculate_diff function is limited to non-negative values....

9770b912 11/08/2011 09:53 pm Edgar E. Iglesias

virtex: Remove memset of clk_setup

clk_setup is now a function. Fixes a segfault.

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

25a21c94 11/07/2011 06:57 pm Gerd Hoffmann

ac97: don't override the pci subsystem id

This patch removes the code lines which set the subsystem id for the
emulated ac97 card to 8086:0000. Due to the device id being zero the
subsystem id isn't vaild anyway. With the patch applied the sound card
gets the default qemu subsystem id (1af4:1100) instead....

f67ab77a 11/07/2011 06:57 pm Gerd Hoffmann

qxl: fix vga port initialization.

Commit 0a039dc70096b768d3810afa50ba1d214768aaf4 broke vga modes for
qxl-vga by loosing vga_ioport_read windup. qxl needs to hook into
vga port writes only and used to realize that by letting vga_init() do
the work for both reads and writes, then overwrite the write function....

6023d832 11/07/2011 06:57 pm Paolo Bonzini

disable automatic loading of sgabios when -nographic

sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0,
let's disable the automatic loading of the option ROM in -nographic
mode. We can put it back for 1.1.

Signed-off-by: Paolo Bonzini <>...

19857e62 11/07/2011 06:57 pm Gerd Hoffmann

pc: add 1.0 machine type

This patch adds a pc-1.0 machine type.

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

2963e65a 11/07/2011 06:57 pm Anthony Liguori

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

ca062aae 11/07/2011 06:56 pm Anthony Liguori

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

e7b48c97 11/07/2011 10:07 am Anthony PERARD

xen-platform: Fix IO port read/write functions

Somehow, the read/write functions handle an offset that does not exist anymore.

Signed-off-by: Anthony PERARD <>
Signed-off-by: Stefan Hajnoczi <>

41bf234d 11/06/2011 06:01 pm Rabin Vincent

arm_gic: handle banked enable bits for per-cpu interrupts

The first enable set/clear register (which controls the PPIs and SGIs)
is supposed to be banked for each processor. Currently it is just
handled globally and this prevents recent SMP Linux kernels from...

acae6f1c 11/04/2011 03:23 pm Kevin Wolf

dma: Avoid reentrancy in DMA transfer handlers

With the conversion of the block layer to coroutines, bdrv_read/write
have changed to run a nested event loop that calls qemu_bh_poll.
Consequently a scheduled BH can be called while a DMA transfer handler
runs and this means that DMA_run becomes reentrant....

932eacc1 11/02/2011 10:52 pm Blue Swirl

Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa

  • 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa:
    xtensa_lx60: fix build date code and change memory region names
    xtensa_lx60: pass kernel arguments from -append
    xtensa_lx60: add FLASH support...
42dfb095 11/02/2011 07:30 pm Anthony Liguori

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

f2209eb8 11/02/2011 02:55 pm Bharata B Rao

Fix X86 CPU topology in KVM mode

apic id returned to guest kernel in ebx for cpuid(function=1) depends on
CPUX86State->cpuid_apic_id which gets populated after the cpuid information
is cached in the host kernel. This results in broken CPU topology in guest....

5bb23927 11/02/2011 02:51 pm Paolo Bonzini

virtio-blk: pass full status to the guest

When SCSI passthrough is being used by the guest with virtio-blk, the
guest is not able to detect disk failures. This is because the status
field is expected by the guest driver to include also the msg_status,
host_status and driver_status fields, but the device is only passing...

18ebcc86 11/02/2011 02:51 pm Gerd Hoffmann

intel-hda: fix stream search

commit ba43d28916c4f51c19bd7366089155ce81bee058 introduces a bug:
The stream-not-found case doesn't error out any more, instead the
code silently uses the first stream. Fix it.

Signed-off-by: Gerd Hoffmann <>...

779b5b04 11/02/2011 09:27 am Stefan Hajnoczi

hw/9pfs: use g_vasprintf() instead of rolling our own

Markus Armbruster <> sent fixes for va_list vararg
issues in v9fs_string_alloc_printf(). It turns out the function
duplicates g_vasprintf() and can therefore be eliminated entirely.
...

82b25dc8 11/02/2011 03:05 am Max Filippov

xtensa_lx60: add FLASH support

LX60 carry 4 Mbyte FLASH and 128 Kbyte SRAM, LX200 carry 16 Mbyte FLASH
and 32 Mbyte SRAM. Either of these memories may be mapped to the system
ROM region.

Select boot from FLASH if -kernel option is not specified, otherwise...

292627bb 11/02/2011 03:05 am Max Filippov

xtensa_lx60: pass kernel arguments from -append

Create boot parameters in the end of SRAM region, insert kernel
arguments specified in -append there.

Signed-off-by: Max Filippov <>

556ba668 11/02/2011 03:05 am Max Filippov

xtensa_lx60: fix build date code and change memory region names

Fix date code to uses MMDDYYYY notation.
Change memory region names to reflect specification that defines them.

Signed-off-by: Max Filippov <>

b0eb8449 11/02/2011 02:32 am Anthony Liguori

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

This reverts commit 46d95bfec7f9429d5228078219413d7e33496d65.

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

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

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

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

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...
2ff64581 11/01/2011 08:09 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.29' 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