From a73275dd6fc3bfda33165bebc28e0c33c20cb0a0 Mon Sep 17 00:00:00 2001 From: John Snow Date: Fri, 22 Jan 2016 15:51:00 -0500 Subject: fdc: Add fallback option Currently, QEMU chooses a drive type automatically based on the inserted media. If there is no disk inserted, it chooses a 1.44MB drive type. Change this behavior to be configurable, but leave it defaulted to 1.44. This is not earnestly intended to be used by a user or a management library, but rather exists so that pre-2.6 board types can configure it to be a legacy value. Reviewed-by: Eric Blake Signed-off-by: John Snow Message-id: 1453495865-9649-8-git-send-email-jsnow@redhat.com --- hw/core/qdev-properties.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hw/core/qdev-properties.c') diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index 3572810b42..aacad669e3 100644 --- a/hw/core/qdev-properties.c +++ b/hw/core/qdev-properties.c @@ -541,6 +541,17 @@ PropertyInfo qdev_prop_bios_chs_trans = { .set = set_enum, }; +/* --- FDC default drive types */ + +PropertyInfo qdev_prop_fdc_drive_type = { + .name = "FdcDriveType", + .description = "FDC drive type, " + "144/288/120/none/auto", + .enum_table = FloppyDriveType_lookup, + .get = get_enum, + .set = set_enum +}; + /* --- pci address --- */ /* -- cgit 1.4.1