Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
I -know- i have booted a compiled kernel with VIMAGE, but the module failed .. Adrian ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtua

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
No, VIMAGE should be pulled in from an existing configuration in your compile/{KERNEL}/opt_global.h, right? So why's the driver not pulling it in? adrian On 6 March 2012 13:53, Monthadar Al Jaberi wrote: > something like > .if defined(KERNBUILDDIR) > MKDEP=          -include ${KERNBUILDDIR}/opt

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
On 6 March 2012 13:51, Marko Zec wrote: > On Tuesday 06 March 2012 22:49:56 Adrian Chadd wrote: >> Wait a sec. Is it possible that the macro is a no-op when we're >> building modules w/ VNET? > > Yes that's it, the VNET stuff resolves (mostly) to whitespace when options > VIMAGE is not on! So the

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
Wait a sec. Is it possible that the macro is a no-op when we're building modules w/ VNET? Adrian ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "fre

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
On 6 March 2012 12:13, Monthadar Al Jaberi wrote: > I am confused so whats the difference between having wlan in kernel > config or not? Cuase that seems the reason why we panic... linker > problems? Yeah. That _is_ a bit weird. adrian ___ freebsd-vi

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
Hi, The trouble here is that net80211 has quite a few other contexts that things are called from: * driver taskqueue; * net80211 taskqueue; * driver callouts; * net80211 callouts; * ioctls via net80211. That's in parallel with frame tx/rx and device ioctls. I don't personally have the time to g

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 22:52:43 Adrian Chadd wrote: > On 6 March 2012 13:51, Marko Zec wrote: > > On Tuesday 06 March 2012 22:49:56 Adrian Chadd wrote: > >> Wait a sec. Is it possible that the macro is a no-op when we're > >> building modules w/ VNET? > > > > Yes that's it, the VNET stuff resolv

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
something like .if defined(KERNBUILDDIR) MKDEP= -include ${KERNBUILDDIR}/opt_global.h .else CFLAGS+=-include opt_global.h MKDEP= -include opt_global.h opt_global.h: echo "#define VIMAGE 1" > ${.TARGET} .endif ? On Tue, Mar 6, 2012 at 10:52 PM, Adrian Chadd wrot

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 22:49:56 Adrian Chadd wrote: > Wait a sec. Is it possible that the macro is a no-op when we're > building modules w/ VNET? Yes that's it, the VNET stuff resolves (mostly) to whitespace when options VIMAGE is not on! Marko ___ f

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 22:45:40 Marko Zec wrote: > On Tuesday 06 March 2012 22:30:26 Monthadar Al Jaberi wrote: > > On Tue, Mar 6, 2012 at 9:57 PM, Marko Zec wrote: > > > On Tuesday 06 March 2012 21:29:32 Monthadar Al Jaberi wrote: > > >> On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: > > >>

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 22:30:26 Monthadar Al Jaberi wrote: > On Tue, Mar 6, 2012 at 9:57 PM, Marko Zec wrote: > > On Tuesday 06 March 2012 21:29:32 Monthadar Al Jaberi wrote: > >> On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: > >> > On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
On Tue, Mar 6, 2012 at 9:57 PM, Marko Zec wrote: > On Tuesday 06 March 2012 21:29:32 Monthadar Al Jaberi wrote: >> On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: >> > On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote: >> >> I am confused so whats the difference between having wlan in

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 21:29:32 Monthadar Al Jaberi wrote: > On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: > > On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote: > >> I am confused so whats the difference between having wlan in kernel > >> config or not? Cuase that seems the reason

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 21:29:32 Monthadar Al Jaberi wrote: > On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: > > On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote: > >> I am confused so whats the difference between having wlan in kernel > >> config or not? Cuase that seems the reason

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
On Tue, Mar 6, 2012 at 9:22 PM, Marko Zec wrote: > On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote: >> I am confused so whats the difference between having wlan in kernel >> config or not? Cuase that seems the reason why we panic... linker >> problems? > > Its not impossible. > > Have

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 21:13:00 Monthadar Al Jaberi wrote: > I am confused so whats the difference between having wlan in kernel > config or not? Cuase that seems the reason why we panic... linker > problems? Its not impossible. Have you tried to do CURVNET_SET(ss->ss_vap->iv_ifp->if_vnet) on e

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
I am confused so whats the difference between having wlan in kernel config or not? Cuase that seems the reason why we panic... linker problems? On Tue, Mar 6, 2012 at 9:06 PM, Adrian Chadd wrote: > Hi, > > The trouble here is that net80211 has quite a few other contexts that > things are called f

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 20:49:38 Monthadar Al Jaberi wrote: > I added VNET_DEBUG and noticed this warning (original scan_task code): > > CURVNET_SET() recursion in sosend() line 1350, prev in kern_kldload() > 0xfe0002202c40 -> 0xfe0002202c40 > KDB: stack backtrace: > db_trace_self_wrap

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 19:01:11 Adrian Chadd wrote: > Hi, > > What do we need to do to get VNET working in net80211 and the network > drivers? In principle one shouldn't have to touch anything in the network drivers. In order for networking code to properly resolve virtualized state, curvnet (

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
I added VNET_DEBUG and noticed this warning (original scan_task code): CURVNET_SET() recursion in sosend() line 1350, prev in kern_kldload() 0xfe0002202c40 -> 0xfe0002202c40 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a kdb_backtrace() at kdb_backtrace+0x3

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Adrian Chadd
Hi, What do we need to do to get VNET working in net80211 and the network drivers? Adrian On 6 March 2012 07:33, Marko Zec wrote: > On Tuesday 06 March 2012 10:53:18 Monthadar Al Jaberi wrote: >> On Tue, Mar 6, 2012 at 12:52 AM, Marko Zec wrote: >> > On Monday 05 March 2012 22:14:45 Monthadar

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Marko Zec
On Tuesday 06 March 2012 10:53:18 Monthadar Al Jaberi wrote: > On Tue, Mar 6, 2012 at 12:52 AM, Marko Zec wrote: > > On Monday 05 March 2012 22:14:45 Monthadar Al Jaberi wrote: > >> Hi, > >> > >> I am a very happy VIMAGE user. But lately I have been having problems > >> using it, and its too compl

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-06 Thread Monthadar Al Jaberi
On Tue, Mar 6, 2012 at 12:52 AM, Marko Zec wrote: > On Monday 05 March 2012 22:14:45 Monthadar Al Jaberi wrote: >> Hi, >> >> I am a very happy VIMAGE user. But lately I have been having problems >> using it, and its too complicated for me to dig in so I hope you can >> help me (and help Adrian too

Re: VIMAGE + kldload wlan + kldload wtap panic

2012-03-05 Thread Marko Zec
On Monday 05 March 2012 22:14:45 Monthadar Al Jaberi wrote: > Hi, > > I am a very happy VIMAGE user. But lately I have been having problems > using it, and its too complicated for me to dig in so I hope you can > help me (and help Adrian too). > > I am using FreeBSD Current with a kernel config wit