summary refs log tree commit diff stats
path: root/qapi/string-output-visitor.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2012-05-24 11:02:29 +0200
committerKevin Wolf <kwolf@redhat.com>2012-05-25 18:21:12 +0200
commitcfb08fbafcd946341bdf14103293887763802697 (patch)
tree48ce6033ae4c8de786dfbebfc779372dfa33d383 /qapi/string-output-visitor.c
parent9ecd394753919b7395e620dffb8a5e23c45b5e07 (diff)
downloadfocaccia-qemu-cfb08fbafcd946341bdf14103293887763802697.tar.gz
focaccia-qemu-cfb08fbafcd946341bdf14103293887763802697.zip
fdc: fix media detection
We have to set up 'media_changed' after guest start so floppy driver
could detect that there is no media in drive. For this purpose we call
'fdctrl_change_cb' instead of 'fd_revalidate' in 'fdctrl_connect_drives'.
'fd_revalidate' is called inside 'fdctrl_change_cb'.

We still have to set default drive geometry in 'fd_revalidate' even
if there is no media in drive. When you try to open (windows) or mount (linux)
floppy the driver tries to seek on track 1. Linux guest stuck in loop then
kernel crashes and windows guest prints error message.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi/string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions