]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Setup floppy drives via -device for blockdev
authorPeter Krempa <pkrempa@redhat.com>
Mon, 13 Aug 2018 13:28:48 +0000 (15:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
commit94e4530992959c534ef6d3ad1942894b9e5b0aca
treef46c833df863d171070bfe66d771ca0c4bf86745
parentfb64e176f4fe30cea32614b6826d2f21509daf45
qemu: command: Setup floppy drives via -device for blockdev

To allow referring to the drives via the QOM id we need to setup the
floppy drives with a proper ID. This means that -device should be used
for them.

There are the following quirks:
- FDC needs to be instantiated prior to any floppy device
- floppy drive specified via -device does not support 'bootindex'
    (hacked around by passing bootindexA=1 to the FDC)

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c