[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 03/12] fdc: add drive type qapi enum
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v4 03/12] fdc: add drive type qapi enum |
Date: |
Wed, 20 Jan 2016 13:33:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 01/19/2016 11:51 PM, John Snow wrote:
> Change the floppy drive type to a QAPI enum type, to allow us to
> specify the floppy drive type from the CLI in a forthcoming patch.
>
> Signed-off-by: John Snow <address@hidden>
> ---
> hw/block/fdc.c | 80
> +++++++++++++++++++++++++-------------------------
> hw/i386/pc.c | 17 ++++++-----
> include/hw/block/fdc.h | 9 +-----
> qapi/block.json | 16 ++++++++++
> 4 files changed, 66 insertions(+), 56 deletions(-)
>
> +++ b/qapi/block.json
> @@ -40,6 +40,22 @@
> 'data': ['auto', 'none', 'lba', 'large', 'rechs']}
>
> ##
> +# @FloppyDriveType
> +#
> +# Type of Floppy drive to be emulated by the Floppy Disk Controller.
> +#
> +# @144: 1.44MB 3.5" drive
> +# @288: 2.88MB 3.5" drive
> +# @120: 1.5MB 5.25" drive
Umm, how does 120 match with 1.5M? Elsewhere the code comments say:
/* 1.2 MB 5"1/4 floppy disks */
With the typo fixed,
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v4 00/12] fdc: fix 2.88mb floppy diskette support, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 04/12] fdc: add disk field, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 06/12] fdc: add pick_drive, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 03/12] fdc: add drive type qapi enum, John Snow, 2016/01/20
- Re: [Qemu-devel] [PATCH v4 03/12] fdc: add drive type qapi enum,
Eric Blake <=
- [Qemu-devel] [PATCH v4 02/12] fdc: reduce number of pick_geometry arguments, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 07/12] fdc: Add fallback option, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 11/12] qtest/fdc: Support for 2.88MB drives, John Snow, 2016/01/20
- [Qemu-devel] [PATCH v4 10/12] fdc: rework pick_geometry, John Snow, 2016/01/20