Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread Frank Batschulat (Home)
On Fri, 28 May 2010 07:31:27 +0200, eiji@oracle.com wrote: I'm wondering if there is a way to get a zoneid from kernel even though it's not in user context. If it's possible, this is useful for us to activate an HCA port in the exclusive-IP zone at boot time. Here's the background info.

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread eiji . ota
Hi Frank, getzoneid() can return a correct value even if it's called in a taskq thread (kernel context) and/or in an interrupt handler (interrupt context)? Thanks, -Eiji I'm wondering if there is a way to get a zoneid from kernel even though it's not in user context. If it's possible,

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread Frank Batschulat (Home)
On Fri, 28 May 2010 10:43:22 +0200, eiji@oracle.com wrote: Hi Frank, getzoneid() can return a correct value even if it's called in a taskq thread (kernel context) and/or in an interrupt handler (interrupt context)? I suppose so, look its not doing anything earth shattering: 2496

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread James Carlson
On 05/28/10 04:57, Frank Batschulat (Home) wrote: On Fri, 28 May 2010 10:43:22 +0200, eiji@oracle.com wrote: Hi Frank, getzoneid() can return a correct value even if it's called in a taskq thread (kernel context) and/or in an interrupt handler (interrupt context)? I suppose so, look

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread Frank Batschulat (Home)
On Fri, 28 May 2010 13:35:07 +0200, James Carlson carls...@workingcode.com wrote: On 05/28/10 04:57, Frank Batschulat (Home) wrote: On Fri, 28 May 2010 10:43:22 +0200, eiji@oracle.com wrote: getzoneid() can return a correct value even if it's called in a taskq thread (kernel context)

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread Frank Batschulat (Home)
On Fri, 28 May 2010 13:35:07 +0200, James Carlson carls...@workingcode.com wrote: On 05/28/10 04:57, Frank Batschulat (Home) wrote: On Fri, 28 May 2010 10:43:22 +0200, eiji@oracle.com wrote: getzoneid() can return a correct value even if it's called in a taskq thread (kernel context)

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread Edward Pilatowicz
more information is needed about your architecture and what your trying to do. first off, as has been pointed out, if your not in user context getzoneid() isn't really that useful. second, below you keep mentioning at boot time. are you talking about system boot time? or zone boot time? at

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread eiji . ota
Hi Ed, Yes, I meant the system boot time since it'd be ideal the setup is complete w/o any customers' actions. Sounds I should go back to the project w/ the info and talk about how to deal with our issue. We might want to discuss it more with you offline then. Thanks, -Eiji more

Re: [zones-discuss] Q: is there a way to get a zoneid from kernel (not in user context)?

2010-05-28 Thread eiji . ota
Hi Frank, Yes, it seems we might not get a correct zoneid in kernel or interrupt context as you pointed out here. In our project, the listener should be initialized at boot time hopefully before the userland processes start, but in practice it seems hard according to others' e-mails including