diff options
author | 2023-04-24 11:31:40 +0200 | |
---|---|---|
committer | 2023-06-05 13:13:52 +0200 | |
commit | 3569cb7b789cf39273cad7c902d8f2685ebf011c (patch) | |
tree | 9e31b9497ef14d9e91a15f0fbc34abe01c6e3750 /scripts/test-driver.py | |
parent | parallels: create parallels_set_bat_entry_helper() to assign BAT value (diff) | |
download | qemu-3569cb7b789cf39273cad7c902d8f2685ebf011c.tar.xz qemu-3569cb7b789cf39273cad7c902d8f2685ebf011c.zip |
parallels: Use generic infrastructure for BAT writing in parallels_co_check()
BAT is written in the context of conventional operations over the image
inside bdrv_co_flush() when it calls parallels_co_flush_to_os() callback.
Thus we should not modify BAT array directly, but call
parallels_set_bat_entry() helper and bdrv_co_flush() further on. After
that there is no need to manually write BAT and track its modification.
This makes code more generic and allows to split parallels_set_bat_entry()
for independent pieces.
Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Message-Id: <20230424093147.197643-6-alexander.ivanov@virtuozzo.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
Diffstat (limited to 'scripts/test-driver.py')
0 files changed, 0 insertions, 0 deletions