9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Bakul Shah <bakul@bitblocks.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 9atom & virtualbox 4.0.10 networking issue
Date: Thu,  7 Jul 2011 00:53:50 -0700	[thread overview]
Message-ID: <20110707075350.0BCF1B827@mail.bitblocks.com> (raw)
In-Reply-To: Your message of "Wed, 06 Jul 2011 11:40:08 PDT." <20110706184008.AC595B827@mail.bitblocks.com>

On Wed, 06 Jul 2011 11:40:08 PDT Bakul Shah <bakul@bitblocks.com>  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).



  parent reply	other threads:[~2011-07-07  7:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 18:40 Bakul Shah
2011-07-07  1:10 ` Fernan Bolando
2011-07-08  6:19   ` Bakul Shah
2011-07-08 15:14     ` erik quanstrom
2011-07-08 16:28       ` ron minnich
     [not found]       ` <CAP6exYKc4mXGWQi7a06a3tkhDe+z+VCX-z2BhapaSq=ZNYpPJg@mail.gmail.c>
2011-07-08 17:04         ` erik quanstrom
2011-07-08 17:43           ` ron minnich
2011-07-08 20:41             ` Bakul Shah
2011-10-27 19:47               ` andrey mirtchovski
2011-07-07  7:53 ` Bakul Shah [this message]
2011-07-07 15:29   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110707075350.0BCF1B827@mail.bitblocks.com \
    --to=bakul@bitblocks.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).