From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Virtualization project idea Date: Fri, 27 Aug 2010 12:23:20 +0300 Message-ID: <20100827092320.GC2804@reaktio.net> References: <20100827084622.GA2804@reaktio.net> <20100827091928.GB2804@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: David Markey Cc: Dhananjay Goel , James Harper , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Aug 27, 2010 at 10:20:44AM +0100, David Markey wrote: > Would USB over IP not be helpful here? > USB over IP is just another way of doing direct USB passthru, it doesn't really allow sharing the devices. -- Pasi >=20 > On 27 August 2010 10:19, Pasi K=E4rkk=E4inen <[1]pasik@iki.fi> wrote= : >=20 > On Fri, Aug 27, 2010 at 02:45:12PM +0530, Dhananjay Goel wrote: > > No, that's not possible with pvusb. pvusb is for direct passt= hru to > > one/single vm. > > You'd need some filesystem share (cifs/nfs/whatnot) to make s= uch > sharing > > possible. > > Comments: Is it possible to share USB keyboard, USB mouse, US= B > modem, etc > > across VMs i.e host and guest(s)? If we connect USB keyboard,= is it > > possible to use it in guests? > > >=20 > This is implemented in XCI (Xen Client Initiative), and there has = been > some discussions how to get it traditional Xen, to help Xen VGA > Passthrough usage. >=20 > See: [2]http://wiki.xensource.com/xenwiki/XenVGAPassthrough > > Also, is it possible for us to modify the device driver of US= B 2.0 > so that > > all USB 2.0 devices are visible and can be used across all VM= s? > Please > > suggest. > > >=20 > This won't be straight forward. Think about USB memory/flash stick= . > If every VM sees it, and simultaneously writes to it, the filesyst= em > in it will get corrupted immediately! >=20 > USB Passthru cannot be used to 'share' devices, it's for giving > one/single VM > direct access to the device. >=20 > -- Pasi >=20 > > Thanks, > > Dhananjay > > > > On Fri, Aug 27, 2010 at 2:16 PM, Pasi K=E4rkk=E4inen > <[1][3]pasik@iki.fi> wrote: > > > > On Fri, Aug 27, 2010 at 01:37:49PM +0530, Dhananjay Goel wr= ote: > > > Hi James/Pasi, > > > I had a look at > > [1][2][4]http://wiki.xensource.com/xenwiki/XenUSBPassthroug= h > > > But I'm not sure if it supports sharing USB devices ac= ross > VMs > > (host and > > > guest) i.e. if I plug in a flash drive then it would d= etect > in both > > host > > > and guest and I'd be able edit files from all VMs rath= er > than > > mounting and > > > unmounting everytime from 1 VM to other. > > > Please let me know your thoughts on it. > > > > > > > No, that's not possible with pvusb. pvusb is for direct pas= sthru > to > > one/single vm. > > You'd need some filesystem share (cifs/nfs/whatnot) to make= such > sharing > > possible. > > > > -- Pasi > > > Thanks, > > > Dhananjay > > > > > > On Fri, Aug 27, 2010 at 4:28 AM, James Harper > > > <[2][3][5]james.harper@bendigoit.com.au> wrote: > > > > > > > Hi there! > > > > > > > > First I'd like to say that XEN plaform is really c= ool > and > > awesome. > > > > > > > > I'm an engineering student and is searching for a > feasible > > project in > > > > virtualization. I'd like to know if its possible t= o > share USB > > devices > > > (flash > > > > drive, hard disk, mouse, keyboards etc) across gue= sts > and host > > (VMs). > > > Also, do > > > > you have any idea to extend it? Or any innovative = idea > so that > > we can > > > > implement it. > > > > > > > > I'd appreciate any help. Thanks in advance. > > > > > > > > > > Further to what Pasi said, I have partially ported t= he > backend > > interface > > > and can hand you the code if you want. It's probable= a bit > stale > > vs the > > > current kernels and leaks memory under some circumst= ances > but is > > > probably better than starting from scratch. > > > James > > > > > > References > > > > > > Visible links > > > 1. [4][6]http://wiki.xensource.com/xenwiki/XenUSBPasst= hrough > > > 2. mailto:[5][7]james.harper@bendigoit.com.au > > > > References > > > > Visible links > > 1. mailto:[8]pasik@iki.fi > > 2. [9]http://wiki.xensource.com/xenwiki/XenUSBPassthrough > > 3. mailto:[10]james.harper@bendigoit.com.au > > 4. [11]http://wiki.xensource.com/xenwiki/XenUSBPassthrough > > 5. mailto:[12]james.harper@bendigoit.com.au >=20 > _______________________________________________ > Xen-devel mailing list > [13]Xen-devel@lists.xensource.com > [14]http://lists.xensource.com/xen-devel >=20 > References >=20 > Visible links > 1. mailto:pasik@iki.fi > 2. http://wiki.xensource.com/xenwiki/XenVGAPassthrough > 3. mailto:pasik@iki.fi > 4. http://wiki.xensource.com/xenwiki/XenUSBPassthrough > 5. mailto:james.harper@bendigoit.com.au > 6. http://wiki.xensource.com/xenwiki/XenUSBPassthrough > 7. mailto:james.harper@bendigoit.com.au > 8. mailto:pasik@iki.fi > 9. http://wiki.xensource.com/xenwiki/XenUSBPassthrough > 10. mailto:james.harper@bendigoit.com.au > 11. http://wiki.xensource.com/xenwiki/XenUSBPassthrough > 12. mailto:james.harper@bendigoit.com.au > 13. mailto:Xen-devel@lists.xensource.com > 14. http://lists.xensource.com/xen-devel