]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix error when migration with shared TPM storage is unsupported v11.4.0-rc2
authorJiri Denemark <jdenemar@redhat.com>
Tue, 27 May 2025 13:42:36 +0000 (15:42 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 29 May 2025 09:53:39 +0000 (11:53 +0200)
commit73f57e051a5f8e2dd6fcbf05b057bdd24454c9da
tree3ff49076f176922d4aafd87e9a461b4107836a1e
parentdc1fe00e94b628bce4da2c2c02583d7b62bf945c
qemu: Fix error when migration with shared TPM storage is unsupported

The VIR_ERR_NO_SUPPORT error is supposed to be used for unsupported
driver APIs. It is incorrectly used when swtpm does not support
migration with shared storage resulting in a rather strange error
message:

    this function is not supported by the connection driver: the running
    swtpm does not support migration with shared storage

The correct VIR_ERR_OPERATION_UNSUPPORTED error code provides a much
better message:

    Operation not supported: the running swtpm does not support
    migration with shared storage

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c