Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2011 22:24:27 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        mdf@freebsd.org
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r227541 - head/sys/dev/usb/controller
Message-ID:  <201111152224.27868.hselasky@c2i.net>
In-Reply-To: <CAMBSHm9%2Bhsa0fvVvdLkFZkMoAQ6vkspWpvsfV1%2BJPtJe72J9cQ@mail.gmail.com>
References:  <201111152048.pAFKmvNC016452@svn.freebsd.org> <CAMBSHm8HXCfF3yVp9fFwAAThL6Aaki=iuV7-Qtz3g7tpsm-VLw@mail.gmail.com> <CAMBSHm9%2Bhsa0fvVvdLkFZkMoAQ6vkspWpvsfV1%2BJPtJe72J9cQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 15 November 2011 22:21:31 mdf@freebsd.org wrote:
> On Tue, Nov 15, 2011 at 1:20 PM,  <mdf@freebsd.org> wrote:
> > On Tue, Nov 15, 2011 at 1:02 PM, Hans Petter Selasky <hselasky@c2i.net> 
wrote:
> >> For USB compliant operation, the USB stack requires hz to be greater or
> >> equal to 250 hz, to put it like that. Mostly a requirement in USB
> >> gadget/device mode.
> > 
> > Really?  That's news to me.  Is that documented somewhere?  I know we
> > still use hz=100 internally, but we're on stable/7 still so not using
> > the new USB stack yet.
> 
> ... and I also just remembered that I have seen recommendations that,
> when FreeBSD is used as a virtual machine, hz should be set to 100 so
> that the virtual interrupt overhead is reduced.  Those two
> recommendations are at odds with each other.

USB in virtual machines is a completely different story. All the timing 
critical stuff is handled by the real USB host operating system. The OS inside 
the VM just has to respond to some "virtual" USB events. Timing does not 
matter very much as far as I'm aware.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111152224.27868.hselasky>