1. 01 6月, 2015 2 次提交
    • L
      i386/pc: '-drive if=floppy' should imply a board-default FDC · 936a7c1c
      Laszlo Ersek 提交于
      Even if board code decides not to request the creation of the FDC (keyed
      off board-level factors, to be determined later), we should create the FDC
      nevertheless if the user passes '-drive if=floppy' on the command line.
      
      Otherwise '-drive if=floppy' would break without explicit '-device
      isa-fdc' on such boards.
      
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: John Snow <jsnow@redhat.com>
      Cc: "Gabriel L. Somlo" <gsomlo@gmail.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: qemu-block@nongnu.org
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      936a7c1c
    • L
      i386/pc: pc_basic_device_init(): delegate FDC creation request · fd53c87c
      Laszlo Ersek 提交于
      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 (hence no
      observable change).
      
      Assuming a board passes create_fdctrl=false, "floppy" will be NULL on
      output, and (beyond the FDC not being created) that NULL will be passed on
      to pc_cmos_init(). Luckily, pc_cmos_init() already handles that case.
      
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: John Snow <jsnow@redhat.com>
      Cc: "Gabriel L. Somlo" <gsomlo@gmail.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: qemu-block@nongnu.org
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      fd53c87c
  2. 31 5月, 2015 38 次提交