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:
Olaf Hering authored and Wei Liu committed 2020-03-21 16:44:15 +00:00
1 parent dd5f07997f
commit 60d6ba1916
1 file changed
+3
+3
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.