diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 16:00:08 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-10-15 09:52:15 +0200 |
commit | bdbb5b1706d165e8d4222121f1e9b59b6b4359ce (patch) | |
tree | 41d6cab089485a0bf6a7438de156f9143e492746 /include | |
parent | 9d27572d626be35aea079df1ea690215fea0598a (diff) | |
download | qemu-bdbb5b1706d165e8d4222121f1e9b59b6b4359ce.tar.gz qemu-bdbb5b1706d165e8d4222121f1e9b59b6b4359ce.tar.bz2 qemu-bdbb5b1706d165e8d4222121f1e9b59b6b4359ce.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/nvram/fw_cfg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/nvram/fw_cfg.h b/include/hw/nvram/fw_cfg.h index 72b1549dc4..56e1ed7122 100644 --- a/include/hw/nvram/fw_cfg.h +++ b/include/hw/nvram/fw_cfg.h @@ -76,6 +76,8 @@ void fw_cfg_add_file(FWCfgState *s, const char *filename, void *data, void fw_cfg_add_file_callback(FWCfgState *s, const char *filename, FWCfgReadCallback callback, void *callback_opaque, void *data, size_t len); +void *fw_cfg_modify_file(FWCfgState *s, const char *filename, void *data, + size_t len); FWCfgState *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, hwaddr crl_addr, hwaddr data_addr); |