summary refs log tree commit diff stats
path: root/hw/ide-internal.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-20 15:22:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 20:43:33 -0500
commitbcbdc4d3542bf390ec6ab9463c160a65bb3bcfdb (patch)
tree6fc3c50cf6fb0eaabea064454dc266a153b8449a /hw/ide-internal.h
parent286c2321ec52d978b389aff3094132995bf343d2 (diff)
downloadfocaccia-qemu-bcbdc4d3542bf390ec6ab9463c160a65bb3bcfdb.tar.gz
focaccia-qemu-bcbdc4d3542bf390ec6ab9463c160a65bb3bcfdb.zip
ide: add IDEBus struct, cleanups
The current IDE code uses an array of two IDEState structs to maintain
the IDE bus.  This patch adds a IDEBus to be used instead and does a
bunch of cleanups:

 * move ide bus state from IDEState to IDEBus.
 * drop a bunch of ugly pointer arithmetics to figure the active
   interface, explicitly save the interface number instead.
 * add helper functions to save/restore idebus state.

It also fixes a save/restore bug: loadvm allways stores the command in
the master's IDEState, even when it was saved from the slave.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide-internal.h')
0 files changed, 0 insertions, 0 deletions