Statistics
| Branch: | Revision:

root @ 68f6dc7e

# Date Author Comment
68f6dc7e 09/18/2009 01:04 pm malc

coreaudio: fix sloppy "posixification" by 1ea879e5580f63414693655fcf0328559cdce138

Signed-off-by: malc <>

b348113d 09/16/2009 10:26 pm Stefan Weil

tcg: fix size of local variables in tcg_gen_bswap64_i64

t0, t1 must be 64 bit values, not 32 bit.

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

2d6ee8e7 09/16/2009 09:58 pm Juergen Lock

qemu serial: lost tx irqs (affecting FreeBSD's new uart(4) driver)

Well one problem seems to be the rx condition,
... if ((s->ier & UART_IER_RDI) && (s->lsr & UART_LSR_DR))
is not enough to trigger an irq, yet still causes the following
conditions not to be checked anymore at all....

e5934d33 09/16/2009 08:57 pm Andre Przywara

fix typo in configure --help

Signed-off-by: Andre Przywara <>
Signed-off-by: Aurelien Jarno <>

e1a0e47f 09/16/2009 01:15 am Aurelien Jarno

escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951

The logic of Zilog makes channel B the first device and channel A the
second one.

Signed-off-by: Aurelien Jarno <>

dea21e97 09/15/2009 11:05 pm Gerd Hoffmann

ide/isa: convert to qdev.

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

feef3102 09/15/2009 11:04 pm Gerd Hoffmann

ide/pci: convert to qdev.

With this patch applied ide drives (when attached to a pci adapter) can
be created via -device, like this:

-drive if=none,id=mydisk,file=/path/to/disk.img
-device ide-drive,drive=mydisk,bus=ide.0,unit=0

Note that creating a master on ide1 doesn't work that way. That is a...

9a43dba0 09/15/2009 11:00 pm Gerd Hoffmann

ide/pci: fix indention

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

da4d0419 09/15/2009 10:23 pm Gerd Hoffmann

ide/qdev: add ide bus.

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

88804180 09/15/2009 10:23 pm Gerd Hoffmann

split away drive init from ide_init2()

This allows the ide bus being initialized without drives attached
and the drives being attached and initialization later on as
separate step.

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

c219331e 09/15/2009 10:23 pm Gerd Hoffmann

support media=cdrom for if=none

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

71077c1c 09/15/2009 10:23 pm Gerd Hoffmann

qdev/pci: add pci_create_noinit()

Like pci_create_simple() but doesn't call qdev_init(), so one can
set properties before initializing the device.

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

ffabf037 09/15/2009 02:17 am Aurelien Jarno

mips malta: ensure that the serial ports are associated with a device

The serial ports should be present even if associated with a null device
as some firmware wants to initialize them.

Signed-off-by: Aurelien Jarno <>

387f4a5a 09/15/2009 02:16 am Aurelien Jarno

hw/serial: don't create a char device if none is specified

When creating null devices, there is no way to ensure the unicity of
the labels. Bail out with an error message instead.

Signed-off-by: Aurelien Jarno <>

e09fdfaf 09/15/2009 01:21 am Aurelien Jarno

curses: save 250MB of memory

Don't call curses_resize() at the end of curses_display_init() as height
and width are not yet defined. It will be called later by code from
vl.c.

This save 250MB of memory when using -curses.

Signed-off-by: Aurelien Jarno <>

324a8021 09/15/2009 12:52 am Aurelien Jarno

Revert "Open chr device for all serial ports"

This reverts commit 55338f1dd4648d78ee130d83a92f1059ff1f3887.

5c637a20 09/14/2009 09:34 pm Blue Swirl

Fix breakage by f80237d45032fbc429aba3b597175fb544a11378 for ISA-less targets

Move ISA bus to HW library.

Signed-off-by: Blue Swirl <>

7b270ef2 09/14/2009 08:34 pm Nathan Froyd

target-mips: fix single-stepping

Single-stepping branches on MIPS didn't work right, because the
generation of EXCP_DEBUG happened after the generation of the code to
exit the current TB. That is, given the code:

bne v0,v1,target
nop
...
target:...
55338f1d 09/14/2009 08:34 pm Aurelien Jarno

Open chr device for all serial ports

Now that labels must be unique, the chr devices can't be opened anymore
within the serial port code (in case they are not already opened in
vl.c), as they end up with the same label. Instead opened so
non-assigned one directly in vl.c, with a different label....

b37fc148 09/14/2009 07:40 pm Gerd Hoffmann

unbreak ppc/prep

Changes: * added isa bus, hooked up to the system bus. Not sure this is correct,
but 'info pci' lists lists no pci-isa bridge in the machine ...). * switches the default cpu to one which actually works.

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

f80237d4 09/14/2009 06:33 pm Blue Swirl

Add an ISA bus version of m48t59

Many thanks to Gerd Hoffmann for finding and fixing a bug in the initial
version.

Signed-off-by: Blue Swirl <>

042eb37a 09/14/2009 12:16 pm Daniel Jacobowitz

Fix Linux task preemption on Versatile board

Recent versions of the Linux kernel will not preempt CPU-intensive
tasks unless the clock used by sched_clock() works. On -M versatilepb
that's the 24MHz timer in the system controller. It's a very simple
timer, so implement it....

fad8c772 09/14/2009 11:44 am Edgar E. Iglesias

pflash_cfi01: Correct debug build, no functional changes.

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

a6124103 09/14/2009 08:21 am malc

ne2000-isa: Do not free memory owned by qdev

Signed-off-by: malc <>

6ebfda13 09/14/2009 02:55 am malc

alsa/oss: Remove fd transfer handlers before closing oss/alsa fd/handle

Signed-off-by: malc <>

b4f763b8 09/14/2009 02:55 am malc

alsa: Use proper value when testing returned events in alsa_poll_handler

Signed-off-by: malc <>

9332f6a2 09/13/2009 10:42 pm Sebastian Herbszt

configure: change "found" to "find"

Change "ERROR: configure was not able to found it" to
"ERROR: configure was not able to find it".

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

50108930 09/13/2009 10:38 pm Blue Swirl

Revert "Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190ca"

This reverts commit 91b40c5be84a478e98c0416325844a7f66d0efae.

Signed-off-by: Blue Swirl <>

240324f6 09/13/2009 10:38 pm Blue Swirl

Fix sparc.ld

Makes 91b40c5be84a478e98c0416325844a7f66d0efae unnecessary.

Acked-by: Kirill A. Shutemov <>
Signed-off-by: Blue Swirl <>

0a90e344 09/13/2009 09:50 pm Jan Kiszka

audio: Fix typo that broke QEMU_AUDIO_ADC_TRY_POLL

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

91b40c5b 09/13/2009 04:33 pm Blue Swirl

Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190ca

While i386, x86_64 and Sparc64/OpenBSD still worked after
df70204db53e3611af986f434e74a882bce190ca, Sparc32 and Sparc64 Linux hosts
broke.

Partially revert the commit: make the restored code conditional to...

c5ff6d54 09/13/2009 11:32 am Blue Swirl

Sparc64: make system bus parent of PCI bus

Signed-off-by: Blue Swirl <>

075cd324 09/13/2009 11:32 am Blue Swirl

x86: move a declaration to header

Signed-off-by: Blue Swirl <>

675d6f82 09/13/2009 11:32 am Blue Swirl

x86: add 'const'

Signed-off-by: Blue Swirl <>

0b3652bc 09/13/2009 10:15 am malc

oss: OSS v4 support

a. Use SNDCTL_DSP_POLICY instead of SNDCTL_DSP_SETFRAGMENT
b. Add ability to open device in exclusive mode, thus bypassing vmix

Signed-off-by: malc <>

54762b73 09/13/2009 10:15 am malc

oss: Simplify mmap code

Signed-off-by: malc <>

23054111 09/12/2009 06:52 pm Jan Kiszka

i386: Drop redundant kvm_enabled test

cpu_synchronize_state already does this.

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

6a0b9cc9 09/12/2009 06:20 pm Reimar Döffinger

Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.

Signed-off-by: Reimar Döffinger <>
Signed-off-by: Blue Swirl <>

d8becc35 09/12/2009 06:00 pm Jan Kiszka

Fix xen build after sys-queue renaming

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

34005a00 09/12/2009 04:17 pm Kirill A. Shutemov

Add configure option to compile user targets as PIE

Build uset targers as true PIE if user want to keep qemu
self-virtualizable.

v5:
- Split into to patches: drop link hack and add PIE support
- do not build PIE by default and drop toolchain check

v4:...

df70204d 09/12/2009 04:15 pm Kirill A. Shutemov

Fix text relocations in linux-user targets

There is a link hack in linux-user which produces an executable that
looks like PIE, but always has text relocations since all object files
isn't position-independent (compiled without -fpic/-fpie). Dynamic loader...

5791f45b 09/12/2009 04:14 pm Kirill A. Shutemov

Do not link usermode targets with libhw*.a

Usermode targets are hardware-independed.

Signed-off-by: Kirill A. Shutemov <>
Acked-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

aba1d00a 09/12/2009 03:36 pm Blue Swirl

Work around OpenSolaris sys/regset.h namespace pollution

Signed-off-by: Blue Swirl <>

a2a45a26 09/12/2009 03:36 pm Blue Swirl

Fix signedness warnings on OpenSolaris

Signed-off-by: Blue Swirl <>

d741429a 09/12/2009 03:36 pm Blue Swirl

Add #defines needed by OpenSolaris, fix breakage by the #defines

We need to define XOPEN_SOURCE and EXTENSIONS macros in order to get
CMSG
and TIOCWIN macros defined. But then _POSIX_C_SOURCE gets defined, which
is (incorrectly) used as an indicator for existence of posix_memalign() in osdep.c....

31ff504d 09/12/2009 03:33 pm Blue Swirl

Fix OpenSolaris build breaking typos

Signed-off-by: Blue Swirl <>

c1390903 09/12/2009 12:58 pm Blue Swirl

Add 'static'

Signed-off-by: Blue Swirl <>

de5071c5 09/12/2009 12:58 pm Blue Swirl

Fix a Sparse warning about redefinition of offsetof()

Signed-off-by: Blue Swirl <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

620150dc 09/12/2009 09:19 am Blue Swirl

Try to fix BSD breakage by 806b60248218bd5f74a8b070f5a99a864e8e51c6

Signed-off-by: Blue Swirl <>

15cc9235 09/12/2009 09:19 am Blue Swirl

Include sys-queue.h early to override system queue definitions on BSD

Signed-off-by: Blue Swirl <>

47faadc6 09/12/2009 09:19 am Blue Swirl

Unbreak BSD: use qemu_fdatasync instead of fdatasync

Signed-off-by: Blue Swirl <>

b2e3b6e9 09/12/2009 02:18 am malc

Use proper format conversion specifier when printing size_t value

And untabify this while we are at it.

Signed-off-by: malc <>

2182349d 09/12/2009 01:50 am malc

oss: Unbreak mmaping the ability to mmap oss fd on Linux

Signed-off-by: malc <>

435c247a 09/12/2009 01:50 am malc

gus: Do not manually free the state, qdev does it for us

Signed-off-by: malc <>

713a98f8 09/12/2009 01:50 am malc

audio: poll mode infrastructure

Signed-off-by: malc <>

dd8a5649 09/12/2009 01:50 am malc

oss: poll mode handling

Signed-off-by: malc <>

8b438ba3 09/12/2009 01:50 am malc

alsa: poll mode handling

Signed-off-by: malc <>

057fa65c 09/12/2009 01:50 am malc

audio: remove lsbindex/popcount in favour of host-utils's ctz32

Signed-off-by: malc <>

e6cb4d45 09/11/2009 07:10 pm Juan Quintela

vmstate: port hpet device

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

747791f1 09/11/2009 07:10 pm Juan Quintela

vmstate: port serial device

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

7e72abc3 09/11/2009 07:10 pm Juan Quintela

vmstate: port cirrus_vga device

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

2637c754 09/11/2009 07:10 pm Gleb Natapov

kvm_arch_get_registers() shouldn't be called directly

Direct call to kvm_arch_get_registers() bypass logic in
cpu_synchronize_state()

Signed-off-by: Gleb Natapov <>
Signed-off-by: Anthony Liguori <>

bcb58d9a 09/11/2009 07:10 pm Juan Quintela

vmstate: port vmmouse device

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

3c619b59 09/11/2009 07:10 pm Juan Quintela

vmstate: port pckbd device

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

80a04bbe 09/11/2009 07:10 pm Juan Quintela

vmstate: add uint64 array support

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

3e9e9888 09/11/2009 07:10 pm Juan Quintela

vmstate: port ioapic device

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

67f0875e 09/11/2009 07:10 pm Juan Quintela

hpet: it is imposible that qemu_timer field is NULL at this point

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

7b5045c5 09/11/2009 07:10 pm Juan Quintela

vmstate: port dma device

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

7d2edd40 09/11/2009 07:10 pm Juan Quintela

vmstate: port fw_cfg device

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

77eea838 09/11/2009 07:10 pm Juan Quintela

vmstate: port i8259 device

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

80cd83e7 09/11/2009 07:10 pm Juan Quintela

vmstate: add support for uint8_t equal

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

d7a6c270 09/11/2009 07:10 pm Juan Quintela

vmstate: port fdc device

We can't move fifo back to an embeded array because it needs to be aligned

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

632cf073 09/11/2009 07:10 pm Juan Quintela

vmstate: add support for arrays of uint16_t

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

274dfed8 09/11/2009 07:10 pm Anthony Liguori

Make get_ticks_per_sec() a static inline

ticks_per_sec is a constant. There's no need to store it as a variable as it
never changes since our time is based on units.

Convert get_ticks_per_sec() to a static inline and move the constant into
qemu-timer.h. Remove all references to QEMU_TIMER_BASE so that we consistently...

1eb7538b 09/11/2009 07:10 pm Juan Quintela

vmstate: add sensible arguments to vmstate_unregister()

vmsd alone is not enugh, because we can have several structs saved with the same description (vmsd).

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

752ff2fa 09/11/2009 07:10 pm Juan Quintela

vmstate: rename run_after_load() -> post_load()

This naming was used in kvm tree, and is easier to remember

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

fd4d52de 09/11/2009 07:10 pm Juan Quintela

vmstate: Add pre_load() hook

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

8fb0791d 09/11/2009 07:10 pm Juan Quintela

vmstate: Add pre/post_save() hooks

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

e7f4eff7 09/11/2009 07:10 pm Juan Quintela

vmstate: port cpu_comon

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

6ee093c9 09/11/2009 06:19 pm Juan Quintela

Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

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

6f68e33e 09/11/2009 06:19 pm Juan Quintela

timers: Createt TimersState and put all timers state there

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

2faf58cd 09/11/2009 06:19 pm Juan Quintela

timers: move them to VMState

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

b03b2e48 09/11/2009 06:19 pm Juan Quintela

timers: remove useless check

loadvm_state is called from: vl.c during startup, vmstart() is called after finishing loading. The other caller do_loadvm() does the call after a vm_stop(). At both places where we can be saving state we are stoped a few lines before...

1a621c8d 09/11/2009 06:19 pm Juan Quintela

ram: remove support for loading v1

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

94fb0909 09/11/2009 06:19 pm Juan Quintela

ram: Remove SaveVM Version 2 support

It don't work. It fails in this check

if (qemu_get_be32(f) != last_ram_offset)

With 512MB of ram, values were for me:

v = 20c00000 last_ram_offset = 20840000

Last time that some code changed that was this one....

bbfe1408 09/11/2009 06:19 pm Juan Quintela

Remove SaveVM v2 support

In previosu series I remove v2 support for RAM (that was the version that was
supported when SaveVM v3 appeared). Now we can't load RAM for any image saved in SaveVM v2, we can as well remove SaveVM v2 entirely.

Note: That SaveVM RAM was at v2 when General SaveVM support went from v2 to v3 makes talking about versions confusing at least...

d6c983cd 09/11/2009 06:19 pm Gerd Hoffmann

convert windows console chardev to QemuOpts.

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

48b76496 09/11/2009 06:19 pm Gerd Hoffmann

convert tty + parport chardevs to QemuOpts.

new cmd line syntax:
-chardev tty,id=name,path=/dev/tty*
-chardev parport,id=name,path=/dev/parport*

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

6ea314d9 09/11/2009 06:19 pm Gerd Hoffmann

convert vc chardev to QemuOpts.

new cmd line syntax:
-chardev vc,id=name
-chardev vc,id=name,width=pixels,height=pixels
-chardev vc,id=name,cols=chars,rows=chars

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

7591c5c1 09/11/2009 06:19 pm Gerd Hoffmann

convert mux chardev to QemuOpts.

new cmd line syntax: you can add mux=1 to any chardev to enable muxing,
then attach it multiple times, like this:

-chardev pty,name=mux,mux=on

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

7e1b35b4 09/11/2009 06:19 pm Gerd Hoffmann

convert udp chardev to QemuOpts.

While being at it: create a new inet_dgram_opts() function for udp setup,
so udp can handle IPv6 now.

new cmd line syntax:
-chardev udp,id=name,host=remotehost,port=remoteport,\
localaddr=bindaddr,localport=bindport...

c845f401 09/11/2009 06:19 pm Gerd Hoffmann

Allow -serial chardev:<name>

Lets put -chardev into use now. With this patch applied chardev:name is
accepted as chardev specification everywhere, i.e. now you can:

-chardev stdio,id=ttyS0
-serial chardev:ttyS0

which does the same as '-serial stdio"....

06113719 09/11/2009 06:19 pm Gerd Hoffmann

qdev: add parser for chardev properties

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

a7aec5da 09/11/2009 06:19 pm Gerd Hoffmann

monitor: fix muxing

make the mux driver send mux_in and mux_out events when switching
focus while hooking up more handlers.

stop using CharDriverState->focus in monitor.c, track state using
the mux events instead. This also removes the implicit assumtion...

799f1f23 09/11/2009 06:19 pm Gerd Hoffmann

move mux focus field from CharDriverState to MuxDriver

Now that monitor stopped using focus we can make it internal
to the mux driver.

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

4490dadf 09/11/2009 06:19 pm Gerd Hoffmann

convert pty chardev to QemuOpts.

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

3c17affb 09/11/2009 06:19 pm Gerd Hoffmann

convert stdio chardev to QemuOpts.

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

f0457e8d 09/11/2009 06:19 pm Gerd Hoffmann

convert msmouse chardev to QemuOpts.

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

dc1c21e6 09/11/2009 06:19 pm Gerd Hoffmann

convert braille chardev to QemuOpts.

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