fw_cfg: add fw_cfg_machine_reset function
commitbdbb5b1706d165e8d4222121f1e9b59b6b4359ce
authorGonglei <arei.gonglei@huawei.com>
Tue, 7 Oct 2014 08:00:08 +0000 (7 16:00 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Oct 2014 07:52:15 +0000 (15 09:52 +0200)
tree41d6cab089485a0bf6a7438de156f9143e492746
parent9d27572d626be35aea079df1ea690215fea0598a
fw_cfg: add fw_cfg_machine_reset function

We must assure that the changed bootindex can take effect
when guest is rebooted. So we introduce fw_cfg_machine_reset(),
which change the fw_cfg file's bootindex data using the new
global fw_boot_order list.

Signed-off-by: Chenliang <chenliang88@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/nvram/fw_cfg.c
include/hw/nvram/fw_cfg.h