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.
This commit is contained in:
Simon Gaiser 2018-01-09 03:21:53 +01:00
parent d67af4bfd9
commit e7f4fa9a5d

View File

@ -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
}