Statistics
| Branch: | Revision:

root @ 109819e0

# Date Author Comment
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 <>

07323531 07/17/2009 01:28 am Isaku Yamahata

ioport: use uint{32, 16, 8}_t for ioport value and pio_addr_t for ioport address.

Using int for cpu_{in, out}[bwl] is inconsistent with other part
because for address or value, uintN_t is used by other qemu part.
At least, softmmu, CPU{Read, Write}MemoryFunc, pci, target_phys_addr_t...

bf4e5d92 07/17/2009 01:28 am Pascal Terjan

Handle vga= in -append

Here is a patch I had sent twice to the list 2 years ago.
Hopefuly this time someone will be interested

It adds support for passing vga mode to linux kernel through
vga= option in -append

Signed-off-by: Pascal Terjan <>...

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()...

89befdd1 07/17/2009 01:28 am Paolo Bonzini

honor -S on incoming migration

-S is not honored by qemu on incoming migration. If a domain is migrated
while paused, thus, it will start running on the remote machine; this
is wrong.

Given the trivial patch to fix this, it looks more like a thinko
than anything else, probably dating back to the qemu-kvm merge....

09ac35ac 07/17/2009 01:28 am Andre Przywara

omit 3DNOW! CPUID bits from qemu64 CPU model

Since we recently do not disable 3DNOW! support anymore, we should
avoid setting the bits in the default qemu64 CPU model to ease
migration. TCG does not support it anyway and even AMD deprecates
it's usage nowadays....

1e37d059 07/17/2009 01:28 am Stefan Weil

raw-posix: Handle errors in raw_create

In qemu-iotests, some large images are created using qemu-img.

Without checks for errors, qemu-img will just create an
empty image, and later read / write tests will fail.

With the patch, failures during image creation are detected...

fc7083b5 07/17/2009 01:28 am Isaku Yamahata

ioport: remove some #ifdef DEBUG_UNUSED_IOPORT.

remove some #ifdef DEBUG_UNUSED_IOPORT in ioport.c
and use PRIx32 where appropriate

Signed-off-by: Isaku Yamahata <>
Cc: Anthony Liguori <>
Cc: Paolo Bonzini <>...

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

a1961a4b 07/16/2009 05:15 pm Blue Swirl

Sparc32: convert slavio interrupt controller to qdev

Also increase QDEV_MAX_IRQ.

Signed-off-by: Blue Swirl <>

666713c0 07/16/2009 04:48 pm Blue Swirl

Sparc32: refactor CPU init

Signed-off-by: Blue Swirl <>

a350db85 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert memory to qdev

Signed-off-by: Blue Swirl <>

f48f6569 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

5f750b2e 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert iommu to qdev

Signed-off-by: Blue Swirl <>

fa28ec52 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert cs4231 to qdev

Signed-off-by: Blue Swirl <>

d3ffcafe 07/16/2009 04:45 pm Blue Swirl

Sparc32: fix SDL zooming with TCX

Signed-off-by: Blue Swirl <>

b8c0e7d7 07/16/2009 04:28 pm Anthony Liguori

Fix non-ACPI Timer Interrupt Routing - v3

v1 -> v2 adds comment suggested by Ryan.
v2 -> v3 clarifies comment and corrects entry count

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

7aa486fe 07/16/2009 04:28 pm Anthony Liguori

Fix multiboot.bin build on mingw32

This combination of ld/object was suggested by Bartlomiej Celary

Signed-off-by: Anthony Liguori <>

24d904ea 07/16/2009 04:28 pm Anthony Liguori

Don't copy multiboot.bin into pc-bios after built

That dirties the working directory of the tree.

Signed-off-by: Anthony Liguori <>

dd32aa10 07/16/2009 04:28 pm Jan Kiszka

gdbstub: Add vCont support

This patch adds support for the vCont remote gdb command. It is used by
gdb 6.8 or better to switch the debugging focus for single-stepping
multi-threaded targets, ie. multi-threaded application in user mode
emulation or VCPUs in system emulation....

b1631e7a 07/16/2009 04:28 pm Jan Kiszka

gdbstub: x86: Refactor register access

Clarify gdb's register set layout by using constants for
cpu_gdb_read/write_register.

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

84273177 07/16/2009 04:28 pm Jan Kiszka

gdbstub: x86: Support for setting segment registers

This allows to set segment registers via gdb also in system emulation
mode. Basic sanity checks are applied and nothing is changed if they
fail. But screwing up the target via this interface will never be...

e1e8f35a 07/16/2009 04:28 pm Anthony Liguori

bios: Fix multiple calls into smbios_load_ex

We're marking the used entry bitmap in smbios_load_external() for each
type we check, regardless of whether we loaded anything. This makes
subsequent calls behave as if we've already loaded the tables from qemu...

45566e9c 07/16/2009 04:28 pm Christoph Hellwig

replace bdrv_{get, put}_buffer with bdrv_{load, save}_vmstate

The VM state offset is a concept internal to the image format. Replace
the old bdrv_{get,put}_buffer method that require an index into the
image file that is constructed from the VM state offset and an offset...

d8d2e079 07/16/2009 04:28 pm Isaku Yamahata

pci.c: remove unnecessary #ifdef DEBUG_PCI.

remove unnecessary #ifdef DEBUG_PCI.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

76e30d0f 07/16/2009 04:28 pm Jan Kiszka

Move boot_set callback backend

Move registration function for the boot_set callback handler and provide
qemu_boot_set so that it can also be used outside the monitor code.

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

55ddfe8e 07/16/2009 04:28 pm Jan Kiszka

Rework reset handler management

Convert the reset handler maintenance code to TAILQ services.

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

dda9b29f 07/16/2009 04:28 pm Jan Kiszka

Add qemu_unregister_reset

Will be used by '-boot once=...', and should also help in other use
cases.

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

e0f084bf 07/16/2009 04:28 pm Jan Kiszka

Add boot-once support

This allows to specify an exceptional boot order only for the first
startup of the guest. After reboot, qemu will switch back to the default
order (or what was specified via 'order='). Makes installing from CD
images and then booting the freshly set up harddisk more handy....

95387491 07/16/2009 04:28 pm Jan Kiszka

Add boot menu control via command line switch

Disable the lengthy BIOS prompt for selecting a boot device by default,
but let the user reenable it via '-boot menu=on'.

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

2221dde5 07/16/2009 04:28 pm Jan Kiszka

Update boot option documentation

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

ef2039f1 07/16/2009 04:28 pm Anthony Liguori

Regenerate BIOS and add patches for -boot option

Signed-off-by: Anthony Liguori <>

8389e7f4 07/16/2009 04:28 pm Anthony Liguori

slirp: Fix default netmask to 255.255.255.0

This got broken between a13a4126c8 and c92ef6a22d: old slirp code used
255.255.255.0.

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

e8b2a1c6 07/16/2009 04:28 pm Mark McLoughlin

Add a pc-0-10 machine type for compatibility with 0.10.x

Add a pc-0-10 machine type to allow a pc machine to be created with
virtio block and console devices compatibility with qemu-0.10.x.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

ef3adf68 07/16/2009 04:28 pm Jan Kiszka

Rework -boot option

This patch changes the boot command line option to the canonical format

-boot [order=drives][,...]

where 'drives' is using the same format as the old -boot. The format
switch allows to add the 'menu' and 'once' options in later patches. The...

21d58b57 07/16/2009 04:28 pm Mark McLoughlin

Change default PCI class of virtio-console to PCI_CLASS_SERIAL_OTHER

We're using PCI_CLASS_DISPLAY_OTHER now, but qemu-kvm.git is using
PCI_CLASS_OTHERS because:

"As a PCI_CLASS_DISPLAY_OTHER, it reduces primary display somehow on
Windows XP (possibly Windows disables acceleration since it fails...