]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Fix domain startup failure error reporting
authorCole Robinson <crobinso@redhat.com>
Fri, 17 Jun 2022 21:09:32 +0000 (17:09 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 21 Jun 2022 13:01:03 +0000 (09:01 -0400)
commit25072c03049cdfcd707c9fbbbb328a08a529a498
tree77448f87b7460252a6f4f486a115914b4a4c4c01
parent5f0765f90f852d70ed704401ee834f1b1db8227f
libxl: Fix domain startup failure error reporting

When domain startup fails, domain cleanup calls
libxlNetworkUnwindDevices, which calls virGetConnectNetwork, which
is a top level API entry point, which resets the initial saved error,
leading to clients seeing:

  error: An error occurred, but the cause is unknown

This preserves the error around the entire teardown process, similar
to what is done in the qemu driver.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/libxl/libxl_domain.c