Skip to contentSkip to conversation

Problem of netfront by network-attach/detach

DISCUSSION Kasai Takanori 2 participants 2 messages Dec 22, 2006 – Dec 27, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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: 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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel