Statistics
| Branch: | Revision:

root / hw @ 9958068d

# Date Author Comment
e8f27c72 10/27/2009 07:28 pm Juan Quintela

ib700: move timer to IB700State

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

9958068d 10/27/2009 07:28 pm Juan Quintela

ib700: port to vmstate

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

95c90a0e 10/27/2009 07:28 pm Juan Quintela

wdt_i6300esb: port to vmstate

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

4f423e81 10/27/2009 07:28 pm Juan Quintela

wdt_i6300esb: remove useless casts from void *

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

048eabcb 10/27/2009 07:28 pm Juan Quintela

wdt_i6300esb: move PCI_DEVICE_IDE_INTEL_ESB_9 to pci_ids.h

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

f309270b 10/27/2009 07:28 pm Juan Quintela

ib700: Introduce IB700State

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

24daf35c 10/27/2009 07:28 pm Juan Quintela

ide: port ide mmio to vmstate

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

200ab5e2 10/27/2009 07:28 pm Juan Quintela

ide: port isa ide to vmstate

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

44bfa332 10/27/2009 07:28 pm Juan Quintela

ide: port pmac ide to vmstate

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

407a4f30 10/27/2009 07:28 pm Juan Quintela

ide: port pci ide to vmstate

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

b3a7d328 10/27/2009 07:28 pm Juan Quintela

ide: pre VMState functions are not needed anymore

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

37159f13 10/27/2009 07:28 pm Juan Quintela

ide: port ide_drive to vmstate

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

8a72f380 10/27/2009 07:28 pm Juan Quintela

ide: microdrive cycle field is set as uint8_t

Really, it is used as a boolean
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

b38436e3 10/27/2009 07:28 pm Juan Quintela

ide: add VMSTATE_IDE_BUS and VMSTATE_IDE_DRIVES

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

5f637ce0 10/27/2009 07:28 pm Juan Quintela

ide: port microdrive to vmstate

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

0ce51e92 10/27/2009 07:28 pm Juan Quintela

ide: include bus in MMIOState

Change pointer to struct by embedded struct.

Adjust all callers
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

6521dc62 10/27/2009 07:28 pm Juan Quintela

ide: port idebus to vmstate

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

96c35ceb 10/27/2009 07:28 pm Juan Quintela

ide: change identify_data type to uint8_t

It is used everywhere as uint8_t except in one place. Cast to uint16_t
in that place
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

25dc563b 10/27/2009 07:28 pm Juan Quintela

vmstate: add VMSTATE_BUFFER_TEST

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

817afc61 10/27/2009 07:28 pm Juan Quintela

usb-uhci: port to vmstate

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

048c74c4 10/27/2009 07:28 pm Juan Quintela

mc145818rtc: fix saving of rtc-td hack properly upgrading the version number

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

6b075b8a 10/27/2009 07:28 pm Juan Quintela

mc146818rtc: port rtc to vmstate

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

e0ca7b94 10/27/2009 07:28 pm Juan Quintela

mc146818rtc: fix indentation

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

73c595e1 10/27/2009 07:28 pm Juan Quintela

mc146818rtc: remove rtc_mm_init()

It was used for Acer Pica 61 emulation, removed in 2008
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

844e78ef 10/27/2009 07:28 pm Gerd Hoffmann

pc.c: only load e1000 rom.

The other pxe roms are loaded by the drivers individual drivers now.

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

e8ee28fb 10/27/2009 07:28 pm Gerd Hoffmann

isa: configure serial+parallel by index.

This patch adds a 'index' property to the isa-parallel and isa-serial
devices. This can be used to create devices with the default isa irqs
and ioports by simply specifying the index, i.e.

-device isa-serial,index=1...
5b684b5a 10/27/2009 07:28 pm Gerd Hoffmann

hotplug: fix "pci_add storage if=scsi"

Explicitly add the drive to the bus of the newly created scsi adapter
instead of hoping that scsi_bus_legacy_handle_cmdline() picks it up
correctly.

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

30d335d6 10/27/2009 07:28 pm Gerd Hoffmann

hotplug: more fixes for scsi disk hotplug.

Changes:
- create common scsi_hot_add function for adding a scsi disk to
a adapter.
- Add sanity checks. You can't drive_add disks to the VGA any more.
- Ignore the unit value calculated by drive_init, add a comment...

64e58fe5 10/27/2009 07:28 pm Juan Quintela

usb-uhci: Add num_ports_vmstate to UHCIState

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

17d1ae3c 10/27/2009 07:28 pm Gerd Hoffmann

xilinx_ethlite: use qdev properties for configuration.

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

540f006a 10/27/2009 07:28 pm Gerd Hoffmann

stellaris_enet: use qdev properties for configuration.

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

4c91cd28 10/27/2009 07:28 pm Gerd Hoffmann

musicpal: use qdev properties for configuration.

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

1cc33683 10/27/2009 07:28 pm Gerd Hoffmann

zap DeviceState->nd

No users left.
Also cleanup obsolete helper functions.

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

9ad4531e 10/27/2009 07:28 pm Gerd Hoffmann

kill dead nic unplug code.

Cleanup on unplug happens via qdev->exit() callback now.

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

94e1a912 10/27/2009 07:28 pm Gerd Hoffmann

pcnet: split away lance.c (sparc32 code).

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

254111ec 10/27/2009 07:28 pm Gerd Hoffmann

rtl8139: use qdev properties for configuration.

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

97b15621 10/27/2009 07:28 pm Gerd Hoffmann

virtio: use qdev properties for configuration.

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

508ef936 10/27/2009 07:28 pm Gerd Hoffmann

eepro100: use qdev properties for configuration.

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

50132156 10/27/2009 07:28 pm Gerd Hoffmann

smc91c111: use qdev properties for configuration.

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

a783cc3e 10/27/2009 07:28 pm Gerd Hoffmann

ne2k_pci: use qdev properties for configuration.

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

fbdaa002 10/27/2009 07:28 pm Gerd Hoffmann

e1000: use qdev properties for configuration.

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

76224833 10/27/2009 07:28 pm Gerd Hoffmann

pcnet: use qdev properties for configuration.

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

ed16ab5a 10/27/2009 07:28 pm Gerd Hoffmann

qdev/net: common nic property bits

Add a new type for properties common to all nics.
Add helper functions and macros to deal with it.

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

93db6685 10/27/2009 07:28 pm Gerd Hoffmann

ne2k_isa: use qdev properties for configuration.

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

d8ed79ae 10/27/2009 07:28 pm Gerd Hoffmann

qdev: add qdev_prop_exists()

Function test whenever a driver has a specific property.

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

dc7aff11 10/27/2009 07:28 pm Gerd Hoffmann

prepare pci nic init path for qdev property configuration.

Initialization path will work with both converted and not-converted
drivers, so we can convert drivers one by one.

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

1503fff3 10/27/2009 07:28 pm Gerd Hoffmann

qdev: mac addr property fixups

Make the mac property use the newly added type for the mac address.

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

2ef924b4 10/27/2009 07:28 pm Gerd Hoffmann

qdev: add netdev property

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

851bec09 10/27/2009 07:28 pm Gerd Hoffmann

qdev: add vlan property

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

5fa9a0ae 10/27/2009 07:28 pm Stefan Weil

eepro100: Restructure code

This patch only moves about 150 lines of code from
function eepro100_cu_command to a new function action_command.

A goto statement was replaced by a for loop.

There are no functional changes. Nor did I change comments
starting with // (they will be removed by future patches)....

f79ca110 10/25/2009 05:04 pm Blue Swirl

sparc32: tcx: remove unused include directive

Signed-off-by: Blue Swirl <>

b280fcdf 10/24/2009 11:08 pm Blue Swirl

sparc32: convert sbi to VMState, vmsd and vmstate reset

Also remove unused include directive.

Signed-off-by: Blue Swirl <>

9a2070d3 10/24/2009 10:49 pm Blue Swirl

sparc32: convert Sun4c interrupt controller to reset + vmsd

Signed-off-by: Blue Swirl <>

78971d57 10/24/2009 10:44 pm Blue Swirl

sparc32: convert interrupt controller to reset + vmsd

Signed-off-by: Blue Swirl <>

1a522e8a 10/24/2009 10:39 pm Blue Swirl

sparc32: convert IOMMU to reset + vmsd

Signed-off-by: Blue Swirl <>

49ef6c90 10/24/2009 10:35 pm Blue Swirl

sparc32: convert DMA controller to reset + vmsd, fix reset on init

Add a missing call to reset on device init.

Signed-off-by: Blue Swirl <>

285e468d 10/24/2009 10:22 pm Blue Swirl

m48t59: convert to vmstate reset

Signed-off-by: Blue Swirl <>

0e0bfeea 10/24/2009 08:35 pm Blue Swirl

sparc32: convert slavio_timer to reset + vmsd

Signed-off-by: Blue Swirl <>

2be37833 10/24/2009 07:56 pm Blue Swirl

fdc: convert to reset + vmsd

Signed-off-by: Blue Swirl <>

63235df8 10/24/2009 07:34 pm Blue Swirl

esp: convert to reset + vmsd

Signed-off-by: Blue Swirl <>

82d4c6e6 10/24/2009 07:20 pm Blue Swirl

sparc32: convert cs4231 to VMState, vmsd and reset

Also remove unused include directive.

Signed-off-by: Blue Swirl <>

09330e90 10/24/2009 07:09 pm Blue Swirl

escc: add chipset docs

Signed-off-by: Blue Swirl <>

bdb78cae 10/24/2009 07:07 pm Blue Swirl

escc: convert to VMState, vmsd and reset

Signed-off-by: Blue Swirl <>

5ac574c4 10/24/2009 06:27 pm Blue Swirl

sparc32: add chipset docs for eccmemctl

Signed-off-by: Blue Swirl <>

1795057a 10/24/2009 06:27 pm Blue Swirl

sparc32: convert slavio_misc to reset + vmsd

Also remove unused include directive.

Signed-off-by: Blue Swirl <>

0284dc54 10/24/2009 05:14 pm Blue Swirl

sparc32: convert eccmemctl to reset + vmsd

Also remove unused include directive.

Signed-off-by: Blue Swirl <>

1c6a50e7 10/24/2009 12:15 pm Blue Swirl

sparc64: remove unused variables

Signed-off-by: Blue Swirl <>

b6b8df56 10/21/2009 09:35 pm Amit Shah

char: rename CHR_EVENT_RESET to CHR_EVENT_OPENED

The char event RESET is emitted when a char device is opened.
Give it a better name.

Patchworks-ID: 35287
Signed-off-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

59419663 10/21/2009 09:35 pm Gerd Hoffmann

qdev: add string property.

Patchworks-ID: 35755
Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Amit Shah <>
Signed-off-by: Anthony Liguori <>

747bbdf7 10/18/2009 07:26 pm Blue Swirl

Suppress warnings about 'warn_unused_result' attribute directive

Signed-off-by: Blue Swirl <>

5041fccd 10/15/2009 08:49 pm Roy Tam

MIPS jazz: create isa bus

As i8259 in mips_jazz.c is not correctly connected to the isa bus, the
mc146818rtc isa devices fails to be created.

Signed-off-by: Roy Tam <>
Signed-off-by: Aurelien Jarno <>

de41ac92 10/15/2009 05:32 pm Jan Kiszka

pcnet: Extend hardware reset

Update the IRQ state and stop the poll timer on reset. Moreover,
register the reset function with qemu.

Patchworks-ID: 35462
Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

3f3d583e 10/15/2009 05:32 pm Adam Lackorzynski

multiboot: Fix cmdline of modules

Fix address specified for cmdline value of module in multiboot structure.

Patchworks-ID: 35699
Signed-off-by: Adam Lackorzynski <>
Signed-off-by: Anthony Liguori <>

bf854d65 10/15/2009 05:32 pm Adam Lackorzynski

multiboot: Limit number of multiboot modules

Add size checks to avoid overwriting the multiboot structure
when too many modules are loaded.

Patchworks-ID: 35700
Signed-off-by: Adam Lackorzynski <>
Signed-off-by: Anthony Liguori <>

283c7c63 10/15/2009 05:32 pm Mark McLoughlin

net: allow NICs to be connected to netdevs

Introduce a 'peer' member to VLANClientState as an alternative
to a vlan. The idea being that packets are transfered directly
from peer clients rather than going through a vlan.

Patchworks-ID: 35516
Signed-off-by: Mark McLoughlin <>...

f6b134ac 10/15/2009 05:32 pm Mark McLoughlin

net: handle -netdevice options

Same as for -net except for:

- only tap, user, vde and socket types are supported
- the vlan parameter is not allowed
- the name parameter is not allowed but the id parameter is
required

Patchworks-ID: 35517
Signed-off-by: Mark McLoughlin <>...

3706c43f 10/15/2009 05:32 pm Stefan Weil

eepro100: Remove unused device status entries

Once upon the time when QEMU hacking was fun
there was a brave knight who wanted to have
a driver for a special intel nic.

So he started by cloning ne2000.c which also
meant that the new born eepro100.c was
immediately three years old....

98449371 10/15/2009 05:32 pm Mark McLoughlin

hotplug: safely iterate bus's sibling list while removing a device

Without this, I'm seeing a segfault when unpluging a NIC.

Cc: Gerd Hoffmann <>
Patchworks-ID: 35519
Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

dea7b3b9 10/15/2009 05:32 pm Mark McLoughlin

net: remove id field from NICInfo

Just use the name field instead since we now use the id paramater as
the name, if supplied. Only implication with this change is that if
id is not supplied, the value of the name paramater is used as an
id.

Patchworks-ID: 35512...

6550f2e6 10/14/2009 09:31 pm Artyom Tarasenko

scsi disk block descriptor v2

The SCSI-2 documentation suggests, that although the block
descriptor is optional for an arbitrary SCSI-2 device (chapter 8.2.10,
http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2/SCSI2-08.html )
it is mandatory for a disk: chapters 9.1.2, 9.3.3...

930f3fe1 10/13/2009 09:56 pm Blue Swirl

Add some chipset doc links

Signed-off-by: Blue Swirl <>

b96bf493 10/12/2009 05:42 pm Gerd Hoffmann

rom loader: also try filename as-is.

In case qemu_find_file fails try to open the file as-is.

Patchworks-ID: 35263
Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

2ca2078e 10/12/2009 05:42 pm François Revol

Fixed wacom emulation

- for absolute mode, scale coordinates to the real device maximum values,
since some drivers (on Haiku and Linux at least) need them as such,
and the HID descriptor is boggus on some models anyway,
- keep the coordinates even when no button is pressed, on real tablet...

0cde1b4c 10/12/2009 05:42 pm Juan Quintela

ide: cmd646 ->unit has just the value that we want

Patchworks-ID: 35307
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

d1570baa 10/12/2009 05:42 pm Juan Quintela

ide: BMDMAState don't need a pci_dev field anymore

Patchworks-ID: 35306
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ce88f890 10/12/2009 05:42 pm Juan Quintela

TARGET_I386 is always defined if TARGET_X86_64 is defined

Patchworks-ID: 35378
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3c178e72 10/12/2009 05:42 pm Gerd Hoffmann

rom loader: fix sparc -kernel boot.

Changes:
(1) register pstrcpy_targphys() in rom list, it is used for kernel
command lines by a number of architectures.
(2) add rom_ptr() function to get a pointer for applying changes
to loaded images. Needed for example to tell the linux kernel...

61073e0f 10/12/2009 05:42 pm Juan Quintela

ide: change cast to DO_UPCAST

Patchworks-ID: 35293
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e6a7830a 10/12/2009 05:42 pm Juan Quintela

ide: Remove cast in pci_register_bar

We already have a PCIDevice at that point

Patchworks-ID: 35296
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

edcca5a3 10/12/2009 05:42 pm Juan Quintela

ide: Remove duplicated definitions

Patchworks-ID: 35297
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

18c0fb30 10/12/2009 05:42 pm Juan Quintela

ide: remove uselsess casts from void *

Patchworks-ID: 35298
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

65c0f135 10/12/2009 05:42 pm Juan Quintela

ide: create ide/pci.h for common ide pci definitions

Patchworks-ID: 35299
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3e7e1558 10/12/2009 05:42 pm Juan Quintela

ide: export needed ide-pci functions for split

Patchworks-ID: 35300
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

4c3df0ec 10/12/2009 05:42 pm Juan Quintela

ide: split cmd646 and piix from pci.c

This patch splits cmd646 specific code from pci.c.
This patch splits piix4 specific code from pci.c.
And compile new piix.o and cmd646.o when they are needed.
The only change that is not code movemet is removal of cmd646 specific parts...

58c0e732 10/12/2009 05:42 pm Juan Quintela

ide: PCIIDEState type field is not needed anymore

We have split the functions that needed it for cmd646

Patchworks-ID: 35302
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7e078316 10/12/2009 05:42 pm Juan Quintela

ide: 'secondary' field is only used by cmd646

Patchworks-ID: 35303
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

61f58e59 10/12/2009 05:42 pm Juan Quintela

ide: cmd646 we can get the pci device with container_of

Patchworks-ID: 35305
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

cef290b8 10/10/2009 06:02 pm malc

Fix Windows host breakage by 45a50b1668822c23afc2a89f724654e176518bc4 (TeLeMan)

Signed-off-by: malc <>

ad323081 10/09/2009 05:17 am Jan Kiszka

pcnet: Restart poll timer on pcnet_start

Just like we call into pcnet_poll_timer on stop, we need to call it on
start to trigger the setup of the poll timer.

Patchworks-ID: 35313
Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

efb56cf7 10/09/2009 05:17 am Jan Kiszka

pcnet: Drop unused recv_pos field

This state field was never used, simply remained 0. Drop it from the
PCNetState and update the save/restore code accordingly, keeping
backward compatibility.

Patchworks-ID: 35314
Signed-off-by: Jan Kiszka <>...