Statistics
| Branch: | Revision:

root @ 0b5c1ce8

# Date Author Comment
0b5c1ce8 08/24/2009 04:21 pm Nathan Froyd

cleanup cpu-exec.c, part 0/N: consolidate handle_cpu_signal

handle_cpu_signal is very nearly copy-paste code for each target, with a
few minor variations. This patch sets up appropriate defaults for a
generic handle_cpu_signal and provides overrides for particular targets...

4a1418e0 08/24/2009 04:02 pm Anthony Liguori

Unbreak large mem support by removing kqemu

kqemu introduces a number of restrictions on the i386 target. The worst is that
it prevents large memory from working in the default build.

Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on...

a25a0ef5 08/24/2009 04:02 pm Anthony Liguori

Only build osdep once

We no longer need hackery to work around kqemu

Signed-off-by: Anthony Liguori <>

7f79dd28 08/24/2009 04:02 pm Paolo Bonzini

unify popen/fopen qemu wrappers

While reading Chris's code for fd migration I noticed the duplication
between QEMUFilePopen and QEMUFileStdio. This fixes it, and makes
qemu_fopen more similar qemu_popen.

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

1632dc6a 08/24/2009 04:01 pm Avi Kivity

Route IOAPIC interrupts via ISA bus

Instead of calling the IOAPIC from the PIC, raise IOAPIC irqs via the ISA bus.
As a side effect, IOAPIC lines 16-23 are enabled.

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

4951f65b 08/24/2009 04:01 pm Chris Lalancette

Migration via unix sockets.

Implement migration via unix sockets. While you can fake this using
exec and netcat, this involves forking another process and is
generally not very nice. By doing this directly in qemu, we can avoid
the copy through the external nc command. This is useful for...

0953a80f 08/24/2009 04:01 pm Zachary Amsden

Add a configure switch to enable / disable all user targets. I felt compelled to do it for symmetry, mostly it is useful to disable user targets when you don't want to build them.

Signed-off-by: Zachary Amsden <>
Signed-off-by: Anthony Liguori <>

e8b54394 08/24/2009 04:01 pm Brian Wheeler

SMART ATA Functionality

For the lulz I implemented basic SMART functionality in ide.c. smartctl
on linux recognizes it just fine and starting self tests with it
complete successfully.

Signed-off-by: Brian Wheeler <>
Signed-off-by: Anthony Liguori <>

6b35e7bf 08/24/2009 04:01 pm Jes Sorensen

QEMU set irq0override in fw_cfg

Hi,

After discussing the issue with Avi, Gleb and a couple others on irq,
we came to the conclusion that it is preferred to have QEMU request
features from the BIOS, rather than notifying the BIOS that it is
running on QEMU or KVM. This way memory ranges can change etc. and...

21d4e8e3 08/24/2009 04:01 pm Alexandre Bique

Makefile: fixed rule TAGS

- still works if the build dir is not the src dir
- use find instead of .c block/.c etc...

Signed-off-by: Alexandre Bique <>
Signed-off-by: Anthony Liguori <>

1452411b 08/24/2009 04:01 pm Avi Kivity

Route PC irqs to ISA bus instead of i8259 directly

A PC has its motherboard IRQ lines connected to both the PIC and IOAPIC.
Currently, qemu routes IRQs to the PIC which then calls the IOAPIC, an
incestuous arrangement. In order to clean this up, create a new ISA IRQ...

90750009 08/24/2009 04:01 pm Chris Lalancette

Fix detached migration with exec.

When trying to do detached migration with exec, I found that
the monitor wouldn't always return in a timely manner. I
tracked this down to exec_start_outgoing_migration. It
appeared we were setting the fd to NONBLOCK'ing, but in...

7ef92331 08/24/2009 04:01 pm Zachary Amsden

Don't segfault when changing VNC password on an SDL display.

Signed-off-by: Zachary Amsden <>
Signed-off-by: Anthony Liguori <>

52c18be9 08/24/2009 04:01 pm Zachary Amsden

When using stdio monitor and VNC display, one can set or clear a VNC password; this should set or turn off VNC authentication as well.

Signed-off-by: Zachary Amsden <>
Signed-off-by: Anthony Liguori <>

86176759 08/24/2009 04:01 pm Zachary Amsden

Clean up VGA type selection; far too many variables being used to track one state leads to confusion if new variables are added.

Signed-off-by: Zachary Amsden <>
Signed-off-by: Anthony Liguori <>

7dc3fa09 08/24/2009 04:01 pm Stefan Weil

Add missing linefeed in error message

The error message for an unknown network device given to
monitor command set_link looks better with a terminating
linefeed.

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

04a52b41 08/24/2009 04:01 pm Stefano Stabellini

make vga screen_dump use DisplayState properly

Hi all,
currently the vga screen_dump code doesn't use the DisplayState
interface properly and tries to replace it temporarily while taking the
screenshot.
A better approach is to register a DisplayChangeListener, call...

6b99dadc 08/24/2009 04:01 pm Avi Kivity

Do not disable autostart for live migration

If the user does not want autostart, they can specify -S.

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

b6f6d0e2 08/24/2009 02:18 pm malc

Restore consistent formatting

Signed-off-by: malc <>

e5944641 08/24/2009 02:15 pm Juan Quintela

es1370: Remove unused indirection of PCIES1370State and ES1370State

Signed-off-by: Juan Quintela <>

2a1704a7 08/23/2009 11:10 pm Blue Swirl

Fix device name completion for 'eject'

Signed-off-by: Blue Swirl <>

4445b0a6 08/23/2009 08:00 pm Andrzej Zaborowski

Revert my commit c00a9de060124a988bd9847c095e5836488c6f01

was incorrect.

8d30b794 08/23/2009 07:08 pm Torsten Duwe

Fix segfault of qemu-system-arm with PXA target

qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target,
e.g. -M tosa. The reason is fairly obvious:

Signed-off-by: Torsten Duwe <>
Signed-off-by: Christoph Hellwig <>...

699960b2 08/23/2009 07:03 pm Reimar Döffinger

sdl.c: support 32 bpp cursors

Hello,
currently when a 32 bpp cursor gets defined the result is all-black in
the areas that are not transparent (you'll get a 32 bpp cursor if you
use my previous patch to allow vmware_vga to use a 32 bpp framebuffer).
This is because the switch in sdl.c lacks a 32 bpp case....

c00a9de0 08/23/2009 07:00 pm Reimar Döffinger

Use corect depth from DisplaySurface in vmware_vga.c

Hello,
for what I can tell, there is no way for vmware_vga to work correctly
right now. It assumes that the framebuffer bits-per-pixel and the one
from the DisplaySurface are identical (it uses directly the VRAM from...

13f59cbf 08/23/2009 06:44 pm Andrzej Zaborowski

Remove the unnecessary and only global in musicpal.c

7ef6e71c 08/23/2009 06:19 pm Andrzej Zaborowski

Merge with :/srv/git/qemu.git

d074769c 08/23/2009 04:51 pm Andrzej Zaborowski

Make musicpal.c use the I2C device and the Marvell 88w8618 audio device

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

ef07b491 08/23/2009 04:44 pm Andrzej Zaborowski

Extract the Marvell 88w8618 audio device from musicpal.c

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

3ead03bd 08/23/2009 04:38 pm Andrzej Zaborowski

Extract musicpal.c I2C bitbanging code and make it gpio aware

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

343ec8e4 08/23/2009 03:38 pm Benoit Canet

Musicpal qdev conversion: gpio (except I2C part), keyboard and lcd

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

d453c2c3 08/23/2009 03:23 pm Blue Swirl

Sparc32: fix monitor commands 'info pic' and 'info irq'

Signed-off-by: Blue Swirl <>

7432ff5d 08/23/2009 09:12 am Blue Swirl

Rearrange to suppress gcc 3.3.5 warning about unused variable

Signed-off-by: Blue Swirl <>

9c9c310a 08/22/2009 08:23 pm Igor Kovalenko

def-helper.h allow helpers returning pointers

This change allows to define helpers returning pointers.
This looks like a typo in original commit.

Signed-off-by:
Signed-off-by: Blue Swirl <>

0fd0eb21 08/22/2009 04:55 pm Blue Swirl

ESP: implement Transfer Pad

Signed-off-by: Blue Swirl <>

5e1e0a3b 08/22/2009 04:54 pm Blue Swirl

ESP: Implement select without ATN, fix comments

Signed-off-by: Blue Swirl <>

94953e6d 08/22/2009 03:29 pm Laurent Desnogues

ARM back-end: Handle all possible immediates for ALU ops

this patch handles all possible constants for immediate operand of ALU ops.
I'm not very satisfied by the implementation.

Laurent

Signed-off-by: Laurent Desnogues <>
Signed-off-by: Andrzej Zaborowski <>

f878d2d2 08/22/2009 02:55 pm Laurent Desnogues

ARM back-end: Add TCG not

this patch:

- implements TCG not.

Laurent

Signed-off-by: Laurent Desnogues <>
Signed-off-by: Andrzej Zaborowski <>

4c6aa085 08/22/2009 02:54 pm Blue Swirl

sparc32 remove an unnecessary cpu irq set

Signed-off-by: Artyom Tarasenko <>
Signed-off-by: Blue Swirl <>

c27e2752 08/22/2009 02:46 pm Blue Swirl

Sparc32/64: fix jmpl followed by branch

Fix a case where 'jmpl' instruction followed by a branch instruction was
handled incorrectly.

Signed-off-by: Blue Swirl <>

10ee2aaa 08/22/2009 12:51 pm Juan Quintela

Remove unneded ac97 indirection accessing its state

Searching for "inspiration" to convert another device to qdev, I got
ac97. Once I understood a bit of qdev, found that ac97 used a not needed
indirection. To protect the unaware, just fixed it.

Later, Juan....

6b743278 08/18/2009 09:04 pm Blue Swirl

Sparc32/64: Fix user emulator breakage

Signed-off-by: Blue Swirl <>

7ecd8df8 08/18/2009 08:01 pm Blue Swirl

Fix breakage of alpha, mips64, ppc64 and x86_64 targets on non-amd64 host

Signed-off-by: Blue Swirl <>

b11ebf64 08/16/2009 02:54 pm Blue Swirl

Replace REGX with PRIx64

Signed-off-by: Blue Swirl <>

90e189ec 08/16/2009 02:13 pm Blue Swirl

Replace local ADDRX/PADDRX macros with TARGET_FMT_lx/plx

Signed-off-by: Blue Swirl <>

636aa200 08/16/2009 12:06 pm Blue Swirl

Replace always_inline with inline

We define inline as always_inline.

Signed-off-by: Blue Swirl <>

facd2857 08/16/2009 11:03 am Blue Swirl

user: compile host-utils.c only once

Signed-off-by: Blue Swirl <>

e27b27b3 08/16/2009 10:39 am Blue Swirl

Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd

Thanks to Juan Quintela.

Signed-off-by: Blue Swirl <>

cfa90513 08/15/2009 07:52 pm Blue Swirl

Fix desynchronization of condition code state when a memory access traps

Signed-off-by: Blue Swirl <>

802670e6 08/15/2009 05:27 pm Blue Swirl

PPC: clean up ppc405

Rely on the subpage system instead of the local version.
Make most functions "static".
Fix wrong parameter passed to ppc4xx_pob_reset.

Signed-off-by: Blue Swirl <>

1786dc15 08/15/2009 02:33 pm Blue Swirl

Use pstrcpy to avoid OpenBSD linker warnings

Signed-off-by: Blue Swirl <>

fc0d96b4 08/15/2009 01:35 pm Blue Swirl

bsd-user: Add generic env variable handling

Based on 04a6dfebb6b52532a1e0bd637899f1eba14e94c6.

Adds support for qemu to modify target process environment
variables using -E and -U commandline switches. This replaces
eventually the -drop-ld-preload flag....

6af5a252 08/15/2009 11:47 am Blue Swirl

linux-user: compile envlist.c only once

Signed-off-by: Blue Swirl <>

5ba65319 08/15/2009 10:52 am Blue Swirl

user: compile ioport-user.c only for x86

Signed-off-by: Blue Swirl <>

37022086 08/15/2009 10:51 am Blue Swirl

user: compile path.c only once

Also merge bsd-user/path.c and linux-user/path.c.

Signed-off-by: Blue Swirl <>

0bf5e443 08/14/2009 12:05 am Anthony Liguori

Fix migration for ide devices

commit 93c8cfd9e67a62711b86f4c93747566885eb7928
Author: Gleb Natapov <>
Date: Sun Aug 2 11:36:47 2009 +0300

make windows notice media change

Broke save/restore by loading a new field but not saving it....

0c5b8d83 08/13/2009 08:51 pm Blue Swirl

Unbreak Sparc64

EBus is a sort of ISA bus.

Signed-off-by: Blue Swirl <>

bc19fcaa 08/13/2009 07:26 pm Blue Swirl

Unbreak Sparc32 and PPC

Convert qdev ptr type to chr, allow a NULL pointer.

Signed-off-by: Blue Swirl <>

aa0cba4a 08/13/2009 05:41 am malc

Third attempt to invoke create_config properly

Second attempt failed due to $_ not being standard and as such it's
interpretation by certain shells when they were symlinked to /bin/sh
and invoked as such led to unpredictable results. So instead of trying...

197bc219 08/12/2009 10:11 pm malc

Fix typo

971c47cc 08/11/2009 10:15 pm malc

Do not use $SHELL to invoke our scripts

http://www.opengroup.org/onlinepubs/7990989775/xbd/envvar.html

<quote>
SHELL
A pathname of the user's preferred command language
interpreter. If this interpreter does not conform to the XSI Shell
Command Language in the XCU specification, Shell Command Language,...

1dd3e4d1 08/11/2009 07:51 pm Juan Quintela

use C99 initializers for audio_pcm_ops

Signed-off-by: Juan Quintela <>

1a40d5e2 08/11/2009 07:51 pm Juan Quintela

use C99 initializers for all audio/*

Signed-off-by: Juan Quintela <>

98f9f48c 08/11/2009 07:51 pm malc

Aesthetics

Reformat to make item borders more visible
Fix cases of stray tabs and vertical misalignments

Signed-off-by: malc <>

bee37f32 08/11/2009 07:51 pm Juan Quintela

Use proper struct initializers and remove INIT_FIELD() macro

Signed-off-by: Juan Quintela <>

2700efa3 08/11/2009 07:51 pm Juan Quintela

Use C99 initializers for audio_option

Signed-off-by: Juan Quintela <>

c981d39c 08/11/2009 03:27 am Anthony Liguori

Fix virtio-blk

Reported-by: Christoph Hellwig
Signed-off-by: Anthony Liguori <>

05f02579 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_ethlite.c to helper macros.

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

8017dc26 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_intc.c to helper macros.

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

ea2b7271 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_timer.c to helper macros.

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

22f2e344 08/10/2009 09:11 pm Gerd Hoffmann

fix qdev_print_devinfo()

snprintf returns number of bytes needed for the output, not the number
of bytes actually written. Thus the math is wrong ...

Spotted by Markus Armbruster.

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

f6c64e0e 08/10/2009 09:11 pm Gerd Hoffmann

rename "info qdrv" to "info qdm"

As requested by avi: driver != device model.

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

6ca8d0fd 08/10/2009 09:11 pm Nathan Froyd

check for PR_SET_NAME being defined

Depending on what glibc/kernel headers you are compiling against,
PR_SET_NAME may or may not be defined. Do the right thing if
PR_SET_NAME isn't defined and skip setting the process name.

Signed-off-by: Nathan Froyd <>...

562593aa 08/10/2009 09:11 pm Anthony Liguori

Add emacs header to Makefile.target

Signed-off-by: Anthony Liguori <>
Signed-off-by: Anthony Liguori <>
Message-Id:

3c2aed8b 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_interrupt.c to helper macros.

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

51dd5927 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_keyboard.c to helper macros.

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

5cdabc14 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_pointer.c to helper macros.

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

c4470b25 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_serial.c to helper macros.

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

083301fc 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_timer.c to helper macros.

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

53dad499 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert tcx.c to helper macros.

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

df59cbc6 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert vga.c to helper macros.

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

72c61d0b 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert virtio-pci.c to helper macros.

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

18c637dc 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert slavio_timer.c to helper macros.

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

bf2782d7 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert smbus_eeprom.c to helper macros.

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

3180d772 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sparc32_dma.c to helper macros.

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

c885159a 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sun4m.c to helper macros.

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

32a7ee98 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sun4u.c to helper macros.

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

c230c4e3 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_fb.c to helper macros.

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

7fdaf611 08/10/2009 09:08 pm Gerd Hoffmann

qdev/prop: convert slavio_intctl.c to helper macros.

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

186507b4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert pcnet.c to helper macros.

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

ddde095c 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert etraxfs_pic.c to helper macros.

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

368eb5d4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert i2c.c to helper macros.

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

bb36f66a 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert integratorcp.c to helper macros.

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

668724a7 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert iommu.c to helper macros.

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

01274424 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert m48t59.c to helper macros.

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

54586bd1 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert pci.c to helper macros.

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

e325775b 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert arm_sysctl.c to helper macros.

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

1832efa2 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert armv7m.c to helper macros.

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

d210a1b4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert eccmemctl.c to helper macros.

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

ec02f7de 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert escc.c to helper macros.

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