mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
fw_cfg: add write callback
Reintroduce the write callback that was removed when write support was
removed in commit 023e314856
.
Contrary to the previous callback implementation, the write_cb
callback is called whenever a write happened, so handlers must be
ready to handle partial write as necessary.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
06592d7e28
commit
5f9252f7cc
6 changed files with 18 additions and 9 deletions
|
@ -124,7 +124,7 @@ void vmgenid_add_fw_cfg(VmGenIdState *vms, FWCfgState *s, GArray *guid)
|
|||
fw_cfg_add_file(s, VMGENID_GUID_FW_CFG_FILE, guid->data,
|
||||
VMGENID_FW_CFG_SIZE);
|
||||
/* Create a read-write fw_cfg file for Address */
|
||||
fw_cfg_add_file_callback(s, VMGENID_ADDR_FW_CFG_FILE, NULL, NULL,
|
||||
fw_cfg_add_file_callback(s, VMGENID_ADDR_FW_CFG_FILE, NULL, NULL, NULL,
|
||||
vms->vmgenid_addr_le,
|
||||
ARRAY_SIZE(vms->vmgenid_addr_le), false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue