Problem of netfront by network-attach/detach
Hi All,
We tested the xm network-attach/detach command.
It repeats network-attach/detach command for DomU and pv-on-hvm on HVM Domain. (network-attach → network-detach → network-attach → network-detach → ...)
If network-attach/detach command is repeated 13 times, the following errors occur.
### netfront can't alloc rx grant refs
vif vif-13: 12 creating netdev
vif vif-13: 12 xenbus_dev_probe on device/vif/13
After that, the same problem occurred.
The environment is as follows.
・xen-unstable.hg : cs 13129
DomU and pv-on-hvm on HVM Domain
Thanks
--
Takanori Kasai
Hi,
This issue is caused by netif_release_rx_bufs@drivers/xen/netfront/netfront.c
if (np->copying_receiver) {
printk("%s: fix me for copying receiver.\n", __FUNCTION__);
return;
}This code makes memory leaking.
for example, GrantTable is allocated 256 but freed 192(by seeing gnttab_free_count). This makes 64table leaking for every network-attach/detach operation.
To fix this issue, we need to fix copying receiver. Is there any suggestion on this?
Thanks
Atsushi SAKAI
Quoted 31 lines
Hi All,
We tested the xm network-attach/detach command.
It repeats network-attach/detach command for DomU and pv-on-hvm on HVM Domain. (network-attach → network-detach → network-attach → network-detach → ...)If network-attach/detach command is repeated 13 times, the following errors occur.
### netfront can't alloc rx grant refs
vif vif-13: 12 creating netdev
vif vif-13: 12xenbus_dev_probeon device/vif/13After that, the same problem occurred.
The environment is as follows.
・xen-unstable.hg : cs 13129
DomU and pv-on-hvm on HVM DomainThanks
--
Takanori Kasai_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel