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

RE: [Xen-devel] compile error of HVM pv drivers

On Mon, 2007-07-30 at 22:39 +0800, Zhao, Yunfeng wrote:
> Hi, Kieran
> I just checked 2.6.16 kernel source.
> netif_tx_lock_bh is not in the code of 2.6.16, but it is in 2.6.18

In that case replacing the calls (there are two in that file) to
netif_tx_lock_bh() with:

 spin_lock_bh(&vif_state->np->netdev->xmit_lock);

And similarly the calls to netif_tx_unlock_bh() with spin_unlock_bh(),
may solve your problem.

If this works for you I'll make a patch that uses the kernel version to
decide which is appropriate.

Kieran



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