Dom0: restart ehci_hcd module on resume for all netvms (#299)

This commit is contained in:
Joanna Rutkowska 2011-07-30 11:20:11 +02:00
parent 4dde8f8661
commit 7a12cbd0e8

View File

@ -16,7 +16,7 @@ get_running_netvms() {
suspend_net() suspend_net()
{ {
for VM in `get_running_netvms`; do 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 done
# Ignore exit status from netvm... # Ignore exit status from netvm...
return 0 return 0
@ -25,7 +25,7 @@ suspend_net()
resume_net() resume_net()
{ {
for VM in `get_running_netvms`; do 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 done
# Ignore exit status from netvm... # Ignore exit status from netvm...
return 0 return 0