All of lore.kernel.org
 help / color / mirror / Atom feed
From: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
To: tsv.devel@gmail.com
Cc: xen-devel@lists.xensource.com
Subject: Re: [PVUSB] usbbusname is changing after rebooting
Date: Tue, 19 May 2009 11:04:27 +0900	[thread overview]
Message-ID: <4A1213AB.9080507@jp.fujitsu.com> (raw)
In-Reply-To: <4A118046.5020600@gmail.com>

Hi,

 > Replugging doesn't change the usbbusname, but what about host rebooting?

usb bus number is assigned in order of the host controller registration.
This order is normally defined by the PCI device number of that host 
controller.

So, when you change the host controller's PCI device number (e.g. 
changing BIOS setting, or, adding new PCI devices), the usbbusname of 
that host controller might be changed.

 > What do you think about another method of USB naming like
 > VendorId:ProductId of usb devices to be grabbed by domU?
 > It seems that HVM guests use this method by means of the parameter
 > 'usbdevice'.

It seems that qemu-compatible rule would be nice, but if you connect
two or more same devices (they all have same Ids), can this rule 
properly control which device is assigned to which domain?

As you pointed out, current hotplug-rule is not friendly:-)
However, originally the usbdevice naming scheme of the linux kernel is 
quite complex thing.
We might have to solve this complexity by xend or other user-space programs.

Regards,

Noboru

Sergey wrote:
> Hello, all!
> Hello, Noboru!
> 
> Hotplug rule for PVUSB consists of
> <usbbusname>:<domid>:<vusb number>:<port number>
> 
> I noticed that usbbusname sometimes changes from time to time after host 
> rebooting.
> For example, yesterday i had it as "6-1", today it is "2-1".
> 
> I saw the topic about usbbusname on replugging.
> http://lists.xensource.com/archives/html/xen-devel/2009-04/msg00400.html
> Replugging doesn't change the usbbusname, but what about host rebooting?
> 
> I suppose, usb bus number is assigned during booting and may vary each 
> time.
> To identify usb device correctly i have to see dmesg after rebooting. 
> It's quite inconvinient, imho.
> 
> What do you think about another method of USB naming like 
> VendorId:ProductId of usb devices to be grabbed by domU?
> It seems that HVM guests use this method by means of the parameter 
> 'usbdevice'.
> 
> Thank you.
> 
> Sergey.
> 
> 

  reply	other threads:[~2009-05-19  2:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 15:35 [PVUSB] usbbusname is changing after rebooting Sergey
2009-05-19  2:04 ` Noboru Iwamatsu [this message]
2009-09-04 17:17 ` Neobiker
2009-09-07  9:20   ` Sergey Tovpeko

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=4A1213AB.9080507@jp.fujitsu.com \
    --to=n_iwamatsu@jp.fujitsu.com \
    --cc=tsv.devel@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.