[Qemu-block] [PULL 42/57] i386/pc_q35: don't insist on board FDC if there's no default floppy

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek ler...@redhat.com The no_floppy = 1 machine class setting causes default_floppy in main() to become zero. Consequently, default_drive() will not call drive_add() and drive_new() for IF_FLOPPY, index=0, meaning that no default floppy drive will be created for the virtual

[Qemu-block] [PULL 43/57] i386: drop FDC in pc-q35-2.4+ if neither it nor floppy drives are wanted

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek ler...@redhat.com It is Very annoying to carry forward an outdatEd coNtroller with a mOdern Machine type. Hence, let us not instantiate the FDC when all of the following apply: - the machine type is pc-q35-2.4 or later, - -device isa-fdc is not passed on the command line (nor

[Qemu-block] [PULL 40/57] i386/pc: pc_basic_device_init(): delegate FDC creation request

2015-05-31 Thread Michael S. Tsirkin
From: Laszlo Ersek ler...@redhat.com This patch introduces no observable change, but it allows the callers of pc_basic_device_init(), ie. pc_init1() and pc_q35_init(), to request (or not request) the creation of the FDC explicitly. At the moment both callers pass constant create_fdctrl=true