Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD/xen goes off the network - reproduceable

> the attached patch changes xennet(4) to use a pool for receive
> buffer, and allocate them on demand for the ring. If a receive buffer
> is stalled in some socket queue, it's should not be a problem any more
> (other than memory consumption).

I applied the patch to NetBSD-6 and I can no longer provoke the problem
with my simple test.


However, running "tcpdump -i xennet0 -n icmp" reliably causes the panic
below after 1-15 seconds. There may be one other issue, but I'm going to
need another day to look into it. I think it may be something I'm doing.

fatal page fault in supervisor mode
trap type 6 code 0 eip c0108e36 cs 9 eflags 10287 cr2 506ff31 ilevel 8
kernel: supervisor trap page fault, code=0
Stopped in pid 0.2 (system) at  netbsd:m_xhalf+0x76:    movzwl  0(%edi),%esi
 at netbsd:m_xhalf+0x76
bpf_filter(c16465b4,c0bd6000,0,0,1d00,100,ab1000,0,c03ab1c0,0) at 
 at netbsd:_bpf_mtap+0xb0
 at netbsd:xennet_handler+0x3d8
 at netbsd:intr_biglock_wrapper+0x1f
evtchn_do_event(e,ca18ac80,ca18abf8,0,0,0,0,0,0,0) at 
--- switch to interrupt stack ---
 at netbsd:call_evtchn_do_event+0x1e
 at netbsd:hypervisor_callback+0x64
idle_loop(c0b26d20,65a000,c055c200,0,c010006d,0,0,0,0,0) at 
ds          11
es          c0ad0011
fs          3fd0031
gs          c0640011
edi         506ff31
esi         0
ebp         c9ff3dc0
ebx         4060008
edx         e
ecx         c9ff3e18
eax         c0bd6000
eip         c0108e36    m_xhalf+0x76
cs          9
eflags      10287
esp         c9ff3db4
ss          11
netbsd:m_xhalf+0x76:    movzwl  0(%edi),%esi

Home | Main Index | Thread Index | Old Index