summary refs log tree commit diff stats
path: root/hw/xen/xen_backend.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2016-01-22 15:51:01 -0500
committerJohn Snow <jsnow@redhat.com>2016-01-25 14:35:23 -0500
commitfff4687b9ea7da910bb503d5d3d276868f0a1d0f (patch)
tree4d3b2deed3d6626cede7c7f83d56c5064b8f6ddc /hw/xen/xen_backend.c
parenta73275dd6fc3bfda33165bebc28e0c33c20cb0a0 (diff)
downloadfocaccia-qemu-fff4687b9ea7da910bb503d5d3d276868f0a1d0f.tar.gz
focaccia-qemu-fff4687b9ea7da910bb503d5d3d276868f0a1d0f.zip
fdc: add drive type option
This patch adds a new explicit Floppy Drive Type option. The existing
behavior in QEMU is to automatically guess a drive type based on the
media inserted, or if a diskette is not present, arbitrarily assign one.

This behavior can be described as "auto." This patch adds the option
to pick an explicit behavior: 120, 144, 288 or none. The new "auto"
option is intended to mimic current behavior, while the other types
pick one explicitly.

Set the type given by the CLI during fd_init. If the type remains the
default (auto), we'll attempt to scan an inserted diskette if present
to determine a type. If auto is selected but no diskette is present,
we fall back to a predetermined default (currently 1.44MB to match
legacy QEMU behavior.)

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1453495865-9649-9-git-send-email-jsnow@redhat.com
Diffstat (limited to 'hw/xen/xen_backend.c')
0 files changed, 0 insertions, 0 deletions