Statistics
| Branch: | Revision:

root @ fc87e185

# Date Author Comment
fc87e185 09/05/2010 12:50 pm Alexander Graf

KVM: PPC: Add level based interrupt logic

KVM on PowerPC used to have completely broken interrupt logic. Usually,
interrupts work by having a PIC that pulls a line up/down, so the CPU knows
that an interrupt is active. This line stays active until some action is...

ba5e7f82 09/04/2010 01:11 pm Izumi Tsutsui

vnc: use bswapNN() rather than bswap_NN()

bswap_NN() variants are not always available in CONFIG_MACHINE_BSWAP_H case
and bswapNN() are public APIs in "bswap.h".

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

49e3fcc2 09/04/2010 12:55 pm Serge Ziryukin

vnc: tight: remove unused variable

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

ad0a4ac1 09/04/2010 12:53 pm Avi Kivity

Fix ivshmem build on 32-bit hosts

stat() fields can be more or less anything depending on configuration, cast
explicitly to uint64_t to avoid printf() format mismatches.

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

c93031e5 09/04/2010 12:52 pm Aneesh Kumar K.V

virtio-9p: Make sure -virtfs option works correctly

When making copy of arguments we were doing partial copy

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

1b27d7a1 09/04/2010 12:52 pm Jes Sorensen

hw/ivshmem.c don't check for negative values on unsigned data types

There is no need to check for dest < 0 or vector >= 0 as both are
uint16_t.

This should fix problems with broken build with aggressive compiler
flags. Reported by Xudong Hao <>...

7390cdfb 09/04/2010 12:45 pm Jes Sorensen

Change DPRINTF to do{}while(0) to avoid compiler warning

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

37a05af0 09/04/2010 12:45 pm Jes Sorensen

load_multiboot(): get_image_size() returns int

Do not store return of get_image_size() in a uint32_t as it makes it
impossible to detect error returns from get_image_size.

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

2116eff9 09/04/2010 12:45 pm Jes Sorensen

size_t is unsigned, change to ssize_t to handle errors from tight_compress_data()

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

26056e0c 09/04/2010 12:45 pm Jes Sorensen

Fix repeated typo: was "end if list" instead of "end of list"

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

e301b13d 09/04/2010 12:45 pm Jes Sorensen

Respect return value from nbd_client()

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

0a4eb864 09/04/2010 12:45 pm Jes Sorensen

Remove unused argument for nbd_client()

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

cb93bbdd 08/31/2010 11:16 pm Blue Swirl

Fix OpenBSD linker warning

Fix a warning from OpenBSD linker:
../libhw32/vl.o(.text+0x5c3c): In function `main':
/src/qemu/vl.c:2335: warning: sprintf() is often misused, please use snprintf()

Signed-off-by: Blue Swirl <>

d729bb9a 08/30/2010 11:06 pm Isaku Yamahata

acpi: fix file size check with -acpitable.

acpi table file can be modified during load so file size check
should be more strict.
pointer calculation should be after qemu_realloc(). not before realloc().

Signed-off-by: Isaku Yamahata <>...

02a89b21 08/28/2010 11:50 am Isaku Yamahata

isapc: fix segfault.

https://bugs.launchpad.net/bugs/611646
reports that ./i386-softmmu/qemu -M isapc segfaults.
This patch fixes the segfault introduced by
f885f1eaa8711c06033ceb1599e3750fb37c306f

It's because i440fx_state in pc_init1() isn't initialized....

95c318f5 08/28/2010 11:47 am Gleb Natapov

Fix segfault in mmio subpage handling code.

It is possible that subpage mmio is registered over existing memory
page. When this happens "memory" will have real memory address and not
index into io_mem array so next access to the page will generate
segfault. It is uncommon to have some part of a page to be accessed as...

9e84a470 08/26/2010 09:04 pm Blue Swirl

etraxfs_eth: correct use of ! and &

Combining bitwise AND and logical NOT is suspicious.

Fixed by this Coccinelle script:
// From http://article.gmane.org/gmane.linux.kernel/646367
@ expression E1,E2; @
(
!E1 & !E2 |
- !E1 & E2
+ !(E1 & E2)
)

Acked-by: Edgar E. Iglesias <>...

8aa80ff8 08/26/2010 08:57 pm Blue Swirl

Sparc: update OpenBIOS images to r859

Update Sparc32 and Sparc64 OpenBIOS images to SVN revision 859.

Bring also pc-bios/README up to date including the update performed by
419ef5f1c6a9614e8ddcb0b0f826de692e7e4a43.

Signed-off-by: Blue Swirl <>

52ba784d 08/26/2010 07:18 pm Hollis Blanchard

Fix "make install" with a cross toolchain

We must be able to use a non-native strip executable, but not all
versions of 'install' support the --strip-program option (e.g.
OpenBSD). Accordingly, we can't use 'install -s', and we must run strip
separately....

d23ab920 08/26/2010 07:18 pm Hollis Blanchard

ppc4xx: correct SDRAM controller warning message condition

The message "Truncating memory to %d MiB to fit SDRAM controller limits"
should be displayed only when a user chooses an amount of RAM which
can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which...

a86299e5 08/26/2010 07:18 pm Hollis Blanchard

ppc4xx: don't unregister RAM at reset

The PowerPC 4xx SDRAM controller emulation unregisters RAM in its reset
callback. However, qemu_system_reset() is now called at initialization
time, so all RAM is unregistered before starting the guest (!).

Signed-off-by: Hollis Blanchard <>

ceee6da6 08/26/2010 07:18 pm Hollis Blanchard

ppc4xx: load Bamboo kernel, initrd, and fdt at fixed addresses

We can't use the return value of load_uimage() for the kernel because it
can't account for BSS size, and the PowerPC kernel does not relocate
blobs before zeroing BSS.

Instead, we now load at the fixed addresses chosen by u-boot (the normal...

419ef5f1 08/26/2010 07:15 pm Alexander Graf

PPC: Update openbios binary to r859

This updates the openBIOS binary to r589, adding support for PPC PV feature
pass-through in KVM.

Signed-off-by: Alexander Graf <>

45024f09 08/26/2010 07:13 pm Alexander Graf

PPC: Add PV hypercall transport through fw_cfg

On KVM for PPC we need to tell the guest which instructions to use when
doing a hypercall. The clean way to do this is to go through an ioctl
from userspace and passing it on to the guest using the device tree....

2446333c 08/24/2010 06:22 pm Blue Swirl

Rearrange block headers

Changing block.h or blockdev.h resulted in recompiling most objects.

Move DriveInfo typedef and BlockInterfaceType enum definitions
to qemu-common.h and rearrange blockdev.h use to decrease churn.

Signed-off-by: Blue Swirl <>

e945fb76 08/23/2010 11:10 pm Anthony Liguori

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

0ec0291d 08/23/2010 01:11 am Miguel Di Ciurcio Filho

QMP/monitor: update do_info_version() to output broken down version string

This code was originally developed by Daniel P. Berrange <>

Signed-off-by: Miguel Di Ciurcio Filho <>
Signed-off-by: Luiz Capitulino <>...

05705ce2 08/23/2010 01:11 am Luiz Capitulino

QMP doc: Add 'Stability Considerations' section

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

d29f3196 08/23/2010 01:11 am Luiz Capitulino

QMP: Update README file

A number of changes I prefer to do in one shot:

- Fix example
- Small clarifications
- Add multiple monitors example
- Add 'Development Process' section

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

916452df 08/23/2010 01:11 am Alex Williamson

VGA: Don't register deprecated VBE range

Old versions of the BOCHs VGA BIOS (cira 2003) made use of VBE
registers at 0xff80/81. In VBE API version 0xb0c2 these were
moved to 0x1ce/cf. Unfortunately, QEMU still registers handlers
for the old range. If a guest attempts to assign an I/O device...

dfe795e7 08/23/2010 01:11 am Gerd Hoffmann

QemuOpts: allow new option groups be registered at runtime.

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

3329f07b 08/23/2010 01:11 am Gerd Hoffmann

QemuOpts: make most qemu_*_opts static

Switch tree to lookup-by-name using qemu_find_opts().
Also hook up virtfs options so qemu_find_opts works for them too.

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

03b0ba70 08/23/2010 01:11 am Gerd Hoffmann

compile -fsdev and -virtfs cmd line options unconditionally.

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

6597e1a6 08/23/2010 01:11 am Miguel Di Ciurcio Filho

QMP: update 'query-version' documentation

Update the documentation of 'query-version' to output the string version broken
down.

Signed-off-by: Miguel Di Ciurcio Filho <>
Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>

ac71103d 08/23/2010 12:48 am Yoshiaki Tamura

vnc: check fd before calling qemu_set_fd_handler2() in vnc_client_write()

Setting fd = -1 to qemu_set_fd_handler2() causes bus error at FD_SET
in main_loop_wait().

Signed-off-by: Yoshiaki Tamura <>
Signed-off-by: Anthony Liguori <>

5ccaa4ce 08/23/2010 12:19 am Bernhard Kohl

pckbd: support for commands 0xf0-0xff: Pulse output bit

I have a guest OS which sends the command 0xfd to the keyboard
controller during initialization. To get rid of the message
"qemu: unsupported keyboard cmd=0x%02x\n" I added support for
the pulse output bit commands....

d20878d2 08/23/2010 12:19 am Yoshiaki Tamura

arch_init: replace tabs by spaces.

Signed-off-by: Yoshiaki Tamura <>
Signed-off-by: Anthony Liguori <>

9742bf26 08/23/2010 12:19 am Yoshiaki Tamura

exec: replace tabs by spaces.

Signed-off-by: Yoshiaki Tamura <>
Signed-off-by: Anthony Liguori <>

6977dfe6 08/23/2010 12:19 am Yoshiaki Tamura

exec: remove code duplication in qemu_ram_alloc() and qemu_ram_alloc_from_ptr()

Since most of the code in qemu_ram_alloc() and
qemu_ram_alloc_from_ptr() are duplicated, let
qemu_ram_alloc_from_ptr() to switch by checking void *host, and change
qemu_ram_alloc() to a wrapper....

583cd3cb 08/23/2010 12:19 am Adam Lackorzynski

target-i386: svm: Fix MSRPM check

Correct the calculation of the offset in the msrpm
for the MSR range 0 - 0x1fff.

Signed-off-by: Adam Lackorzynski <>
Signed-off-by: Anthony Liguori <>

8b53a865 08/23/2010 12:19 am Amit Shah

virtio-serial: Cleanup on device hot-unplug

Free malloc'ed memory, unregister from savevm and clean up virtio-common
bits on device hot-unplug.

This was found performing a migration after device hot-unplug.

Reported-by: <>
Signed-off-by: Amit Shah <>...

cc597832 08/21/2010 12:04 am Blue Swirl

Replace qemu_malloc + memset with qemu_mallocz

Replace a qemu_malloc call, followed by a memset, with qemu_mallocz.

Found with this Coccinelle semantic patch, adapted from
Coccinelle test package rule 94:
@
type T;
expression x;
expression E;
@

- x = (T)qemu_malloc(E)...

66fe09ee 08/21/2010 12:03 am Blue Swirl

Use ARRAY_SIZE macro

Replace array size calculations with ARRAY_SIZE macro.

Implemented with this Coccinelle semantic patch, adapted from
Linux kernel:
@
type T;
T[] E;
@

- (sizeof(E)/sizeof(*E))
+ ARRAY_SIZE(E)

@
type T;
T[] E;
@

- (sizeof(E)/sizeof(E[...]))...

f143efa6 08/19/2010 11:24 pm Blue Swirl

Remove useless NULL check for qemu_strdup return value

Found with this Coccinelle semantic patch:
@
expression E;
identifier ptr;
identifier fn ~= "qemu_strn?dup";
@

ptr = fn(E);
-if (ptr == NULL) { ... }

+ptr = fn(E);

Signed-off-by: Blue Swirl <>

8e00128d 08/19/2010 11:24 pm Blue Swirl

Remove useless NULL checks for qemu_malloc return value

Found with this Coccinelle semantic patch:
@
expression E;
identifier ptr;
identifier fn ~= "qemu_mallocz*";
@

ptr = fn(E);
-if (ptr == NULL) { ... }

+ptr = fn(E);

Signed-off-by: Blue Swirl <>

5e77aaa0 08/19/2010 04:44 pm Avi Kivity

QEMUFileBuffered: indicate that we're ready when the underlying file is ready

QEMUFileBuffered stops writing when the underlying QEMUFile is not ready,
and tells its producer so. However, when the underlying QEMUFile becomes
ready, it neglects to pass that information along, resulting in stoppage...

027c9e21 08/19/2010 04:44 pm Amit Shah

rtc: Remove TARGET_I386 from qemu-config.c, enables driftfix

qemu-config.c doesn't contain any target-specific code, and the
TARGET_I386 conditional code didn't get compiled as a result. Removing
this enables the driftfix parameter for rtc.

Signed-off-by: Amit Shah <>...

e447b1a6 08/19/2010 04:44 pm Marcelo Tosatti

set proper migration status on ->write error (v5)

If ->write fails, declare migration status as MIG_STATE_ERROR.

Also, in buffered_file.c, ->close the object in case of an
error.

Fixes "migrate -d "exec:dd of=file", where dd fails to open file.

Signed-off-by: Marcelo Tosatti <>...

760e77ea 08/19/2010 04:44 pm Alex Williamson

savevm: Reset last block info at beginning of each save

If we save more than once we need to reset the last block info or else
only the first save has the actual block info and each subsequent save
will only use continue flags, making them unloadable independently....

9fc391f8 08/15/2010 08:56 pm Artyom Tarasenko

sparc escc IUS improvements (SunOS 4.1.4 fix)

According to scc_escc_um.pdf:
- Reset Highest IUS must update irq status to allow processing
of the next priority interrupt.
- rx interrupt has always higher priority than tx on same channel

The documentation only explicitly says that Reset Highest IUS...

68c18d1c 08/15/2010 12:46 pm Blue Swirl

Fix mingw32 build

Don't define qemu_chr_open_eventfd() on Windows.

Signed-off-by: Blue Swirl <>

cdfb017e 08/15/2010 12:46 pm Stefan Weil

win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

configure adds the macro WIN32_LEAN_AND_MEAN to
QEMU_CFLAGS, and SDL_syswm.h defines it, too.

This results in a compiler warning (redefinition of
WIN32_LEAN_AND_MEAN in SDL_syswm.h. That warning prevents...

0a1574bb 08/15/2010 12:45 pm Stefan Weil

win32: Add missing function setenv

Mingw32 does not provide a declaration and implementation of function
setenv (which is used in sdl.c), so this patch adds both.

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

3dcbf8f9 08/15/2010 12:44 pm Cam Macdonell

Disable build of ivshmem on non-KVM systems

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

1fd74012 08/15/2010 12:44 pm Cam Macdonell

Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

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

b1d6d51d 08/14/2010 11:57 pm Andreas Färber

TCG: Revert ppc64 tcg_out_movi32 change

3b6dac34161bc0a342336072643c2f6d17e0ec45 apparently broke the ppc64 TCG target
compilation in the code path without guest base.

Reverting this line fixes the build.

Signed-off-by: Andreas F?rber <>...

e9119cd8 08/14/2010 11:40 pm Andreas Färber

TCG: Fix Darwin/ppc calling convention recognition

5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X v10.5 ppc.
Apple's GCC 4.0.1 does not define _CALL_DARWIN. Recognize APPLE again as well.

Signed-off-by: Andreas F?rber <>...

6cbf4c8c 08/11/2010 12:25 am Cam Macdonell

RESEND: Inter-VM shared memory PCI device

resend for bug fix related to removal of irqfd

Support an inter-vm shared memory device that maps a shared-memory object as a
PCI device in the guest. This patch also supports interrupts between guest by
communicating over a unix domain socket. This patch applies to the qemu-kvm...

84b89d78 08/11/2010 12:25 am Cam Macdonell

Add qemu_ram_alloc_from_ptr function

Provide a function to add an allocated region of memory to the qemu RAM.

This patch is copied from Marcelo's qemu_ram_map() in qemu-kvm and given the
clearer name qemu_ram_alloc_from_ptr().

Signed-off-by: Cam Macdonell <>...

b6828931 08/11/2010 12:25 am Cam Macdonell

Device specification for shared memory PCI device

Signed-off-by: Cam Macdonell <>
Signed-off-by: Anthony Liguori <>

44f1a3d8 08/11/2010 12:25 am Cam Macdonell

Add function to assign ioeventfd to MMIO.

Signed-off-by: Cam Macdonell <>
Signed-off-by: Anthony Liguori <>

24312968 08/11/2010 12:25 am Cam Macdonell

Support marking a device as non-migratable

A non-migratable device should be removed before migration and re-added after.

Signed-off-by: Cam Macdonell <>
Signed-off-by: Anthony Liguori <>

f040236c 08/09/2010 04:25 pm Anthony Liguori

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

a523eb06 08/09/2010 11:13 am Edgar E. Iglesias

microblaze: Fix the target version of stat64 struct

MicroBlaze needs TARGET_STAT64_HAS_BROKEN_ST_INO.

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

60592edd 08/07/2010 07:04 pm malc

audio/sdl: return on error

Signed-off-by: malc <>

138afb02 08/06/2010 01:21 pm Edgar E. Iglesias

mips: Add support for VInt and VEIC irq modes

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

d087bb3e 08/06/2010 12:15 pm malc

audio/sdl: be more anal about errors

Signed-off-by: malc <>

4b7c0418 08/06/2010 12:15 pm malc

audio: make audio_pt_init block all signals

Signed-off-by: malc <>

14542fea 08/05/2010 03:57 pm Gleb Natapov

kvm: remove guest triggerable abort()

This abort() condition is easily triggerable by a guest if it configures
pci bar with unaligned address that overlaps main memory.

Signed-off-by: Gleb Natapov <>
Signed-off-by: Marcelo Tosatti <>

70fedd76 08/05/2010 03:57 pm Alex Williamson

kvm: Don't walk memory_size == 0 slots in kvm_client_migration_log

If we've unregistered a memory area, we should avoid calling
qemu_get_ram_ptr() on the left over phys_offset cruft in the
slot array. Now that we support removing ramblocks, the
phys_offset ram_addr_t can go away and cause a lookup fault...

748a4ee3 08/04/2010 12:00 am Blue Swirl

sparc32: use FW_CFG_CMDLINE_SIZE

Add support for getting kernel command line size with
FW_CFG_CMDLINE_SIZE.

Signed-off-by: Blue Swirl <>

8a426614 08/03/2010 04:57 pm Kevin Wolf

block: Change bdrv_commit to handle multiple sectors at once

bdrv_commit copies the image to its backing file sector by sector, which
is (surprise!) relatively slow. Let's take a larger buffer and handle more
sectors at once if possible.

With a 1G qcow2 file, this brought the time bdrv_commit takes down from...

f0aa7a8b 08/03/2010 04:57 pm Miguel Di Ciurcio Filho

loadvm: improve tests before bdrv_snapshot_goto()

This patch improves the resilience of the load_vmstate() function, doing
further and better ordered tests.

In load_vmstate(), if there is any error on bdrv_snapshot_goto(), except if the
error is on VM state device, load_vmstate() will return zero and the VM will be...

bd0858bb 08/03/2010 04:57 pm Yoshiaki Tamura

block migration: replace tabs by spaces.

Signed-off-by: Yoshiaki Tamura <>
Signed-off-by: Kevin Wolf <>

336c1c12 08/03/2010 04:57 pm Kevin Wolf

block: Fix bdrv_has_zero_init

Assuming that any image on a block device is not properly zero-initialized is
actually wrong: Only raw images have this problem. Any other image format
shouldn't care about it, they initialize everything properly themselves....

4be9762a 08/03/2010 04:57 pm Markus Armbruster

block: Change bdrv_eject() not to drop the image

bdrv_eject() gets called when a device model opens or closes the tray.

If the block driver implements method bdrv_eject(), that method gets
called. Drivers host_cdrom implements it, and it opens and closes the...

953844d1 08/03/2010 04:57 pm Andrea Arcangeli

ide: Avoid canceling IDE DMA

The reason for not actually canceling the I/O is because with
virtualization and lots of VM running, a guest fs may mistake a
overload of the host, as an IDE timeout. So rather than canceling the
I/O, it's safer to wait I/O completion and simulate that the I/O has...

5933e8a9 08/02/2010 09:49 pm Artyom Tarasenko

fix last cpu timer initialization

The timer #0 is the system timer, so the timer #num_cpu is the
timer of the last CPU, and it must be initialized in slavio_timer_reset.

Don't mark non-existing timers as running.

Signed-off-by: Artyom Tarasenko <>...

ad7ee4ad 07/31/2010 10:43 pm Blue Swirl

Initialize a variable in all cases

Commit d167f9bc06a577d6c85b8ed6991c1efe175aae7d missed this one:
/src/qemu/ui/vnc-enc-tight.c:1483: warning: 'ret' may be used uninitialized in this function

Signed-off-by: Blue Swirl <>

aee474eb 07/31/2010 10:40 pm Blue Swirl

Fix uint8_t comparison with negative value

Commit 7bccf57383cca60a778d5c543ac80c9f62d89ef2 missed this one:
/src/qemu/ui/vnc-enc-tight.c: In function 'send_sub_rect':
/src/qemu/ui/vnc-enc-tight.c:1527: warning: comparison is always true due to limited range of data type...

3690cec8 07/31/2010 10:40 pm Blue Swirl

Fix a warning on OpenSolaris

Add a missing #include statement to avoid a warning:
/src/qemu/net/tap-solaris.c: In function 'tap_open':
/src/qemu/net/tap-solaris.c:189: warning: implicit declaration of function 'error_report'

Signed-off-by: Blue Swirl <>

671b0f36 07/31/2010 06:14 pm Hervé Poussineau

Correctly identify multiple cpus in SMP systems

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Aurelien Jarno <>

cf7c00d5 07/31/2010 06:14 pm Hervé Poussineau

Remove unused constant

Remove unused constant MIPS_FCR0

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Aurelien Jarno <>

14414da4 07/31/2010 06:14 pm Hervé Poussineau

jazz led: Fix debug prints

Add a macro to easily enable/disable debug prints
Also fix wrong printf formatters

Signed-off-by: Hervé Poussineau <>
Signed-off-by: Aurelien Jarno <>

872a91b4 07/31/2010 01:50 am Edgar E. Iglesias

xilinx-s3adsp: Add support for loading u-boot images.

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

811976dc 07/31/2010 01:42 am Edgar E. Iglesias

xilinx-s3adsp: Fix loading of raw binaries.

Set high to a word aligned address beyond loaded image.

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

708f2ada 07/31/2010 12:25 am Mike McCormack

Remove unused eventfd.h

This header is not present on my system and causes a build
failure, but is also not used in these files, so remove it.

Signed-off-by: Mike McCormack <>
Signed-off-by: Aurelien Jarno <>

8e84865e 07/31/2010 12:14 am Amit Shah

migration: Accept 'cont' only after successful incoming migration

When a 'cont' is issued on a VM that's just waiting for an incoming
migration, the VM reboots and boots into the guest, possibly corrupting
its storage since it could be shared with another VM running elsewhere....

7899f799 07/31/2010 12:09 am Isaku Yamahata

mips64el: fulong: PCI_DEVFN() clean up.

Use PCI_DEVFN() where appropriate.
The resulted stripped binary remains same
with/without thie patch.

Cc: Huacai Chen <>
Cc: Aurelien Jarno <>
Signed-off-by: Isaku Yamahata <>...

dca98169 07/31/2010 12:05 am Joel Schopp

remove pointless if from vl.c

We already set sockets to nonzero in the code above.
So this if statement always evaluates true. Remove it.

Signed-off-by: Joel Schopp <>
Signed-off-by: Aurelien Jarno <>

61bca294 07/31/2010 12:05 am Joel Schopp

remove dead code from hw/loader.c

Removing dead code. Above we already continued when
rom->addr + valuegreaterthan0 < addr so this condition is always false.

Signed-off-by: Joel Schopp <>
Signed-off-by: Aurelien Jarno <>

ca1d6ac6 07/31/2010 12:05 am Joel Schopp

fix variable type in qemu-io.c

The variable len can get a negative return value from cvtnum,
which we check for, but which is impossible with the current
unsigned variable type. Currently the if(len < 0) check is
pointless. This patch fixes that.

Signed-off-by: Joel Schopp <>...

69e58af9 07/31/2010 12:00 am Alex Williamson

savevm: Fix memory leak of compat struct

Forgot to check for and free these.

Found-by: Zachary Amsden <>
Signed-off-by: Alex Williamson <>
Signed-off-by: Aurelien Jarno <>

5ab4bb59 07/30/2010 11:59 pm Amit Shah

virtio-serial: Check if more max_ports specified than we can handle

Currently virtio-serial supports a maximum of 31 ports. Specifying the
'max_ports' parameter to be > 31 on the cmd line causes badness.

Ensure we initialise virtio-serial only if max_ports is within the...

cdc6f542 07/30/2010 10:12 pm Aurelien Jarno

Merge branch 'for-anthony' of git://repo.or.cz/qemu/kevin

  • 'for-anthony' of git://repo.or.cz/qemu/kevin:
    Fix -snapshot deleting images on disk change
    block: Use error codes from lower levels for error message
    block: default to 0 minimal / optiomal I/O size...
18e9ea8a 07/30/2010 10:09 pm Aurelien Jarno

linux-user: fix build on hosts not using guest base

Commit 68a1c816868b3e35a1da698af412b29e61b1948a broke qemu on hosts not
using guest base. It uses reserved_va unconditionally in mmap.c. To
avoid to many #ifdef #endif blocks, define RESERVED_VA as either...

5d5c9930 07/29/2010 07:54 pm Richard Henderson

linux-user: Protect against allocation failure in load_symbols.

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

58f5c1eb 07/29/2010 06:15 pm Edgar E. Iglesias

cris: Correct settls1 testcase.

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

61eb865a 07/29/2010 04:42 pm Edgar E. Iglesias

cris: Correct ADDO and ADDOQ testcases.

Verified on real HW.

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

bf858897 07/29/2010 09:32 am Richard Henderson

linux-user: Re-use load_elf_image for the main binary.

This requires moving the PT_INTERP extraction and GUEST_BASE
handling into load_elf_image. Key this off a non-null pointer
argument to receive the interpreter name.

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