Skip to content
  • Paolo Bonzini's avatar
    vga: disable default VGA if appropriate -device is used · 7f1b17f2
    Paolo Bonzini authored
    This is a partial revert of commits a369da5f (vga: improve VGA logic,
    committed 2012-01-22) and c5bd4f3d (vga: fix -nodefaults -device VGA,
    2012-01-24) which broke command-line option parsing in different ways.
    
    Since commit a369da5f it has become impossible to specify a VGA device
    entirely with QemuOpts-enabled options, i.e. without needing an explicit
    "-vga none".
    
    In addition, until commit c5bd4f3d -nodefaults would not disable the device
    you specified with the legacy "-vga" option, independent of the order.
    Since commit c5bd4f3d
    
     QEMU -nodefaults will override a previous -vga
    option.
    
    I did not reintroduce machine->no_vga.  Boards can simply ignore the
    vga_interface_type variable, and most will indeed do so.
    
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    7f1b17f2