Statistics
| Branch: | Revision:

root @ 16415335

# Date Author Comment
b80a55e6 07/22/2009 06:58 pm Alexander Graf

Fix warning in kvm-all.c

This fixes a warning I stumbled across while compiling qemu on PPC64.

Signed-off-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

16415335 07/22/2009 06:58 pm Alexander Graf

Use correct input constant

440 and desktop codes use different input constants for interrupt indication.

Let's use the respective ones for KVM.

Signed-off-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

5f114bc6 07/22/2009 06:58 pm Alexander Graf

Enable PPC KVM for non-embedded

We now have KVM on PPC64 too and might get it on PPC32 as well, as soon
as someone writes it.

So let's enable KVM for PPC32 and PPC64 targets.

Signed-off-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

861bbc80 07/22/2009 06:58 pm Alexander Graf

Set PVR in sregs

We need to tell the kernel about some initial CPU state we don't have yet,
so let's use the "sregs" IOCTL for that and simply put the Processor Version
Register in there.

Now the kernel knows which guest CPU to virtualize.

Signed-off-by: Alexander Graf <>...

e32cba29 07/21/2009 10:57 pm Blue Swirl

Sparc32: convert Sun4c interrupt controller to qdev

Signed-off-by: Blue Swirl <>

7fc06735 07/21/2009 10:25 pm Blue Swirl

Sparc32: convert SBI to qdev

Signed-off-by: Blue Swirl <>

871e6c35 07/21/2009 03:18 pm Blue Swirl

Fix CONFIG_PROFILER

Signed-off-by: Blue Swirl <>

04843626 07/21/2009 02:20 pm Blue Swirl

Sparc32/64: use 64 bit type for memory size

Signed-off-by: Blue Swirl <>

5a053d1f 07/21/2009 02:10 pm Blue Swirl

qdev: add 64 bit type

Signed-off-by: Blue Swirl <>

636aa70a 07/21/2009 01:49 pm Blue Swirl

Sparc64: refactor kernel init

Signed-off-by: Blue Swirl <>

7b833f5b 07/21/2009 01:46 pm Blue Swirl

Sparc64: refactor CPU init

Signed-off-by: Blue Swirl <>

bda42033 07/21/2009 01:04 pm Blue Swirl

Sparc64: convert memory to qdev

Signed-off-by: Blue Swirl <>

1baffa46 07/21/2009 12:58 pm Blue Swirl

Sparc64: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

daa65491 07/21/2009 11:53 am Blue Swirl

Sparc32: Fix lance

Signed-off-by: Blue Swirl <>

72f44c8c 07/21/2009 11:53 am Blue Swirl

Sparc64: convert APB to qdev

Thanks to Igor Kovalenko for a bugfix.

Signed-off-by: Blue Swirl <>

0bf9e31a 07/20/2009 08:19 pm Blue Swirl

Fix most warnings (errors with -Werror) when debugging is enabled

I used the following command to enable debugging:
perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * /* *//*

Signed-off-by: Blue Swirl <>

c0a2a096 07/20/2009 01:37 pm Blue Swirl

Fix build with DEBUG_PCI in pci_host.h enabled

Signed-off-by: Blue Swirl <>

12a71a02 07/20/2009 09:56 am Blue Swirl

Clean up fdc qdev conversion

Signed-off-by: Blue Swirl <>

a71836de 07/20/2009 12:15 am malc

Fix rbase initialization

Signed-off-by: malc <>

c62bbcd3 07/18/2009 03:32 pm Andrzej Zaborowski

Fix a similar configure typo from microblaze.

a302c32d 07/18/2009 03:23 pm Laurent Desnogues

this patch fixes a typo where armv4l was incorrectly spelled arm4l,
preventing the correct handling of --cpu=armv4l.

Laurent

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

cb4e581f 07/18/2009 03:20 pm Laurent Desnogues

this patch improves the ARM back-end in the following way:

- use movw/movt to load immediate values for ARMv7-A
- implement add/sub/and/or/xor with immediate (only 8-bit)

Laurent

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

d9885a0b 07/18/2009 12:32 pm Aurelien Jarno

tcg: Fix tcg_gen_rotr_i64

Reported-by: Laurent Desnogues <>
Signed-off-by: Aurelien Jarno <>

9fdca5aa 07/18/2009 12:17 pm malc

Use correct byteswap routine for elf_note

All elf64_note structure members are Elf64_Word (which is 32bit value)
hence using bswaptls to byteswap it on 64bit platforms is incorrect.

Signed-off-by: malc <>

3efa9a67 07/18/2009 12:16 pm malc

Avoid name clashes with symbols that leak from system headers

Signed-off-by: malc <>

f6548c0a 07/18/2009 12:16 pm malc

PPC 32/64 GUEST_BASE support

Signed-off-by: malc <>

4f4a67ae 07/18/2009 12:16 pm malc

Fix LHZX opcode value

Signed-off-by: malc <>

adea8197 07/17/2009 09:50 pm Juan Quintela

Userspace guest address offsetting

Fix type in i386 tcg.

Signed-off-by: Juan Quintela <>

18c9a9c3 07/17/2009 08:48 pm Christoph Egger

bsd-users: fix strace

Hi!

Attached patch fixes an unlock bug in strace.
Catched by gcc due to an use of uninitialized variable.

Signed-off-by: Christoph Egger <>

--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH...

88e150a5 07/17/2009 08:48 pm Christoph Egger

isxdigit -> qemu_isxdigit

Hi!

Attached patch uses qemu_isxdigit() instead of isxdigit().
Fixes build warning on NetBSD.

Signed-off-by: Christoph Egger <>

--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH...

fff2a02f 07/17/2009 08:48 pm Christoph Egger

fix build warnings

Hi!

Attached patch fixes build warnings due to use of different pointer
signedness.

Signed-off-by: Christoph Egger <>

--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen...

a2547a13 07/17/2009 03:33 pm Laurent Desnogues

ELF codedump build failures

Rename ELF coredump types to avoid conflict with the corresponding host types.

Signed-off-by: Laurent Desnogues <>

379f6698 07/17/2009 03:12 pm Paul Brook

Userspace guest address offsetting

Re-implement GUEST_BASE support.
Offset guest ddress space by default if the guest binary contains
regions below the host mmap_min_addr.
Implement support for i386, x86-64 and arm hosts.

Signed-off-by: Riku Voipio <>...

a9ff9df1 07/17/2009 02:18 pm Blue Swirl

Suppress a Sparse warning

Move the export to a file used by both qdev.c and sysbus.c.

Signed-off-by: Blue Swirl <>

109819e0 07/17/2009 02:01 pm Blue Swirl

Sparc32: use hex for version numbers

0x10000000 looks better than 268435456.

Signed-off-by: Blue Swirl <>

e2106fe6 07/17/2009 02:01 pm Blue Swirl

Sparc32: fix escc devices broken by ee6847d19be16c789b8bd4e553b7cd6701ba1245

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

Signed-off-by: Blue Swirl <>

e8133762 07/17/2009 02:01 pm Blue Swirl

Sparc32: fix fdc io_base

On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not
appropriate type for io_base.

Signed-off-by: Blue Swirl <>

f6e097e7 07/17/2009 02:01 pm Blue Swirl

Fix sparc-softmmu breakage by ee6847d19be16c789b8bd4e553b7cd6701ba1245

Move the qdev_init(dev); call after the setting of d->size.
Thanks to Filip Navara.

Signed-off-by: Blue Swirl <>

96555a96 07/17/2009 02:01 pm Blue Swirl

Fix OpenBSD build

The header sys-queue.h must be #included early, otherwise at some point OS
queue macros will be used. On OpenBSD, those don't define TAILQ_FOREACH_SAFE.

Signed-off-by: Blue Swirl <>

2d69f359 07/17/2009 01:21 pm Paul Brook

ARM host fixes

Minor TCG cleanups and warning fixes for ARM hosts.

Signed-off-by: Paul Brook <>

5e650002 07/17/2009 06:20 am Anthony Liguori

Only allow -cpu host when KVM is enabled

-cpu host is not at all useful when using tcg.

Signed-off-by: Anthony Liguori <>

0d35bf2d 07/17/2009 06:04 am Anthony Liguori

Move CLOCKLIBS and PTHREADLIBS out of CONFIG_LINUX_USER_ONLY

Otherwise, -lrt doesn't get added to the softmmu build.

Signed-off-by: Anthony Liguori <>

e6f9e6b4 07/17/2009 06:04 am Anthony Liguori

Initialize cpuid variables

This causes a build break when !KVM.

Signed-off-by: Anthony Liguori <>

2637872b 07/17/2009 04:57 am malc

Ignore -Waddress for alsaaudio.c

/usr/include/alsa/pcm.h contains:

#define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0)

The assert generates: "error: the address of 'sw_params' will always...

d152f84c 07/17/2009 02:12 am Anthony Liguori

Update version for 0.11 development

Signed-off-by: Anthony Liguori <>

9359d0e6 07/17/2009 02:10 am Anthony Liguori

Update version for 0.11.0-rc0

0adcffb1 07/17/2009 01:28 am Juan Quintela

simplify TARGET_ARCH2 generation

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

e6e91b9c 07/17/2009 01:28 am Juan Quintela

simplify TARGET_ABI_DIR generation

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

98ec69ac 07/17/2009 01:28 am Juan Quintela

rename s/config_mak/config_host_mak/ and s/config_h/config_host_h/

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

f57975fb 07/17/2009 01:28 am Juan Quintela

Refactor config_softfloat selection in another list

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

42bc608b 07/17/2009 01:28 am Juan Quintela

Generate $target_dir/config.h from $target_dir/config.mak

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

938b1edd 07/17/2009 01:28 am Juan Quintela

Only setup TARGET_ARCH when it is different of

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

afc29f82 07/17/2009 01:28 am Juan Quintela

generate TARGET_ARCH for config.h

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

e73aae67 07/17/2009 01:28 am Juan Quintela

generate TARGET_<arch name> for config.h

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

6acff7da 07/17/2009 01:28 am Juan Quintela

simplify TARGET_BASE_ARCH generation

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

ffada369 07/17/2009 01:28 am Juan Quintela

We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time

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

d80438aa 07/17/2009 01:28 am Juan Quintela

We can wrap ARCH_CFLAGS/ARCH_LDFLAGS in CFLAGS/LDFLAGS at configure time

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

16dbd14f 07/17/2009 01:28 am Juan Quintela

generate ARCH name instead of coding it

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

e0da9dd3 07/17/2009 01:28 am Juan Quintela

Refactor common code using a list

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

ea2d6a39 07/17/2009 01:28 am Juan Quintela

Refactor targe_bigendian selection in another list

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

b498c8a0 07/17/2009 01:28 am Juan Quintela

print only once TARGET_ARCH

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

d2917a47 07/17/2009 01:28 am Juan Quintela

TARGET_ARCH2 is already known at configure time.

Remove re-construction in Makefile.target

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

9637443f 07/17/2009 01:28 am Juan Quintela

change ifdefs by obj-$(TARGET_BASE_ARCH)

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

1b0c87fc 07/17/2009 01:28 am Juan Quintela

configure xen in a single place

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

c59249f9 07/17/2009 01:28 am Juan Quintela

configure kvm in a single place

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

0d46b7ed 07/17/2009 01:28 am Juan Quintela

configure kqemu in a single place

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

c44098ca 07/17/2009 01:28 am Juan Quintela

BASE_LDFLAGS is not used anywhere else

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

1c872672 07/17/2009 01:28 am Juan Quintela

TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm

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

16394485 07/17/2009 01:28 am Juan Quintela

Refactor a single rule to generate all qemu-* executables

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

92b458e8 07/17/2009 01:28 am Juan Quintela

qemu binary don't exist anymore. I guess not much people is compiling on alpha

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

356c7ff4 07/17/2009 01:28 am Naphtali Sprei

fix for bad macaddr of e1000 in Windows 2003 server with original MS driver

The sequence of reading from eeprom is "offset by one" moved because of a false
detection of a clock cycle after an eeprom reset. Keeping the last clock value
after a reset keeps it in sync....

7ed208c4 07/17/2009 01:28 am Juan Quintela

fix XEN Build

I miss s/yes/y/ in one place

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

4c050b3f 07/17/2009 01:28 am Juan Quintela

fix sparc not solaris build

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

727374d9 07/17/2009 01:28 am Juan Quintela

Remove duplicated definition

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

1a65ba76 07/17/2009 01:28 am Juan Quintela

use block-nested-y for files inside block/

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

9c1dd99b 07/17/2009 01:28 am Juan Quintela

use nwfpe-obj-y for consistence

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

71c4f21f 07/17/2009 01:28 am Juan Quintela

Remove unused Makefile variable

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

3b47612b 07/17/2009 01:28 am Juan Quintela

already defined several lines before in block-obj-y

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

0ba99fc6 07/17/2009 01:28 am Juan Quintela

configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target

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

ccb63de3 07/17/2009 01:28 am Gerd Hoffmann

qdev: add user-specified identifier to devices.

Add id field to DeviceState. Make "info qtree" print it.

This helps users and management apps identifying devices in monitor
output, which is especially useful with otherwise identical devices
such as two virtio disks....

ab73ff29 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-blk-pci 0.10 compatibility.

Add class property to virtio-blk-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

eb54b6dc 07/17/2009 01:28 am Gerd Hoffmann

qdev: add id= support for pci nics.

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

d6beee99 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-console-pci 0.10 compatibility.

Add class property to virtio-console-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

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

8ad12514 07/17/2009 01:28 am Gerd Hoffmann

qdev: print device id in "info pci".

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

a1e0fea5 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-net-pci 0.10 compatibility.

Add vectors property, allowing to turn off msi by setting vectors=0.
Add compat property to pc-0.10 disabling msi.

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

f3519986 07/17/2009 01:28 am Gerd Hoffmann

qdev: es1370+ac97 description

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

81ebb98b 07/17/2009 01:28 am Gerd Hoffmann

qdev: factor out driver search to qdev_find_info()

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

b6b61144 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: compat property infrastructure.

This add support for switching devices into a compatibility mode
using device properties. Machine types can have a list of properties
for specific devices attached to allow the easy creation of machine
types compatible to older qemu versions....

3320e56e 07/17/2009 01:28 am Gerd Hoffmann

qdev: add no_user, alias and desc

no_user: prevent users from adding certain devices.
desc: description of the device.
alias: to allow user friendly shortcuts on the command line, i.e.
-device usbmouse instead of -device "QEMU USB Mouse" or
-device lsi instead of -device lsi53c895a...

96cc1810 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: add pc-0.10 machine type.

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

0bb05eaf 07/17/2009 01:28 am Glauber Costa

fix segfault in setting migration speed

Hi,

Whoever wrote this migrate_set_speed function is totally stupid.

Any failed or completed migration keeps its state to allow probing of
migration data, but has no associated file anymore. It is, thus,
possible to crash qemu by calling migrate_set_speed after a migration...

ef74679a 07/17/2009 01:28 am Dinesh Subhraveti

Initialize PS2 keyboard / mouse state on reset

Currently only common PS2 state is initialized, leaving keyboard and
mouse specific state to contain stale values.

Signed-off-by: Dinesh Subhraveti <>
Signed-off-by: Anthony Liguori <>

f114784f 07/17/2009 01:28 am Jan Kiszka

monitor: Add port write command

Useful for testing hardware emulations or manipulating its state to
stress guest drivers.

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

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

15239b2e 07/17/2009 01:28 am Gerd Hoffmann

cleanup: drop unused struct elements from VirtIOPCIProxy.

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

ca94dbc7 07/17/2009 01:28 am Kevin Wolf

qemu-io: Implement bdrv_load_vmstate/bdrv_save_vmstate

The load_vmstate and save_vmstate functions are implemented as a
variation of the normal read/write operation, enabled by the -b option.
This is the same mechanism as is used to switch from read/write to...

7d93b1fa 07/17/2009 01:28 am Beth Kon

Reset HPET config register on hpet_reset

Without this, after system reset, hpet does not detect transition from
non-legacy to legacy mode.

Signed-off-by: Beth Kon <>
Signed-off-by: Anthony Liguori <>

08738984 07/17/2009 01:28 am Igor Kovalenko

tlb flush cleanup

Use static empty variable s_cputlb_empty_entry to clear entries,
also reset addend member when clearing entries.
This helps running with valgrind/memcheck

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko
Signed-off-by: Anthony Liguori <>

1db6947d 07/17/2009 01:28 am Christoph Hellwig

qemu-io: use BDRV_O_FILE to implement the growable open option

Instead of doing our own check for protocols which fails because raw isn't
formally a protocol but special cased in find_protocol specify the BDRV_O_FILE
option to use the same code as bdrv_file_open does....

9f6839d4 07/17/2009 01:28 am Stuart Brady

Remove dead i386 assembly code from softmmu_header.h

This patch removes dead i386 assembly code from softmmu_header.h.

The code is conditional on ASM_SOFTMMU, which is never defined.
Optimisation for the fast path is already handled by tcg_out_qemu_ld()...