Statistics
| Branch: | Revision:

root / hw @ 44a99354

# Date Author Comment
44a99354 11/07/2009 12:05 pm Blue Swirl

Sparc64/x86: remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

e4394131 11/07/2009 11:32 am Blue Swirl

PPC: remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

a01d6ef4 11/07/2009 10:55 am Blue Swirl

sparc32 (mostly): remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

c1699988 11/07/2009 10:06 am Glauber Costa

v3: don't call reset functions on cpu initialization

There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,...

cae334cd 11/06/2009 03:08 pm malc

vga: fix line comparison

Line counter doesn't wrap.

Signed-off-by: malc <>

d1984194 11/06/2009 02:46 am malc

vga: Respect Line Compare Register in text modes

Unbreaks setup screen of Act1/PL

Signed-off-by: malc <>

2d7adea4 11/03/2009 04:28 pm Andrzej Zaborowski

hw/sd: Support SDHC size cards

This patch adds SHDC support (-sd sd.img, where sd.img is
larger than 1GB) to qemu.

Signed-off-by: Jason S. McMullan <>
Signed-off-by: Andrzej Zaborowski <>

04095e5f 10/30/2009 04:42 pm Anthony Liguori

Remove e1000 rom loading hack

The gPXE rom supports BEV properly.

Signed-off-by: Anthony Liguori <>

3cbe04c4 10/30/2009 04:42 pm Mark McLoughlin

virtio-net: fix macaddr config regression

This commit:

commit 97b15621
virtio: use qdev properties for configuration.
Signed-off-by: Gerd Hoffmann &lt;&gt;
Signed-off-by: Anthony Liguori &lt;&gt;

makes a guest using virtio-net see an empty macaddr because we never...

79758e95 10/30/2009 03:39 pm Michael S. Tsirkin

qemu/virtio: make wmb compiler barrier + comments

wmb must be at least a compiler barrier, even without SMP.
Further, we likely need some rmb()/mb() as well:
I have not audited the code but lguest has mb(),
add a comment for now.

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

76f5159d 10/30/2009 03:39 pm Michael S. Tsirkin

qemu/msix: fix table access issues

Fixes a couple of issues with msix table access:
- With misbehaving guests, misaligned 4 byte access could overflow
msix table and cause qemu to segfault. Since PCI spec requires
host to only issue dword-aligned accesses, as a fix,...

66a6593a 10/30/2009 03:39 pm Gerd Hoffmann

usb: print attached status in info qtree

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

718b8aec 10/30/2009 03:39 pm Stefan Weil

serial: Add missing bit

Serial frames always start with a start bit.
This bit was missing in frame size calculation.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

2b0efdc3 10/30/2009 03:39 pm Gerd Hoffmann

usb-serial and braille: use qdev for -usbdevice

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

61e094c0 10/30/2009 03:39 pm Gerd Hoffmann

usb: make attach optional.

Add a auto_attach field to USBDevice, which is enabled by default.
USB drivers can clear this field in case they do not want the device
being attached (i.e. plugged into a usb port) automatically after
successfull init().

Use cases (see next patches):...

b3e461d3 10/30/2009 03:39 pm Gerd Hoffmann

usb-storage: use qdev for -usbdevice

Hook up usb_msd_init.

Also rework handling of encrypted block devices,
move the code out vl.c.

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

0958b4cc 10/30/2009 03:39 pm Gerd Hoffmann

usb core: use qdev for -usbdevice

This patchs adds infrastructure to handle -usbdevice via qdev callbacks.
USBDeviceInfo gets a name field (for the -usbdevice driver name) and a
callback for -usbdevice parameter parsing.

The new usbdevice_create() function walks the qdev driver list and looks...

fa7c70c3 10/30/2009 03:39 pm Gerd Hoffmann

usb-hid: use qdev for -usbdevice

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

14a3f32d 10/30/2009 03:39 pm Gerd Hoffmann

rom loader: use qemu_strdup.

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

de2aff17 10/30/2009 03:39 pm Gerd Hoffmann

rom loader: make vga+rom loading configurable.

The rom_add_vga() and rom_add_option() macros are transformed into
functions. They look at the new rom_enable_driver_roms variable
and only do something if it is set to non-zero, making vga+option rom
loading runtime option. pc_init() sets rom_enable_driver_roms to 1....

5245d57a 10/30/2009 03:39 pm Gerd Hoffmann

vga roms: move loading from pc.c to vga drivers.

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

51edd4e6 10/30/2009 03:39 pm Gerd Hoffmann

use rom loader for pc bios.

The pc bios shows up in 'info roms' now.

Note that the BIOS is mapped to two places: The complete rom at the top
of the memory, and the first 128k at 0xe0000. Only the first place is
listed in 'info roms'.

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

a8ed73f7 10/30/2009 03:39 pm Mark McLoughlin

net: move more stuff into net/tap-win32.c, add net/tap.h

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

7200ac3c 10/30/2009 03:39 pm Mark McLoughlin

net: move net-checksum.c under net/

Also add a new net/checksum.h header

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

0ce0e8f4 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: add tap_has_ufo flag to saved state

If we tell the guest we support UFO and then migrate to host which
doesn't support it, we will find ourselves in grave difficulties.

Prevent this scenario by adding a flag to virtio-net's savevm format
which indicates whether the device requires host UFO support....

1d41b0c1 10/27/2009 07:29 pm Anthony Liguori

Work around dhclient brokenness

With the latest GSO/csum offload patches, any guest using an unpatched version
of dhclient (any Ubuntu guest, for instance), will no longer be able to get
a DHCP address.

dhclient is actually at fault here. It uses AF_PACKET to receive DHCP responses...

6c9f58ba 10/27/2009 07:29 pm Sridhar Samudrala

Enable UFO on virtio-net and tap devices

Enable UFO on the host tap device if supported and allow setting UFO
on virtio-net in the guest.

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

f5436dd9 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: enable tap offload if guest supports it

We query the guest's feature set to see if it supports offload and,
if so, we enable those features on the tap interface.

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

70783b9c 10/27/2009 07:29 pm Mark McLoughlin

net: add receive_raw parameter to qemu_new_vlan_client()

Trivial patch to allow supplying a receive_raw function.

A future cleanup should combine this function pointer parameters into a
table.

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

3a330134 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: add vnet_hdr support

With '-netdev tap,id=foo -nic model=virtio,netdev=foo' virtio-net can
detect that its peer (i.e. the tap backend) supports vnet headers
and advertise to the guest that it can send packets with partial
checksums and/or TSO packets....

bb6e6364 10/27/2009 07:29 pm Mark McLoughlin

net: add a client type code

This is so as to allow APIs which operate on specific client types
without having to add a function table entry which is only implemented
by a single client type.

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

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

vmware_vga: port to vmstate

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

1ae71a77 10/27/2009 07:28 pm Juan Quintela

vmstate: Add VMSTATE_BUFFER_UNSAFE

Just sent <anything> as a buffer. We put the pointer and the size
code does the rest.

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

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

lsi_scsi: port to vmstate

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

6848d827 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_pci_device_hot_remove() to QObject

Errors are still directly printed, as we are only converting
regular output.

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

467d44b2 10/27/2009 07:28 pm Juan Quintela

vmware_vga: Remove uselss casts from void *

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

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

vmware_vga: qemu_malloc() returns void *

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

83ef8fe0 10/27/2009 07:28 pm Juan Quintela

vmware_vga: remove !EMBED_STDVGA code

It don't compile. And the trivial fixes (change vga.foo field to foo field
don't work either. No output

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

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

vmware_vga: scratch is really an array of uint32_t

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

3b1297f5 10/27/2009 07:28 pm Juan Quintela

vmware_vga: the support to change dinamically depth is not there

For a start bypp is not changed after vmsvga_reset() and it depends on depth

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

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

vga: port vga-isa-mm to vmstate

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

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

vga: port vga-isa to vmstate

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

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

vga: port vmware std vga to vmstate

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

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

vga: port vga-pci to vmstate

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

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

vga: remove unused vga_common_save/load

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

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

vmware_vga: Pass pci_vmsga_state_t arg no VGACommonState

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

2e885049 10/27/2009 07:28 pm Juan Quintela

e1000: unfold mac_reg_tosave array

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

28366c3a 10/27/2009 07:28 pm Juan Quintela

e1000: unfold mac_regarraystosave array

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

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

e1000: port to vmstate

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

2a3138ab 10/27/2009 07:28 pm Juan Quintela

vga: create is_vbe_vmstate field

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

11b6b345 10/27/2009 07:28 pm Juan Quintela

vga: port vga_common_save/load to vmstate

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

7c131dd5 10/27/2009 07:28 pm Juan Quintela

ne2000: port to vmstate

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

060110c3 10/27/2009 07:28 pm Juan Quintela

rtl8139: port to vmstate

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

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

eeprom93xx: port to vmstate

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

151b2986 10/27/2009 07:28 pm Juan Quintela

eepro100: port to vmstate

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

3d865059 10/27/2009 07:28 pm Juan Quintela

pcnet: port to vmstate

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

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

vmstate: Unfold VMSTATE_INT32_VARRAY() only use and remove it

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

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

vmstate: add VMS_VARRAY_UINT16_UNSAFE (varrays with uint16 indexes)

It don't check types.
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

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

vmstate: Add version arg to VMSTATE_SINGLE_TEST()

This allows to define VMSTATE_SINGLE with VMSTATE_SINGLE_TEST
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

76507c75 10/27/2009 07:28 pm Juan Quintela

vmstate: Add VMSTATE_BUFFER_UNUSED

It allows to have 'things' in savevm format not backed in the device state
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

9e77fcd0 10/27/2009 07:28 pm Juan Quintela

vmstate: Add VMSTATE_MACADDR for the new type

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

9ba2f660 10/27/2009 07:28 pm Juan Quintela

vmstate: Introduce the concept of sub-arrays

VMSTATE_SUB_ARRAY(..., start, num, ...) saves the num elems starting at
position start of the array
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

9d29cdea 10/27/2009 07:28 pm Juan Quintela

rtl8139: port TallyCounters to vmstate

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

904ca304 10/27/2009 07:28 pm Juan Quintela

vmstate: factor vmstate_offset_value

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

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

vmstate: factor vmstate_offset_pointer

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

646bef19 10/27/2009 07:28 pm Juan Quintela

vmstate: factor vmstate_offset_array

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

844b236a 10/27/2009 07:28 pm Juan Quintela

vmstate: factor vmstate_offset_buffer

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

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

vmstate: factor VMSTATE_*BUFFER* definitions

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

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

vmstate: Rename VMS_VARRAY to VMS_VARRAY_INT32

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

5139931f 10/27/2009 07:28 pm Juan Quintela

vmstate: fix indentation

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

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 <>

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

vmstate: Add support for partial buffers transmission

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

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

serial: use post_load version_id field and remove pre_load function

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

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

vmstate: add VMSTATE_UINT16_EQUAL[_V]

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 <>

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 <>