fdc: add pick_drive
commitd5d47efc856c139ec0cd1887e2d018ff9a93c32d
authorJohn Snow <jsnow@redhat.com>
Fri, 22 Jan 2016 20:50:59 +0000 (22 15:50 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 25 Jan 2016 19:35:23 +0000 (25 14:35 -0500)
treef772d9d2cba24046f0bd08e1501c4b257ee3346d
parent69ce1ac26dcdd2073d4b4dc0eb52787eb9fca628
fdc: add pick_drive

Split apart pick_geometry by creating a pick_drive routine that will only
ever called during device bring-up instead of relying on pick_geometry to
be used in both cases.

With this change, the drive field is changed to be 'write once'. It is
not altered after the initialization routines exit.

media_validated does not need to be migrated. The target VM
will just revalidate the media on post_load anyway.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1453495865-9649-7-git-send-email-jsnow@redhat.com
hw/block/fdc.c