diff options
| author | Gonglei | 2014-10-07 10:00:08 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2014-10-15 09:52:15 +0200 |
| commit | bdbb5b1706d165e8d4222121f1e9b59b6b4359ce (patch) | |
| tree | 41d6cab089485a0bf6a7438de156f9143e492746 /include/hw/nvram | |
| parent | bootindex: add del_boot_device_path function (diff) | |
| download | qemu-bdbb5b1706d165e8d4222121f1e9b59b6b4359ce.tar.gz qemu-bdbb5b1706d165e8d4222121f1e9b59b6b4359ce.tar.xz 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/hw/nvram')
| -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); |
