On 12/07/2015 04:34 PM, John Snow wrote: > 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 explicit > behaviors: 120, 144, 288, auto, and none. The new "auto" behavior > is intended to mimick current behavior, while the other types pick
s/mimick/mimic/ (one of those weird 'ic' verbs where the 'k' is necessary in past tense but not present tense) > one explicitly. > > In a future patch, the goal is to change the FDC's default drive type > from auto (falling back to 1.44MB) to auto (falling back to 2.88MB). > > In order to allow users to obtain the old behaviors, though, a mechanism > for specifying the exact type of drive we want is needed. > > This patch adds the properties, but it is not acted on yet in favor of > making those changes a little more explicitly clear in standalone patches > later in this patch set. > > Signed-off-by: John Snow <js...@redhat.com> > --- > +++ 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 Names start with a digit - not the prettiest, but also not the first instance, so qapi handles it just fine. And I don't have any suggestions for a better yet still concise name. > +# @none: No drive connected > +# @auto: Automatically determined by inserted media at boot > +# > +# Since: 2.6 > +## > +{ 'enum': 'FloppyDriveType', > + 'data': ['144', '288', '120', 'none', 'auto']} Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature