Statistics
| Branch: | Revision:

root / hw @ 6b35e7bf

# Date Author Comment
e8b54394 08/24/2009 04:01 pm Brian Wheeler

SMART ATA Functionality

For the lulz I implemented basic SMART functionality in ide.c. smartctl
on linux recognizes it just fine and starting self tests with it
complete successfully.

Signed-off-by: Brian Wheeler <>
Signed-off-by: Anthony Liguori <>

6b35e7bf 08/24/2009 04:01 pm Jes Sorensen

QEMU set irq0override in fw_cfg

Hi,

After discussing the issue with Avi, Gleb and a couple others on irq,
we came to the conclusion that it is preferred to have QEMU request
features from the BIOS, rather than notifying the BIOS that it is
running on QEMU or KVM. This way memory ranges can change etc. and...

04a52b41 08/24/2009 04:01 pm Stefano Stabellini

make vga screen_dump use DisplayState properly

Hi all,
currently the vga screen_dump code doesn't use the DisplayState
interface properly and tries to replace it temporarily while taking the
screenshot.
A better approach is to register a DisplayChangeListener, call...

b6f6d0e2 08/24/2009 02:18 pm malc

Restore consistent formatting

Signed-off-by: malc <>

e5944641 08/24/2009 02:15 pm Juan Quintela

es1370: Remove unused indirection of PCIES1370State and ES1370State

Signed-off-by: Juan Quintela <>

4445b0a6 08/23/2009 08:00 pm Andrzej Zaborowski

Revert my commit c00a9de060124a988bd9847c095e5836488c6f01

was incorrect.

8d30b794 08/23/2009 07:08 pm Torsten Duwe

Fix segfault of qemu-system-arm with PXA target

qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target,
e.g. -M tosa. The reason is fairly obvious:

Signed-off-by: Torsten Duwe <>
Signed-off-by: Christoph Hellwig <>...

c00a9de0 08/23/2009 07:00 pm Reimar Döffinger

Use corect depth from DisplaySurface in vmware_vga.c

Hello,
for what I can tell, there is no way for vmware_vga to work correctly
right now. It assumes that the framebuffer bits-per-pixel and the one
from the DisplaySurface are identical (it uses directly the VRAM from...

13f59cbf 08/23/2009 06:44 pm Andrzej Zaborowski

Remove the unnecessary and only global in musicpal.c

7ef6e71c 08/23/2009 06:19 pm Andrzej Zaborowski

Merge with :/srv/git/qemu.git

d074769c 08/23/2009 04:51 pm Andrzej Zaborowski

Make musicpal.c use the I2C device and the Marvell 88w8618 audio device

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

ef07b491 08/23/2009 04:44 pm Andrzej Zaborowski

Extract the Marvell 88w8618 audio device from musicpal.c

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

3ead03bd 08/23/2009 04:38 pm Andrzej Zaborowski

Extract musicpal.c I2C bitbanging code and make it gpio aware

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

343ec8e4 08/23/2009 03:38 pm Benoit Canet

Musicpal qdev conversion: gpio (except I2C part), keyboard and lcd

Signed-off-by: Benoit Canet <>
Signed-off-by: Andrzej Zaborowski <>

d453c2c3 08/23/2009 03:23 pm Blue Swirl

Sparc32: fix monitor commands 'info pic' and 'info irq'

Signed-off-by: Blue Swirl <>

7432ff5d 08/23/2009 09:12 am Blue Swirl

Rearrange to suppress gcc 3.3.5 warning about unused variable

Signed-off-by: Blue Swirl <>

0fd0eb21 08/22/2009 04:55 pm Blue Swirl

ESP: implement Transfer Pad

Signed-off-by: Blue Swirl <>

5e1e0a3b 08/22/2009 04:54 pm Blue Swirl

ESP: Implement select without ATN, fix comments

Signed-off-by: Blue Swirl <>

10ee2aaa 08/22/2009 12:51 pm Juan Quintela

Remove unneded ac97 indirection accessing its state

Searching for "inspiration" to convert another device to qdev, I got
ac97. Once I understood a bit of qdev, found that ac97 used a not needed
indirection. To protect the unaware, just fixed it.

Later, Juan....

b11ebf64 08/16/2009 02:54 pm Blue Swirl

Replace REGX with PRIx64

Signed-off-by: Blue Swirl <>

90e189ec 08/16/2009 02:13 pm Blue Swirl

Replace local ADDRX/PADDRX macros with TARGET_FMT_lx/plx

Signed-off-by: Blue Swirl <>

636aa200 08/16/2009 12:06 pm Blue Swirl

Replace always_inline with inline

We define inline as always_inline.

Signed-off-by: Blue Swirl <>

802670e6 08/15/2009 05:27 pm Blue Swirl

PPC: clean up ppc405

Rely on the subpage system instead of the local version.
Make most functions "static".
Fix wrong parameter passed to ppc4xx_pob_reset.

Signed-off-by: Blue Swirl <>

0bf5e443 08/14/2009 12:05 am Anthony Liguori

Fix migration for ide devices

commit 93c8cfd9e67a62711b86f4c93747566885eb7928
Author: Gleb Natapov <>
Date: Sun Aug 2 11:36:47 2009 +0300

make windows notice media change

Broke save/restore by loading a new field but not saving it....

0c5b8d83 08/13/2009 08:51 pm Blue Swirl

Unbreak Sparc64

EBus is a sort of ISA bus.

Signed-off-by: Blue Swirl <>

bc19fcaa 08/13/2009 07:26 pm Blue Swirl

Unbreak Sparc32 and PPC

Convert qdev ptr type to chr, allow a NULL pointer.

Signed-off-by: Blue Swirl <>

c981d39c 08/11/2009 03:27 am Anthony Liguori

Fix virtio-blk

Reported-by: Christoph Hellwig
Signed-off-by: Anthony Liguori <>

05f02579 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_ethlite.c to helper macros.

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

8017dc26 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_intc.c to helper macros.

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

ea2b7271 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert xilinx_timer.c to helper macros.

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

22f2e344 08/10/2009 09:11 pm Gerd Hoffmann

fix qdev_print_devinfo()

snprintf returns number of bytes needed for the output, not the number
of bytes actually written. Thus the math is wrong ...

Spotted by Markus Armbruster.

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

f6c64e0e 08/10/2009 09:11 pm Gerd Hoffmann

rename "info qdrv" to "info qdm"

As requested by avi: driver != device model.

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

3c2aed8b 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_interrupt.c to helper macros.

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

51dd5927 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_keyboard.c to helper macros.

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

5cdabc14 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_pointer.c to helper macros.

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

c4470b25 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_serial.c to helper macros.

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

083301fc 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_timer.c to helper macros.

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

53dad499 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert tcx.c to helper macros.

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

df59cbc6 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert vga.c to helper macros.

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

72c61d0b 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert virtio-pci.c to helper macros.

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

18c637dc 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert slavio_timer.c to helper macros.

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

bf2782d7 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert smbus_eeprom.c to helper macros.

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

3180d772 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sparc32_dma.c to helper macros.

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

c885159a 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sun4m.c to helper macros.

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

32a7ee98 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert sun4u.c to helper macros.

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

c230c4e3 08/10/2009 09:11 pm Gerd Hoffmann

qdev/prop: convert syborg_fb.c to helper macros.

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

7fdaf611 08/10/2009 09:08 pm Gerd Hoffmann

qdev/prop: convert slavio_intctl.c to helper macros.

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

186507b4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert pcnet.c to helper macros.

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

ddde095c 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert etraxfs_pic.c to helper macros.

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

368eb5d4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert i2c.c to helper macros.

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

bb36f66a 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert integratorcp.c to helper macros.

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

668724a7 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert iommu.c to helper macros.

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

01274424 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert m48t59.c to helper macros.

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

54586bd1 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert pci.c to helper macros.

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

e325775b 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert arm_sysctl.c to helper macros.

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

1832efa2 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert armv7m.c to helper macros.

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

d210a1b4 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert eccmemctl.c to helper macros.

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

ec02f7de 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: convert escc.c to helper macros.

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

313feaab 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: add CharDriverState property.

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

09c0848e 08/10/2009 09:05 pm Beth Kon

Add/Fix command-line checks for smbios options v2

- One type 4 table is required per cpu. Add a check for this.
- Fix check for smbios file.

Changes from v1:
- static designation of smbios_validate_table, and remove whitespace

Signed-off-by: Beth Kon <>...

93c8cfd9 08/10/2009 09:05 pm Gleb Natapov

make windows notice media change

Windows seems to be very stupid about cdrom media change. It polls
cdrom status and if status goes ready->media not present->ready
it assumes that media was changed. If "media not present" step doesn't
happen even if "medium may have changed" was seen it assumes media...

cf12b95b 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: macros for creating typechecked properties.

There are DEFINE_PROP_$TYPE macros for
each property type. These macros link the qdev_prop_$name struct to the
type used by that property. typeof(struct->field) is verifyed to be the...

0bd8246b 08/10/2009 09:05 pm Stefano Stabellini

vga: do not resize the screen on hw_invalidate

Hi all,
currently vga always resizes the screen when vga_hw_invalidate is called
while this is not required and all the other graphic emulators don't.
This patch fixes it, making vga invalidate behaviour consistent with the...

8baf73ad 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: convert fdc.

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

b3999638 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: make pc use qdev for i8042 setup.

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

d176c495 08/10/2009 09:05 pm Gerd Hoffmann

qdev-ify virtio-blk.

First user of the new drive property. With this patch applied host
and guest config can be specified separately, like this:

-drive if=none,id=disk1,file=/path/to/disk.img
-device virtio-blk-pci,drive=disk1

You can set any property for virtio-blk-pci now. You can set the pci...

f915a115 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: add isa bus support to qdev.

Pretty simple and straigt forward.
IRQs modeled simliar to sysbus.

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

da85ccfb 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: add qdev support to i8042 (aka ps/2 kbd+mouse).

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

f75247f1 08/10/2009 09:05 pm Gerd Hoffmann

qdev/isa: make the piix isa bridge register an isa bus.

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

f31d07d1 08/10/2009 09:05 pm Gerd Hoffmann

QemuOpts: switch over -device.

Make -device switch use the QemuOpts framework.
Everything should continue to work like it did before.

New: "-set device.$id.$property=$value" works.

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

14b41872 08/10/2009 09:05 pm Gerd Hoffmann

qdev/prop: add drive property.

Adds a (host) drive property, intended to be used by virtual disk
backend drivers.

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

bb87ece5 08/10/2009 09:05 pm Christoph Egger

tolower -> qemu_tolower

Use qemu_tolower() instead of tolower().
Fixes warning on NetBSD.

Signed-off-by: Christoph Egger <>
Signed-off-by: Anthony Liguori <>
Message-Id:

d9c32310 08/09/2009 11:42 am Blue Swirl

Use qemu_irq for system_powerdown

Signed-off-by: Blue Swirl <>

b2b6f6ec 08/09/2009 10:27 am Blue Swirl

Sparc32: use qemu_irq for system_powerdown

Signed-off-by: Blue Swirl <>

74ff8d90 08/09/2009 12:43 am Blue Swirl

Sparc32: move sparc32_dma init to sun4m.c

Also connect ESP and Lance reset signals to DMA.

Signed-off-by: Blue Swirl <>

d95d8f1c 08/09/2009 12:04 am Blue Swirl

Sparc32: remove VRAM and NVRAM sizes from hwdef

Signed-off-by: Blue Swirl <>

c533e0b3 08/08/2009 11:55 pm Blue Swirl

Sparc32: remove IRQ numbers from hwdef

Signed-off-by: Blue Swirl <>

68556e2e 08/08/2009 11:36 pm Blue Swirl

Sparc32: move intbit_to_level table back to slavio_intctl.c

Signed-off-by: Blue Swirl <>

4b48bf05 08/08/2009 11:24 pm Blue Swirl

Sparc32: move device instantiation to sun4m.c

Signed-off-by: Blue Swirl <>

7204ff9c 08/08/2009 11:08 pm Blue Swirl

Sparc32: Refactor slavio timer

Signed-off-by: Blue Swirl <>

10696b4f 08/08/2009 01:47 pm Blue Swirl

ppc_newworld: configure screen size from QEMU command line options

Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.

Signed-off-by: Blue Swirl <>

7589690c 08/08/2009 01:44 pm Blue Swirl

Sparc64: configure screen size from QEMU command line options

Use the FW_CFG interface to send user requested screen size and depth to
OpenBIOS like 7f1aec5f93382eef75920899f4065613aeaf02a2 for ppc_oldworld.

Signed-off-by: Blue Swirl <>

7f1aec5f 08/08/2009 01:19 pm Laurent Vivier

ppc_oldworld: configure screen size from qemu command line options

This patch uses the FW_CFG interface to send user requested screen size
and depth to openbios.

Signed-off-by: Laurent Vivier <>
Signed-off-by: Blue Swirl <>

660f11be 08/01/2009 12:16 am Blue Swirl

Fix Sparse warnings: "Using plain integer as NULL pointer"

Signed-off-by: Blue Swirl <>

2e29bd04 07/31/2009 11:23 pm Blue Swirl

PPC: convert Uni-north to qdev: also fixes Mac99 machine crash

Signed-off-by: Blue Swirl <>

426f17bb 07/31/2009 11:23 pm Blue Swirl

PPC: convert Grackle to qdev

Signed-off-by: Blue Swirl <>

2814df28 07/31/2009 10:26 am Blue Swirl

esp: fix interrupt register read

Read of interrupt register should clear it and also sequence step and status.

Signed-off-by: Blue Swirl <>

bfdb3629 07/31/2009 09:10 am Blue Swirl

Fix SDL zooming with pl110 (cf. d3ffcafe25b5966b351ea6100160c2156688f22f)

Signed-off-by: Blue Swirl <>

b1332393 07/30/2009 05:50 pm Bill Paul

e1000.c doesn't properly emulate EERD and ICS registers

Once again, the emulation of the EERD and ICS registers in e1000.c is
incorrect. Nobody has noticed this before because none of the Intel-written
e1000 drivers use these registers, and all of the independently written open...

85c2c735 07/30/2009 05:50 pm Mark McLoughlin

Remove the virtio-{blk, console}-pci-0-10 device types

These are now unused.

However, perhaps the idea is that when we add -device, they will be
useful? In that case, we should add virtio-net-pci-0-10 too.

Signed-off-by: Mark McLoughlin <>...

213189ab 07/30/2009 05:50 pm Markus Armbruster

Fix VM state change handlers running out of order

When a VM state change handler changes VM state, other VM state change
handlers can see the state transitions out of order.

bmdma_map(), scsi_disk_init() and virtio_blk_init() install VM state
change handlers to restart DMA. These handlers can vm_stop() by...

1b524b04 07/30/2009 05:50 pm Gerd Hoffmann

qdev: factor out qdev_print_devinfo.

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

9316d30f 07/30/2009 05:50 pm Gerd Hoffmann

qdev/core: add monitor command to list all drivers

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

a414c306 07/30/2009 05:50 pm Gerd Hoffmann

qdev: convert all vga devices.

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

caea79a9 07/30/2009 05:50 pm Mark McLoughlin

Remove the pc-0-10 machine type

We have the pc-0.10 machine type now which does exactly the same
thing.

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

e2542fe2 07/27/2009 10:09 pm Juan Quintela

rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN

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

3f0855b1 07/27/2009 10:09 pm Juan Quintela

Rename HAVE_FDT to CONFIG_FDT and define it also in Makefile

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

84f15818 07/27/2009 10:09 pm Juan Quintela

Refactor code to remove one #ifdef CONFIG_FDT

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

6be68d7e 07/27/2009 10:09 pm Jes Sorensen

Introduce -smp , maxcpus= flag to specify maximum number of CPUS.

Follow on patch will use it to determine the size of the MADT and
other BIOS tables.

Signed-off-by: Jes Sorensen <>
Signed-off-by: Anthony Liguori <>

3174ecd1 07/27/2009 10:09 pm Michael S. Tsirkin

qemu: msix nit: clear msix_entries_nr on error

I don't think it's critical to do this, but it's
best to keep uninit and error recovery consistent.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>