Re: Kernel Compiled with options VIMAGE panics on boot
Bjoern A. Zeeb wrote: On Sun, 17 May 2009, Sevan / Venture37 wrote: Hi, I've tried to compile a new kernel once again after updating src, this time it bombs out during the build process. http://img33.imageshack.us/img33/6164/img1064.jpg yes, we are aware of that one and the patch is easy and both Marko and I have it but the commit, that introduced this compile time regression for VIMAGE, also introduced a regression for the !VIMAGE && !VIMAGE_GLOBALS case that we are currently trying to indentify. Here's the patch you want to apply (pasted in) to make things compile again. BTW Marko is offline for 3 days. Index: sys/netinet/in.c === --- sys/netinet/in.c(revision 192250) +++ sys/netinet/in.c(working copy) @@ -814,6 +814,7 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin, int scrub) { + INIT_VNET_NET(ifp->if_vnet); INIT_VNET_INET(ifp->if_vnet); register u_long i = ntohl(sin->sin_addr.s_addr); struct sockaddr_in oldaddr; @@ -1007,6 +1008,7 @@ static int in_scrubprefix(struct in_ifaddr *target) { + INIT_VNET_NET(curvnet); INIT_VNET_INET(curvnet); struct in_ifaddr *ia; struct in_addr prefix, mask, p; /bz ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Kernel Compiled with options VIMAGE panics on boot
On Sun, 17 May 2009, Sevan / Venture37 wrote: Hi, I've tried to compile a new kernel once again after updating src, this time it bombs out during the build process. http://img33.imageshack.us/img33/6164/img1064.jpg yes, we are aware of that one and the patch is easy and both Marko and I have it but the commit, that introduced this compile time regression for VIMAGE, also introduced a regression for the !VIMAGE && !VIMAGE_GLOBALS case that we are currently trying to indentify. Here's the patch you want to apply (pasted in) to make things compile again. Index: sys/netinet/in.c === --- sys/netinet/in.c(revision 192250) +++ sys/netinet/in.c(working copy) @@ -814,6 +814,7 @@ in_ifinit(struct ifnet *ifp, struct in_ifaddr *ia, struct sockaddr_in *sin, int scrub) { + INIT_VNET_NET(ifp->if_vnet); INIT_VNET_INET(ifp->if_vnet); register u_long i = ntohl(sin->sin_addr.s_addr); struct sockaddr_in oldaddr; @@ -1007,6 +1008,7 @@ static int in_scrubprefix(struct in_ifaddr *target) { + INIT_VNET_NET(curvnet); INIT_VNET_INET(curvnet); struct in_ifaddr *ia; struct in_addr prefix, mask, p; /bz -- Bjoern A. Zeeb The greatest risk is not taking one. ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Kernel Compiled with options VIMAGE panics on boot
Marko Zec wrote: On Sunday 10 May 2009 16:41:52 Sevan / Venture37 wrote: Hi I've installed a fresh copy of this months snapshot, updated src via cvsup, made a copy of the GENERIC config file, added 'options VIMAGE' & 'nooptions SCTP' & compiled & installed it, on boot the system panics with the error: panic: in /usr/src/sys/net/if.c:485 if_alloc() vnet=0 curvnet=0 cpuid = 0 photo of panic: http://img18.imageshack.us/img18/3297/img1057e.jpg Any ideas?? /usr/src/sys/net/if.c is v1.328 if that helps. It seems that the USB code should set the curvnet context when attaching and detaching ifnets (rum0 in your case), which it currently does not. I'll look into this in the next few days - thanks for the report! Marko I've tried to compile a new kernel once again after updating src, this time it bombs out during the build process. http://img33.imageshack.us/img33/6164/img1064.jpg Sevan / Venture37 ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Kernel Compiled with options VIMAGE panics on boot
On Sunday 10 May 2009 16:41:52 Sevan / Venture37 wrote: > Hi > I've installed a fresh copy of this months snapshot, updated src via > cvsup, made a copy of the GENERIC config file, added 'options VIMAGE' & > 'nooptions SCTP' & compiled & installed it, on boot the system panics > with the error: > panic: in /usr/src/sys/net/if.c:485 if_alloc() > vnet=0 curvnet=0 > cpuid = 0 > > photo of panic: > http://img18.imageshack.us/img18/3297/img1057e.jpg > > Any ideas?? > > /usr/src/sys/net/if.c is v1.328 if that helps. It seems that the USB code should set the curvnet context when attaching and detaching ifnets (rum0 in your case), which it currently does not. I'll look into this in the next few days - thanks for the report! Marko ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Kernel Compiled with options VIMAGE panics on boot
Hi I've installed a fresh copy of this months snapshot, updated src via cvsup, made a copy of the GENERIC config file, added 'options VIMAGE' & 'nooptions SCTP' & compiled & installed it, on boot the system panics with the error: panic: in /usr/src/sys/net/if.c:485 if_alloc() vnet=0 curvnet=0 cpuid = 0 photo of panic: http://img18.imageshack.us/img18/3297/img1057e.jpg Any ideas?? /usr/src/sys/net/if.c is v1.328 if that helps. Sevan / Venture37 ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"