Skip to content
  • Gerd Hoffmann's avatar
    bab47d9a
    Sort the fw_cfg file list · bab47d9a
    Gerd Hoffmann authored
    
    
    Entries are inserted in filename order instead of being
    appended to the end in case sorting is enabled.
    
    This will avoid any future issues of moving the file creation
    around, it doesn't matter what order they are created now,
    the will always be in filename order.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    
    Added machine type handling for compatibility.  This was
    a fairly complex change, this will preserve the order of fw_cfg
    for older versions no matter what order the firmware files
    actually come in.  A list is kept of the correct legacy order
    and the entries will be inserted based upon their order in
    the list.  Except that some entries are ordered (in a specific
    area of the list) based upon what order they appear on the
    command line.  Special handling is added for those entries.
    
    Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    bab47d9a
    Sort the fw_cfg file list
    Gerd Hoffmann authored
    
    
    Entries are inserted in filename order instead of being
    appended to the end in case sorting is enabled.
    
    This will avoid any future issues of moving the file creation
    around, it doesn't matter what order they are created now,
    the will always be in filename order.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    
    Added machine type handling for compatibility.  This was
    a fairly complex change, this will preserve the order of fw_cfg
    for older versions no matter what order the firmware files
    actually come in.  A list is kept of the correct legacy order
    and the entries will be inserted based upon their order in
    the list.  Except that some entries are ordered (in a specific
    area of the list) based upon what order they appear on the
    command line.  Special handling is added for those entries.
    
    Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Loading