mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: Fix xl shutdown for HVM without PV drivers
A return value of zero means no PV drivers. Restore a hunk which was removed.
Fixes commit b183e180bc
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
1 parent
dd5f07997f
commit
60d6ba1916
1 file changed
+3
@@ -774,6 +774,9 @@ int libxl__domain_pvcontrol(libxl__egc *egc, libxl__xswait_state *pvcontrol,
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
if (!rc)
|
||||
return ERROR_NOPARAVIRT;
|
||||
|
||||
shutdown_path = libxl__domain_pvcontrol_xspath(gc, domid);
|
||||
if (!shutdown_path)
|
||||
return ERROR_FAIL;
|
||||
|
||||