]> git.proxmox.com Git - qemu.git/log
qemu.git
14 years agomonitor: Convert do_closefd() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:51 +0000 (12:23 -0300)]
monitor: Convert do_closefd() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_getfd() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:50 +0000 (12:23 -0300)]
monitor: Convert do_getfd() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_eject() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:49 +0000 (12:23 -0300)]
monitor: Convert do_eject() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_pci_device_hot_remove() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:48 +0000 (12:23 -0300)]
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 <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_migrate_cancel() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:47 +0000 (12:23 -0300)]
monitor: Convert do_migrate_cancel() to QObject

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_migrate_set_speed() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:46 +0000 (12:23 -0300)]
monitor: Convert do_migrate_set_speed() to QObject

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_migrate() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:45 +0000 (12:23 -0300)]
monitor: Convert do_migrate() to QObject

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

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_physical_memory_save() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:44 +0000 (12:23 -0300)]
monitor: Convert do_physical_memory_save() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomonitor: Convert do_memory_save() to QObject
Luiz Capitulino [Fri, 16 Oct 2009 15:23:43 +0000 (12:23 -0300)]
monitor: Convert do_memory_save() to QObject

Note that errors are not being converted yet.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agolsi_scsi: port to vmstate
Juan Quintela [Tue, 20 Oct 2009 15:56:54 +0000 (17:56 +0200)]
lsi_scsi: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add VMSTATE_BUFFER_UNSAFE
Juan Quintela [Tue, 20 Oct 2009 15:56:13 +0000 (17:56 +0200)]
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 <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: port to vmstate
Juan Quintela [Wed, 14 Oct 2009 17:30:22 +0000 (19:30 +0200)]
vmware_vga: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: the support to change dinamically depth is not there
Juan Quintela [Wed, 14 Oct 2009 17:25:30 +0000 (19:25 +0200)]
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 <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: scratch is really an array of uint32_t
Juan Quintela [Wed, 14 Oct 2009 17:15:54 +0000 (19:15 +0200)]
vmware_vga: scratch is really an array of uint32_t

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: remove !EMBED_STDVGA code
Juan Quintela [Wed, 14 Oct 2009 16:57:40 +0000 (18:57 +0200)]
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 <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: qemu_malloc() returns void *
Juan Quintela [Wed, 14 Oct 2009 16:16:51 +0000 (18:16 +0200)]
vmware_vga: qemu_malloc() returns void *

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: Remove uselss casts from void *
Juan Quintela [Wed, 14 Oct 2009 15:49:08 +0000 (17:49 +0200)]
vmware_vga: Remove uselss casts from void *

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmware_vga: Pass pci_vmsga_state_t arg no VGACommonState
Juan Quintela [Wed, 14 Oct 2009 15:42:32 +0000 (17:42 +0200)]
vmware_vga: Pass pci_vmsga_state_t arg no VGACommonState

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: remove unused vga_common_save/load
Juan Quintela [Wed, 14 Oct 2009 13:43:42 +0000 (15:43 +0200)]
vga: remove unused vga_common_save/load

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: port vga-pci to vmstate
Juan Quintela [Wed, 14 Oct 2009 13:42:44 +0000 (15:42 +0200)]
vga: port vga-pci to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: port vmware std vga to vmstate
Juan Quintela [Wed, 14 Oct 2009 13:33:46 +0000 (15:33 +0200)]
vga: port vmware std vga to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: port vga-isa to vmstate
Juan Quintela [Wed, 14 Oct 2009 13:33:26 +0000 (15:33 +0200)]
vga: port vga-isa to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: port vga-isa-mm to vmstate
Juan Quintela [Wed, 14 Oct 2009 13:33:20 +0000 (15:33 +0200)]
vga: port vga-isa-mm to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: port vga_common_save/load to vmstate
Juan Quintela [Wed, 14 Oct 2009 13:25:25 +0000 (15:25 +0200)]
vga: port vga_common_save/load to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovga: create is_vbe_vmstate field
Juan Quintela [Wed, 14 Oct 2009 12:10:11 +0000 (14:10 +0200)]
vga: create is_vbe_vmstate field

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoe1000: port to vmstate
Juan Quintela [Mon, 19 Oct 2009 18:06:05 +0000 (20:06 +0200)]
e1000: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoe1000: unfold mac_regarraystosave array
Juan Quintela [Mon, 19 Oct 2009 17:20:26 +0000 (19:20 +0200)]
e1000: unfold mac_regarraystosave array

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoe1000: unfold mac_reg_tosave array
Juan Quintela [Mon, 19 Oct 2009 17:16:16 +0000 (19:16 +0200)]
e1000: unfold mac_reg_tosave array

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agone2000: port to vmstate
Juan Quintela [Mon, 19 Oct 2009 16:26:11 +0000 (18:26 +0200)]
ne2000: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agopcnet: port to vmstate
Juan Quintela [Mon, 19 Oct 2009 16:02:13 +0000 (18:02 +0200)]
pcnet: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoeepro100: port to vmstate
Juan Quintela [Mon, 19 Oct 2009 13:37:57 +0000 (15:37 +0200)]
eepro100: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoeeprom93xx: port to vmstate
Juan Quintela [Fri, 16 Oct 2009 10:13:53 +0000 (12:13 +0200)]
eeprom93xx: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agortl8139: port to vmstate
Juan Quintela [Thu, 15 Oct 2009 13:51:26 +0000 (15:51 +0200)]
rtl8139: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agortl8139: port TallyCounters to vmstate
Juan Quintela [Thu, 15 Oct 2009 12:44:01 +0000 (14:44 +0200)]
rtl8139: port TallyCounters to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Introduce the concept of sub-arrays
Juan Quintela [Mon, 19 Oct 2009 18:00:36 +0000 (20:00 +0200)]
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 <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add VMSTATE_MACADDR for the new type
Juan Quintela [Thu, 22 Oct 2009 18:50:06 +0000 (20:50 +0200)]
vmstate: Add VMSTATE_MACADDR for the new type

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add VMSTATE_BUFFER_UNUSED
Juan Quintela [Mon, 19 Oct 2009 13:46:28 +0000 (15:46 +0200)]
vmstate: Add VMSTATE_BUFFER_UNUSED

It allows to have 'things' in savevm format not backed in the device state
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add version arg to VMSTATE_SINGLE_TEST()
Juan Quintela [Fri, 16 Oct 2009 13:26:53 +0000 (15:26 +0200)]
vmstate: Add version arg to VMSTATE_SINGLE_TEST()

This allows to define VMSTATE_SINGLE with VMSTATE_SINGLE_TEST
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: add VMS_VARRAY_UINT16_UNSAFE (varrays with uint16 indexes)
Juan Quintela [Fri, 16 Oct 2009 09:35:18 +0000 (11:35 +0200)]
vmstate: add VMS_VARRAY_UINT16_UNSAFE (varrays with uint16 indexes)

It don't check types.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Unfold VMSTATE_INT32_VARRAY() only use and remove it
Juan Quintela [Fri, 16 Oct 2009 11:29:48 +0000 (13:29 +0200)]
vmstate: Unfold VMSTATE_INT32_VARRAY() only use and remove it

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: factor VMSTATE_*BUFFER* definitions
Juan Quintela [Fri, 16 Oct 2009 11:05:14 +0000 (13:05 +0200)]
vmstate: factor VMSTATE_*BUFFER* definitions

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: factor vmstate_offset_buffer
Juan Quintela [Fri, 16 Oct 2009 10:53:07 +0000 (12:53 +0200)]
vmstate: factor vmstate_offset_buffer

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: factor vmstate_offset_array
Juan Quintela [Fri, 16 Oct 2009 10:41:15 +0000 (12:41 +0200)]
vmstate: factor vmstate_offset_array

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: factor vmstate_offset_pointer
Juan Quintela [Fri, 16 Oct 2009 10:35:27 +0000 (12:35 +0200)]
vmstate: factor vmstate_offset_pointer

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: factor vmstate_offset_value
Juan Quintela [Fri, 16 Oct 2009 10:34:01 +0000 (12:34 +0200)]
vmstate: factor vmstate_offset_value

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: fix indentation
Juan Quintela [Fri, 16 Oct 2009 09:29:03 +0000 (11:29 +0200)]
vmstate: fix indentation

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Rename VMS_VARRAY to VMS_VARRAY_INT32
Juan Quintela [Fri, 16 Oct 2009 09:27:17 +0000 (11:27 +0200)]
vmstate: Rename VMS_VARRAY to VMS_VARRAY_INT32

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: add VMSTATE_UINT16_EQUAL[_V]
Juan Quintela [Thu, 15 Oct 2009 21:16:13 +0000 (23:16 +0200)]
vmstate: add VMSTATE_UINT16_EQUAL[_V]

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovnmstate: fix name for uint8_equal
Juan Quintela [Thu, 15 Oct 2009 17:16:06 +0000 (19:16 +0200)]
vnmstate: fix name for uint8_equal

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoserial: use post_load version_id field and remove pre_load function
Juan Quintela [Fri, 16 Oct 2009 13:39:58 +0000 (15:39 +0200)]
serial: use post_load version_id field and remove pre_load function

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: Add support for partial buffers transmission
Juan Quintela [Wed, 14 Oct 2009 13:24:50 +0000 (15:24 +0200)]
vmstate: Add support for partial buffers transmission

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoib700: port to vmstate
Juan Quintela [Wed, 14 Oct 2009 22:57:35 +0000 (00:57 +0200)]
ib700: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoib700: move timer to IB700State
Juan Quintela [Wed, 14 Oct 2009 22:54:28 +0000 (00:54 +0200)]
ib700: move timer to IB700State

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoib700: Introduce IB700State
Juan Quintela [Wed, 14 Oct 2009 22:49:17 +0000 (00:49 +0200)]
ib700: Introduce IB700State

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agowdt_i6300esb: move PCI_DEVICE_IDE_INTEL_ESB_9 to pci_ids.h
Juan Quintela [Wed, 14 Oct 2009 23:12:25 +0000 (01:12 +0200)]
wdt_i6300esb: move PCI_DEVICE_IDE_INTEL_ESB_9 to pci_ids.h

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agowdt_i6300esb: remove useless casts from void *
Juan Quintela [Wed, 14 Oct 2009 20:58:14 +0000 (22:58 +0200)]
wdt_i6300esb: remove useless casts from void *

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agowdt_i6300esb: port to vmstate
Juan Quintela [Wed, 14 Oct 2009 20:47:04 +0000 (22:47 +0200)]
wdt_i6300esb: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: pre VMState functions are not needed anymore
Juan Quintela [Wed, 7 Oct 2009 18:58:03 +0000 (20:58 +0200)]
ide: pre VMState functions are not needed anymore

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port pci ide to vmstate
Juan Quintela [Wed, 7 Oct 2009 18:55:32 +0000 (20:55 +0200)]
ide: port pci ide to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port pmac ide to vmstate
Juan Quintela [Wed, 7 Oct 2009 17:04:46 +0000 (19:04 +0200)]
ide: port pmac ide to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port isa ide to vmstate
Juan Quintela [Wed, 7 Oct 2009 17:01:50 +0000 (19:01 +0200)]
ide: port isa ide to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port ide mmio to vmstate
Juan Quintela [Wed, 7 Oct 2009 16:58:25 +0000 (18:58 +0200)]
ide: port ide mmio to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: include bus in MMIOState
Juan Quintela [Wed, 7 Oct 2009 16:55:36 +0000 (18:55 +0200)]
ide: include bus in MMIOState

Change pointer to struct by embedded struct.

Adjust all callers
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port microdrive to vmstate
Juan Quintela [Wed, 7 Oct 2009 16:52:10 +0000 (18:52 +0200)]
ide: port microdrive to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: add VMSTATE_IDE_BUS and VMSTATE_IDE_DRIVES
Juan Quintela [Wed, 7 Oct 2009 16:51:30 +0000 (18:51 +0200)]
ide: add VMSTATE_IDE_BUS and VMSTATE_IDE_DRIVES

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: microdrive cycle field is set as uint8_t
Juan Quintela [Wed, 7 Oct 2009 16:18:20 +0000 (18:18 +0200)]
ide: microdrive cycle field is set as uint8_t

Really, it is used as a boolean
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port ide_drive to vmstate
Juan Quintela [Wed, 7 Oct 2009 15:59:47 +0000 (17:59 +0200)]
ide: port ide_drive to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovmstate: add VMSTATE_BUFFER_TEST
Juan Quintela [Wed, 7 Oct 2009 15:59:31 +0000 (17:59 +0200)]
vmstate: add VMSTATE_BUFFER_TEST

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: change identify_data type to uint8_t
Juan Quintela [Wed, 7 Oct 2009 15:58:34 +0000 (17:58 +0200)]
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 <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoide: port idebus to vmstate
Juan Quintela [Wed, 7 Oct 2009 15:24:31 +0000 (17:24 +0200)]
ide: port idebus to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomc146818rtc: remove rtc_mm_init()
Juan Quintela [Wed, 14 Oct 2009 11:12:42 +0000 (13:12 +0200)]
mc146818rtc: remove rtc_mm_init()

It was used for Acer Pica 61 emulation, removed in 2008
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomc146818rtc: fix indentation
Juan Quintela [Wed, 7 Oct 2009 22:14:58 +0000 (00:14 +0200)]
mc146818rtc: fix indentation

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomc146818rtc: port rtc to vmstate
Juan Quintela [Wed, 7 Oct 2009 22:12:06 +0000 (00:12 +0200)]
mc146818rtc: port rtc to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomc145818rtc: fix saving of rtc-td hack properly upgrading the version number
Juan Quintela [Wed, 9 Sep 2009 20:17:30 +0000 (22:17 +0200)]
mc145818rtc: fix saving of rtc-td hack properly upgrading the version number

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agousb-uhci: port to vmstate
Juan Quintela [Wed, 14 Oct 2009 10:49:30 +0000 (12:49 +0200)]
usb-uhci: port to vmstate

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agousb-uhci: Add num_ports_vmstate to UHCIState
Juan Quintela [Wed, 14 Oct 2009 10:21:50 +0000 (12:21 +0200)]
usb-uhci: Add num_ports_vmstate to UHCIState

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoAdd chardev option to disable signal.
Kusanagi Kouichi [Fri, 16 Oct 2009 13:31:38 +0000 (22:31 +0900)]
Add chardev option to disable signal.

If I am using vga and serial which is stdio and hit C-c on
serial console, qemu terminates. That is annoying for me.
So make it configurable whether signal is generated when C-c is hit.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agohotplug: more fixes for scsi disk hotplug.
Gerd Hoffmann [Wed, 14 Oct 2009 13:30:22 +0000 (15:30 +0200)]
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
   explaining why.  Review the patch to find the details ;)

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agohotplug: fix "pci_add storage if=scsi"
Gerd Hoffmann [Tue, 13 Oct 2009 11:59:55 +0000 (13:59 +0200)]
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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoisa: configure serial+parallel by index.
Gerd Hoffmann [Tue, 13 Oct 2009 11:38:39 +0000 (13:38 +0200)]
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

instead of

   -device isa-serial,iobase=0x2f8,irq=3

for ttyS1 aka com2.  Likewise for parallel ports.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agopc.c: only load e1000 rom.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:43 +0000 (15:25 +0200)]
pc.c: only load e1000 rom.

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

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agokill dead nic unplug code.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:42 +0000 (15:25 +0200)]
kill dead nic unplug code.

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

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agozap DeviceState->nd
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:41 +0000 (15:25 +0200)]
zap DeviceState->nd

No users left.
Also cleanup obsolete helper functions.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agomusicpal: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:40 +0000 (15:25 +0200)]
musicpal: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agostellaris_enet: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:39 +0000 (15:25 +0200)]
stellaris_enet: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoxilinx_ethlite: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:38 +0000 (15:25 +0200)]
xilinx_ethlite: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agosmc91c111: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:37 +0000 (15:25 +0200)]
smc91c111: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoeepro100: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:36 +0000 (15:25 +0200)]
eepro100: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agovirtio: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:35 +0000 (15:25 +0200)]
virtio: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agortl8139: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:34 +0000 (15:25 +0200)]
rtl8139: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agopcnet: split away lance.c (sparc32 code).
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:33 +0000 (15:25 +0200)]
pcnet: split away lance.c (sparc32 code).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agopcnet: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:32 +0000 (15:25 +0200)]
pcnet: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoe1000: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:31 +0000 (15:25 +0200)]
e1000: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agone2k_pci: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:30 +0000 (15:25 +0200)]
ne2k_pci: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoprepare pci nic init path for qdev property configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:29 +0000 (15:25 +0200)]
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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoqdev: add qdev_prop_exists()
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:28 +0000 (15:25 +0200)]
qdev: add qdev_prop_exists()

Function test whenever a driver has a specific property.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agone2k_isa: use qdev properties for configuration.
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:27 +0000 (15:25 +0200)]
ne2k_isa: use qdev properties for configuration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoqdev/net: common nic property bits
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:26 +0000 (15:25 +0200)]
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 <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoqdev: add vlan property
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:25 +0000 (15:25 +0200)]
qdev: add vlan property

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
14 years agoqdev: add netdev property
Gerd Hoffmann [Wed, 21 Oct 2009 13:25:24 +0000 (15:25 +0200)]
qdev: add netdev property

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>