From mboxrd@z Thu Jan 1 00:00:00 1970 From: ANNIE LI Subject: How to disconnect a network card in the Virtual machine? Date: Mon, 16 Feb 2009 10:35:00 +0800 Message-ID: <4998D0D4.8090804@oracle.com> References: <4997E249.1050407@goop.org> <49989685.6020004@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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.