WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] How to disconnect a network card in the Virtual machine?

Hi,

I develop windows pv driver make a WHQL test on it. Now i hit a problem when i pass WHQL NDISTest 6.5(manual). During this test, the user will be required to disconnect the network card, it is OK to unplug the network cable in physical environment. But in the virtual situation, it is difficult to simulate this situation.

I have an initial idea about how to realize this feature as following. Please point out if problems exist in my idea.

In the backend, adding a new value in xenstore, and front end can watch this value to detect network connection status. When users want to disconnect the network card, they can change the value in the xenstore. Then front end get this notification by watcher of this value, and do more process to realize function of disconnection.

Waiting more suggestions to realize this feature.......

Thanks
Annie.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel