From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: [PATCH V4 3/7] libxl: add pvusb API Date: Tue, 16 Jun 2015 12:10:26 +0100 Message-ID: <21888.1058.681450.470806@mariner.uk.xensource.com> References: <1433906441-3280-1-git-send-email-cyliu@suse.com> <1433906441-3280-4-git-send-email-cyliu@suse.com> <21887.64856.265751.921367@mariner.uk.xensource.com> <558000E5.9000803@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <558000E5.9000803@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?iso-8859-1?Q?J=FCrgen_Gro=DF?= Cc: Wei Liu , Ian Campbell , George Dunlap , Chunyan Liu , "xen-devel@lists.xen.org" , Jim Fehlig , Simon Cao List-Id: xen-devel@lists.xenproject.org J=FCrgen Gro=DF writes ("Re: [Xen-devel] [PATCH V4 3/7] libxl: add pvusb AP= I"): > On 06/16/2015 12:41 PM, Ian Jackson wrote: > > Is the busid more stable in the face of plug/unplug ? This is the > > normal reason for a more path-like device specification. ... > Unfortunately the busid isn't stable at least across reboots. I see. Presumably the busdev isn't either. We need to be let users specify something that _is_ stable, obviously. On my netbook I have this kind of thing in /etc/fstab: /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part1 /media/us= b1 auto rw,user,noauto 0 0 Is a similar specification possible ? > qemu does support specifying a USB device via :, > which is stable even across reboots, but unfortunately it isn't > guaranteed to be unique (you can have plugged in two devices of the > same type). Indeed. That would also be a thing we should allow people to do. AIUI some devices have serial numbers, which means you can distinguish them ? Ian.