This is currently reported only by the bootloader code, if the domain
is destroyed while the bootloader is running.
In the future it would be nice to return it for other circumstances
where the domain existed when the operation started but subsequently
vanished.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v4: Add a comment about the new error code's semantics
v2: New in this version of the series.
static void bootloader_domaindeath(libxl__egc *egc, libxl__domaindeathcheck *dc)
{
libxl__bootloader_state *bl = CONTAINER_OF(dc, *bl, deathcheck);
- bootloader_stop(egc, bl, ERROR_FAIL);
+ bootloader_stop(egc, bl, ERROR_DOMAIN_DESTROYED);
}
static void bootloader_finished(libxl__egc *egc, libxl__ev_child *child,
(-21, "DOMAIN_NOTFOUND"),
(-22, "ABORTED"),
(-23, "NOTFOUND"),
+ (-24, "DOMAIN_DESTROYED"), # Target domain ceased to exist during op
], value_namespace = "")
libxl_domain_type = Enumeration("domain_type", [