From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Wed, 06 Jul 2011 11:40:08 PDT." <20110706184008.AC595B827@mail.bitblocks.com> References: <20110706184008.AC595B827@mail.bitblocks.com> Date: Thu, 7 Jul 2011 00:53:50 -0700 From: Bakul Shah Message-Id: <20110707075350.0BCF1B827@mail.bitblocks.com> Subject: Re: [9fans] 9atom & virtualbox 4.0.10 networking issue Topicbox-Message-UUID: fb512ba8-ead6-11e9-9d60-3106f5b1d025 On Wed, 06 Jul 2011 11:40:08 PDT Bakul Shah wrote: > Good news: 9atom installs fine on virtualbox 4.0.10 (the > latest) and most everything works > Bad news: network access fails It seems igbe never gets an interrupt (as per ether0/ifstats rintr == 0, rsleep == 1). Pkts received count going up may have to do with some emulated h/w counter incremented by vbox. To test this theory I changed code to call igbeinterrupt() every 4 ticks instead of a real interrupt. In igberproc() I replaced sleep(&ctrl->rrendez, igberim, ctlr); with tsleep(&up->sleep, return0, 0, 4); igbeinterrupt(0, edev); And things seem to be working well enough for '9fs sources' etc.! Note: this is just a test hack. Ideally interrupt handling under vbox is fixed up by someone knowledgeable (I haven't dealt with this stuff in ages).