Statistics
| Branch: | Revision:

root @ 151f7749

# Date Author Comment
4495d6a7 05/22/2009 06:50 pm Jan Kiszka

kvm: Introduce kvm_set_migration_log

Introduce a global dirty logging flag that enforces logging for all
slots. This can be used by the live migration code to enable/disable
global logging withouth destroying the per-slot setting.

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

62518b8b 05/22/2009 06:50 pm Jan Kiszka

kvm: Fix dirty log temporary buffer size

The buffer passed to KVM_GET_DIRTY_LOG requires one bit per page. Fix
the size calculation in kvm_physical_sync_dirty_bitmap accordingly,
avoiding allocation of extremly oversized buffers.

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

151f7749 05/22/2009 06:50 pm Jan Kiszka

kvm: Rework dirty bitmap synchronization

Extend kvm_physical_sync_dirty_bitmap() so that is can sync across
multiple slots. Useful for updating the whole dirty log during
migration. Moreover, properly pass down errors the whole call chain.

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

efa84d43 05/22/2009 06:50 pm Kevin Wolf

Convert qemu-img convert to new bdrv_create

This is part two of the qemu-img conversion. This really works the same as the
previous conversion of qemu-img create: It introduces a new -o option for the
generic approach and adds the old-style options to this option set....

73c632ed 05/22/2009 06:50 pm Kevin Wolf

qcow2: Allow different cluster sizes

Add an option to specify the cluster size of a newly created qcow2 image.
Default is 4k which is the same value that was hard-coded before.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

e69917e2 05/22/2009 06:50 pm Jan Kiszka

kvm: Conditionally apply workaround for KVM slot handling bug

Only apply the workaround for broken slot joining in KVM when the
capability was not found that signals the corresponding fix existence.

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

daa91de2 05/22/2009 06:50 pm Glauber Costa

allow changing the speed of a running migration

This patch allow us to call migrate_set_speed on running
migrations. This should allow mgmt tools to increase the allocated
bandwidth of a running migration if there is no progress, and they
really want the migration to succeed....

d3f24367 05/22/2009 06:50 pm Kevin Wolf

Create qemu-option.h

This patch creates a new header file and the corresponding implementation file
for parsing of parameter strings for options (like used in -drive). Part of
this is code moved from vl.c (so qemu-img can use it later).

The idea is to have a data structure describing all accepted parameters. When...

0e7e1989 05/22/2009 06:50 pm Kevin Wolf

Convert all block drivers to new bdrv_create

Now we can make use of the newly introduced option structures. Instead of
having bdrv_create carry more and more parameters (which are format specific in
most cases), just pass a option structure as defined by the driver itself....

9ea2ea71 05/22/2009 06:50 pm Kevin Wolf

Convert qemu-img create to new bdrv_create

This patch changes qemu-img to actually use the new bdrv_create interface. It
translates the old-style qemu-img options which have been bdrv_create2
parameters or flags so far to option structures. As the generic approach, it...

19629537 05/22/2009 06:50 pm Glauber Costa

introduce set_rate_limit function for QEMUFile

This patch converts the current callers of qemu_fopen_ops().

Signed-off-by: Glauber Costa <>
Signed-off-by: Anthony Liguori <>

c833ab73 05/22/2009 06:50 pm Anthony Liguori

Fix segv when passing an unknown protocol

Signed-off-by: Anthony Liguori <>

976305b7 05/22/2009 06:50 pm Gleb Natapov

Minimal ethernet frame length is 64 bytes.

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

ed8b330b 05/22/2009 06:50 pm Gleb Natapov

Don't send all gratuitous packets at once.

Use timer to separate them in time.

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

9f9e28cd 05/22/2009 06:50 pm Glauber Costa

augment info migrate with page status

This patch augments info migrate output with status about:
  • ram bytes remaining
  • ram bytes transferred
  • ram bytes total

This should be enough for management tools to realize
whether or not there is progress in migration. We can...

71b9b0ca 05/22/2009 06:50 pm Anthony Liguori

Partially revert e20a8dff4c0da3827764924139d3bb73962f5d5a

From Paul Brook:

"the fdc is tied to the ISA DMA engine. We don't currently have a target
independent method of handling inter-device data transfer."

Signed-off-by: Anthony Liguori <>

79eb76ad 05/22/2009 06:50 pm Anthony Liguori

Revert "Fix arm-softmmu breakage"

This reverts commit ec6bd8dea77478f32981a5df49f66ca2430ad19d.

This broke any target that uses virtio. Virtio devices live in libhw and
without whole-archive, the constructors will never be called for virtio.

Signed-off-by: Anthony Liguori <>

993fbfdb 05/22/2009 04:54 am Anthony Liguori

Refactor how display drivers are selected

My previous commit, f92f8afebe, broke -vnc (spotted by Glauber Costa). This
is because it's necessary to tell when the no special display parameters have
been passed and default to SDL or VNC appropriately.

This refactors the display selection logic to be less complicated which has...

0c257437 05/22/2009 04:54 am Anthony Liguori

Introduce is_default field for QEMUMachine

f80f9ec changed the order that machines are registered which had the effect of
changing the default machine. This changeset introduces a new is_default field
so that machine types can declare that they are the default for an architecture....

ec6bd8de 05/21/2009 09:22 pm Blue Swirl

Fix arm-softmmu breakage

Don't use whole-archive for hwlib or libqemu objects

Signed-off-by: Blue Swirl <>

2567f579 05/21/2009 06:54 pm Blue Swirl

Compile most Xen files only once

Signed-off-by: Blue Swirl <>

e20a8dff 05/21/2009 06:54 pm Blue Swirl

Compile fdc, escc and SCSI controllers only once

Signed-off-by: Blue Swirl <>

368b90db 05/21/2009 06:54 pm Blue Swirl

Let the venomous poison spread to more identifiers

Signed-off-by: Blue Swirl <>

f80f9ec9 05/21/2009 04:47 pm Anthony Liguori

Convert machine registration to use module init functions

This cleans up quite a lot of #ifdefs, extern variables, and other ugliness.

Signed-off-by: Anthony Liguori <>

f92f8afe 05/21/2009 04:47 pm Anthony Liguori

Eliminate --disable-gfx-check and make VNC default when SDL not available

--disable-gfx-check predates VNC server support.  It made sense back then
because the only thing you could do without SDL was use -nographic mode or
similar tricks. Since this is a very advanced mode of operation, gfx-check...
eb0b64f7 05/21/2009 04:40 am malc

Do not attempt to allocate sn_tab when there are no snapshots

This was caught by a7d27b536ffc0773028a90f14580552c0c3ddb2a which
aborted on this attempt, thanks to Alex Ivanov for report.

Signed-off-by: malc <>

0a656f5f 05/21/2009 04:30 am malc

Cast pointer arguments of get/setsockopt, send to void * to keep GCC
from producing a warning about pointer type mismatches with Winsock

Signed-off-by: malc <>

9f8fd694 05/20/2009 05:24 pm Mark McLoughlin

kvm: add error message for when SMP is requested

Right now, if you try e.g. '-smp 2' you just get 'failed to
initialize KVM'.

Signed-off-by: Mark McLoughlin <>

42fa1c2e 05/20/2009 05:24 pm Richard W.M. Jones

Remove initrd warning message

Signed-off-by: Richard W.M. Jones <>

e6ade764 05/20/2009 05:12 pm Glauber Costa

keep initrd in below 4g area.

initrd must be kept on the memory area below 4g. By not doing this,
we're seeing guests break while using -initrd and values of -mem
superior to 4096.

Signed-off-by: Glauber Costa <>

e332340a 05/20/2009 05:12 pm Jean-Christophe Dubois

Fix NULL alarm_timer pointer at exit

This fixes a SIGSEGV error on qemu exit.

Here is the valgrind output related to this error

3648 Process terminating with default action of signal 11 (SIGSEGV)
3648 Access not within mapped region at address 0x8...
9ed415b2 05/20/2009 05:12 pm Jean-Christophe Dubois

initialize struct sigevent before timer_create

When qemu is run under valgrind, valgrind shows the following output
on exit:

3648 1 errors in context 2 of 2:
3648 Syscall param timer_create(evp) points to uninitialised byte(s)
3648 at 0x54E936A: timer_create (in /lib/librt-2.9.so)...
e561a280 05/20/2009 05:12 pm Hollis Blanchard

remove gcc 3.x requirement from documentation

This text is no longer accurate. After the patch is applied, the
generated version at http://www.nongnu.org/qemu/qemu-doc.html should be
regenerated.

This patch is also a candidate for the stable branch. (The URL above is...

76ae317f 05/20/2009 05:12 pm Mark McLoughlin

kvm: work around supported cpuid ioctl() brokenness

KVM_GET_SUPPORTED_CPUID has been known to fail to return -E2BIG
when it runs out of entries. Detect this by always trying again
with a bigger table if the ioctl() fills the table.

Signed-off-by: Mark McLoughlin <>

95b134ea 05/20/2009 05:12 pm Uri Lublin

migrate.c: migrate_fd_put_buffer: Do not busyloop: stop writing if EWOULDBLOCK

The migration code is non-blocking, designed for live migration.

Practically migrate_fd_put_buffer busy-loops trying to write, as
on many machines EWOULDBLOCK==EAGAIN (look in include/asm-generic/errno.h)....

3a8bae3e 05/20/2009 02:27 am malc

Remove dead code

Signed-off-by: malc <>

26d64a85 05/19/2009 09:29 pm malc

Format per CODING_STYLE

Signed-off-by: malc <>

a7d27b53 05/19/2009 09:29 pm malc

Abort on attempts to allocate zero bytes

http://marc.info/?t=124267873300015&r=1&w=2

Signed-off-by: malc <>

20094efc 05/19/2009 07:57 pm malc

Unbreak out-of-tree builds

Signed-off-by: malc <>

1ad2134f 05/19/2009 06:17 pm Paul Brook

Hardware convenience library

The only target dependency for most hardware is sizeof(target_phys_addr_t).
Build these files into a convenience library, and use that instead of
building for every target.

Remove and poison various target specific macros to avoid bogus target...

8a637d44 05/19/2009 06:05 pm Paul Brook

Disable >4G ram support on 32-bit targets

If the target only has a 32-bit physical address space then
the code to map >4G ram breaks horribly, and causes compiler warnings.

Signed-off-by: Paul Brook <>

909b69cf 05/19/2009 05:58 pm Paul Brook

Only define __llseek if it is going to be used

Signed-off-by: Paul Brook <>

425be425 05/19/2009 05:42 pm Paul Brook

Avoid implicit truncation compiler warnings

Signed-off-by: Paul Brook <>

bba831e8 05/19/2009 04:52 pm Paul Brook

Remove obsolete BIOS_SIZE from sysemu.h

BIOS_SIZE is no longer needed by vl.c, so there's no point having it in
sysemu.h.

Signed-off-by: Paul Brook <>

fd6dc90b 05/18/2009 11:24 pm Edgar E. Iglesias

cris: First shot at qdev for CRIS interrupts.

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

96d7ddde 05/18/2009 10:44 pm Edgar E. Iglesias

etrax: Don't keep the passed irq pointer.

Copy passed irq object at channel connect.

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

678fdca8 05/18/2009 10:34 pm Edgar E. Iglesias

etrax: Remove unused eth irq line.

The ethernet blocks irq line to report errors is unimplemented in QEMU.
Remove it for now.

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

340d96e7 05/18/2009 08:27 pm Paul Brook

Syborg virtio bindings.

Implement Syborg device bindings for virtio-net.

Signed-off-by: Paul Brook <>

53c25cea 05/18/2009 08:26 pm Paul Brook

Separate virtio PCI code

Split the PCI host bindings from the VRing transport implementation.

Signed-off-by: Paul Brook <>

d8ee7665 05/17/2009 05:26 pm malc

Only shutdown video subsytem in sdl_cleanup

Depending on the order in which atexit handlers are called SDL might
try to join on an audio thread without said thread ever being notified
that it must stop, hence QEMU will forever block in pthread_join call....

89a740e1 05/17/2009 04:55 pm Paul Brook

Consistently use uint64_t for int properties

I apparently failed to do this properly on the first attempt.

Signed-off-by: Paul Brook <>

979d98ca 05/16/2009 01:28 pm Edgar E. Iglesias

ETRAX-PIC: Untabify.

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

3b1fd90e 05/16/2009 03:14 am Edgar E. Iglesias

ETRAX-TIMER: qdevify.

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

84ceea57 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX-TIMER: Untabify.

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

2a9859e7 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX-SER: Untabify.

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

4b816985 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX-SER: qdevify.

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

73cfd29f 05/16/2009 03:13 am Edgar E. Iglesias

ETRAX: Simplify PIC interface.

Instead of exporting a custom structure to represent different
interrupt types, just export the irq array and have the top
elements point to the NMI lines.

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

df84e4f3 05/16/2009 12:36 am Nathan Froyd

support ELF_HWCAP for PPPC

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

bcd4933a 05/16/2009 12:36 am Nathan Froyd

linux-user: ppc signal handling

Implement setup_{,rt_}frame and do_{,rt_}sigreturn for PPC 32-bit. Use
the same TARGET_QEMU_ESIGRETURN hack as for MIPS to avoid clobbering
register state on a sigreturn.

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

c29b735c 05/16/2009 12:36 am Nathan Froyd

target-ppc: expose cpu capability flags

Do this so other pieces of code can make decisions based on the
capabilities of the CPU we're emulating.

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

d33fd9d1 05/15/2009 05:53 pm Edgar E. Iglesias

ETRAX: Correct passing of kernel command line.

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

21aeb343 05/15/2009 05:18 am Juha Riihimäki

fix ARMv7 data processing instructions

ARMv7 defines a new behavior for ARM data processing instructions
compared to earlier architecture revisions; when the destination
register is R15, a Branch and Exchange operation is executed rather
than a simple Branch to the target address. This patch corrects the...

e9bb4aa9 05/15/2009 04:48 am Juha Riihimäki

fix ARMv7 data processing instructions

Modernize parts of target-arm/translate.c in preparation for the
modifications in the subsequent patch in this patch set. This is done
in order to avoid writing new code to target-arm/translate.c that
would use deprecated methods and/or variables....

f7897430 05/15/2009 02:06 am Anthony Liguori

Fix module initialization when more than 1 class is in use

Now that we're using enums for module types, it makes no sense to bother keeping
a list of module types when we know exactly how many they are.

Switching to an array simplifies the code and eliminates the aforementioned bug....

4af39611 05/15/2009 01:11 am Paul Brook

Syborg (Symbian Virtual Platform) board

A virtual reference platform for SymbianOS development/debugging.

Signed-off-by: Paul Brook <>

dcc5e4a0 05/15/2009 01:03 am Anthony Liguori

Fix warning on WIN32

Signed-off-by: Anthony Liguori <>

9abbdbfe 05/15/2009 01:03 am Anthony Liguori

Fix build on Solaris and WIN32

Signed-off-by: Anthony Liguori <>

1de9610c 05/15/2009 12:35 am Paul Brook

Stellaris I2C qdev conversion

Signed-off-by: Paul Brook <>

90d37239 05/15/2009 12:35 am Paul Brook

SSP bus framework

Signed-off-by: Paul Brook <>

5493e33f 05/15/2009 12:35 am Paul Brook

Stellaris SSI qdev conversion

Signed-off-by: Paul Brook <>

a984a69e 05/15/2009 12:35 am Paul Brook

PXA SSI qdev conversion

Signed-off-by: Paul Brook <>

b4496b13 05/15/2009 12:35 am Paul Brook

PL080 qdev conversion

Signed-off-by: Paul Brook <>

07e3af9a 05/15/2009 12:35 am Paul Brook

Virtio-blk qdev conversion

Signed-off-by: Paul Brook <>

2d72c572 05/15/2009 12:35 am Paul Brook

Virtio-balloon qdev conversion

Signed-off-by: Paul Brook <>

0e058a8a 05/15/2009 12:35 am Paul Brook

Virtio-console conversion

Signed-off-by: Paul Brook <>

0027b06d 05/15/2009 12:35 am Paul Brook

ARM PCI host qdev conversion

Signed-off-by: Paul Brook <>

fe7e8758 05/15/2009 12:35 am Paul Brook

ARM GIC qdev conversion

Signed-off-by: Paul Brook <>

b47b50fa 05/15/2009 12:35 am Paul Brook

MusicPal qdev conversion

Signed-off-by: Paul Brook <>

fe8de492 05/15/2009 12:35 am Paul Brook

I2C qdev support

Signed-off-by: Paul Brook <>

d2199005 05/15/2009 12:35 am Paul Brook

SSD0303 qdev conversion

Signed-off-by: Paul Brook <>

6c0bd6bd 05/15/2009 12:35 am Paul Brook

MAX7310 I2C qdev conversion

Signed-off-by: Paul Brook <>

2d9401aa 05/15/2009 12:35 am Paul Brook

LM832x qdev conversion

Signed-off-by: Paul Brook <>

e3b42536 05/15/2009 12:35 am Paul Brook

PXA2xx I2C slave qdev conversion

Signed-off-by: Paul Brook <>

697454eb 05/15/2009 12:35 am Paul Brook

TMP105 qdev conversion

Signed-off-by: Paul Brook <>

cdbe40ca 05/15/2009 12:35 am Paul Brook

WM8750 qdev coversion

Signed-off-by: Paul Brook <>

d3356811 05/15/2009 12:35 am Paul Brook

TWL92230 qdev conversion

Signed-off-by: Paul Brook <>

fd1eb2ea 05/15/2009 12:35 am Paul Brook

TOSC DAC i2c qdev voncersion

Signed-off-by: Paul Brook <>

1ea96673 05/15/2009 12:35 am Paul Brook

SMBus qdev conversion

Signed-off-by: Paul Brook <>

0077147e 05/15/2009 12:35 am Paul Brook

Remove bogus omap i2c slave code

Signed-off-by: Paul Brook <>

e325e1f8 05/15/2009 12:35 am Paul Brook

I2C cleanup

Signed-off-by: Paul Brook <>

a5580466 05/15/2009 12:35 am Paul Brook

Stellaris ethernet qdev conversion

Signed-off-by: Paul Brook <>

a63bdb31 05/15/2009 12:35 am Paul Brook

PL031 qdev conversion

Signed-off-by: Paul Brook <>

aa9311d8 05/15/2009 12:35 am Paul Brook

PL181 qdev conversion

Signed-off-by: Paul Brook <>

a7086888 05/15/2009 12:35 am Paul Brook

Integrator/CP core qdev conversion

Signed-off-by: Paul Brook <>

6a824ec3 05/15/2009 12:35 am Paul Brook

ARM timers qdev conversion

Signed-off-by: Paul Brook <>

418dcf5b 05/15/2009 12:35 am Paul Brook

smc91c111 qdev conversion

Signed-off-by: Paul Brook <>

cfb9de9c 05/15/2009 12:35 am Paul Brook

ESP SCSI qdev conversion

Signed-off-by: Paul Brook <>

97aff481 05/15/2009 12:35 am Paul Brook

PL190 qdev conversion

Signed-off-by: Paul Brook <>

3950f18b 05/15/2009 12:35 am Paul Brook

Versatile/PB core qdev conversion

Signed-off-by: Paul Brook <>

82634c2d 05/15/2009 12:35 am Paul Brook

ARM RealView sytem controller qdev conversion

Signed-off-by: Paul Brook <>