|
From: | Rafael Pizarro Solar |
Subject: | Automatic block overlay creation with freeing the write lock |
Date: | Tue, 26 Sep 2023 19:58:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
Dear QEMU maintainers, For reference, I am using QEMU 8.0.0, and running with
softmmu-aarch64. I have been trying implement a feature that directly creates an
overlay with the goal of booting multiple instances from the same
base image. Creating a backing file with `qemu-img` does work, but I want to
automatize the process by using creating an overlay with the 'qmp_blockdev_snapshot_sync'
function or similar. So far my approach has been to call `qmp_blockdev_snapshot_sync` during startup phase in the `void qmp_x_exit_preconfig(Error **errp)` stage. My expected behavior would be that now that there's an overlay, the "write" lock would be released, allowing for a second image to boot, but it fails as the overlay still hasn't released "write" lock for the backing file. Thank you for your time, best regards |
[Prev in Thread] | Current Thread | [Next in Thread] |