fw_cfg: fix boot order bug when dynamically modified via QOM
commitf3b3766899fc0a79a175a5d29d0ff427327cd34a
authorGonglei <arei.gonglei@huawei.com>
Tue, 25 Nov 2014 04:38:19 +0000 (25 12:38 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Nov 2014 11:11:27 +0000 (26 12:11 +0100)
treea419403bd9a8d2be3737bfaabffa5ba366864964
parentd1048bef9df0aacde9a54bf9b5b97a6e10950d8c
fw_cfg: fix boot order bug when dynamically modified via QOM

When we dynamically modify boot order, the length of
boot order will be changed, but we don't update
s->files->f[i].size with new length. This casuse
seabios read a wrong vale of qemu cfg file about
bootorder.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/nvram/fw_cfg.c