From 7a12cbd0e8c8527fd5bbc7c734c664c7864465b6 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sat, 30 Jul 2011 11:20:11 +0200 Subject: [PATCH] Dom0: restart ehci_hcd module on resume for all netvms (#299) --- dom0/pm-utils/01qubes-suspend-netvm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom0/pm-utils/01qubes-suspend-netvm b/dom0/pm-utils/01qubes-suspend-netvm index d6e362d1..a206fc84 100755 --- a/dom0/pm-utils/01qubes-suspend-netvm +++ b/dom0/pm-utils/01qubes-suspend-netvm @@ -16,7 +16,7 @@ get_running_netvms() { suspend_net() { for VM in `get_running_netvms`; do - qvm-run -u root --pass_io $VM 'service NetworkManager stop; for if in `ls /sys/class/net|grep -v "lo\|vif"`; do ip l s $if down; done' + qvm-run -u root --pass_io $VM 'service NetworkManager stop; for if in `ls /sys/class/net|grep -v "lo\|vif"`; do ip l s $if down; done; rmmod ehci_hcd' done # Ignore exit status from netvm... return 0 @@ -25,7 +25,7 @@ suspend_net() resume_net() { for VM in `get_running_netvms`; do - qvm-run -u root --pass_io $VM "service NetworkManager start" + qvm-run -u root --pass_io $VM "modprobe ehci_hcd; service NetworkManager start" done # Ignore exit status from netvm... return 0