From e7f4fa9a5d7f576c92fbc88b352515ea6bb3c0b6 Mon Sep 17 00:00:00 2001 From: Simon Gaiser Date: Tue, 9 Jan 2018 03:21:53 +0100 Subject: [PATCH] pm-utils: Fix handling of HVM domains `xl list` reports the PCI devies for the stub domain. But we want to call qubes.SuspendPre inside the domain itself. --- pm-utils/51qubes-suspend-netvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pm-utils/51qubes-suspend-netvm b/pm-utils/51qubes-suspend-netvm index c9e3c2d..68b1af1 100755 --- a/pm-utils/51qubes-suspend-netvm +++ b/pm-utils/51qubes-suspend-netvm @@ -6,7 +6,7 @@ get_running_netvms() { RUNNING_NETVMS="" for VM in $RUNNING_VMS; do if [ -n "`xl pci-list $VM|tail -n +2`" ]; then - echo "$VM" + echo "${VM%-dm}" fi done }