]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
Sort the fw_cfg file list
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Apr 2016 14:12:58 +0000 (09:12 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 16:57:33 +0000 (19:57 +0300)
commitbab47d9a75a33de747420e6b74fd157b708c890b
treeb0fc9ff72b93c3c07effe43a59b83b3ab4ce8dbe
parent0f8445820f11a69154309863960328dda3dc1ad4
Sort the fw_cfg file list

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: Gerd 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: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/loader.c
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
hw/nvram/fw_cfg.c
include/hw/boards.h
include/hw/loader.h
include/hw/nvram/fw_cfg.h
tests/Makefile
vl.c