WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Virtualization project idea

To: admin@xxxxxxxxxxx
Subject: Re: [Xen-devel] Virtualization project idea
From: Dhananjay Goel <dhananjaygoel123@xxxxxxxxx>
Date: Fri, 27 Aug 2010 15:26:23 +0530
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, James Harper <james.harper@xxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Fri, 27 Aug 2010 02:57:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ollwpI+Yz4t7x7mD6gholz1MGpPDtWt5GDmVRF3mhT0=; b=AiAiBa8yPmpzmHaDYhVr24PznusodFcNFPhZRvqOzQEOAsGx/4tAt0Mt0jFQIjuU5U icmZbChCsRsx1psk1ngk4lAWo47+McLVZGtxHxaKfoskOnYFSqkxe+W3/UyeDcZvSum3 +ML070cFFp1EFnxdaeA2W9RSx/p3MPnZbXwPk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=gJCTyBZZQobptnpbGLKIXIXdKAiAereX46gFqFZzTEQm2EteJyyf7Q6mgo4qaGrotX 7skHwvpUWOmyovT1PAQDrRUGrQ9W+aj3Uf11rLR37AKCfp5X37tg73R6LgdvvvxvBoLw j4qG25qgs2r2OMda/I2k/BhV4teTzPvZsIm1A=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikqp_rLQzHXCa9Tgu=nxzoyh4hqhxaY3B4FzhTC@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTik5oJE0GuFbdqpMGHb9oriRM9twTbPPiGH=O_t4@xxxxxxxxxxxxxx> <C89D479E.2075B%keir.fraser@xxxxxxxxxxxxx> <AANLkTikAukTVYeV5d=vjBnGamsO9R6nqwCwhFqWaP6og@xxxxxxxxxxxxxx> <AANLkTikqp_rLQzHXCa9Tgu=nxzoyh4hqhxaY3B4FzhTC@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Might be we can do it such that a file being accessed from USB has a lock in a VM and release once we're done with the file. So, only one VM (at a time) will have control on a file in USB device. 

Thanks,
Dhananjay


On Fri, Aug 27, 2010 at 3:20 PM, David Markey <admin@xxxxxxxxxxx> wrote:
I dont think so, I'm not sure there is anything in the USB protocol that would allow this.

You would have to somehow have a lock, and allow only one VM access at a time.


On 27 August 2010 10:48, Dhananjay Goel <dhananjaygoel123@xxxxxxxxx> wrote:
On Fri, Aug 27, 2010 at 3:14 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
On 27/08/2010 10:25, "Dhananjay Goel" <dhananjaygoel123@xxxxxxxxx> 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.
>
> --Consider a use case: You are using your mobile for browsing internet on PC.
> Your mobile device 
> acts a usb modem for the host machine. That can not be used in guest
> for internet connectivity simuntaneously. You need to connect/disconnect
> every time to access internet whereas it would have been seamless
> internet connectivity. 

You don't necessarily share network, disc, or mouse/keyboard at the USB
level. For network, as an example, the hardware device belongs to the host
which provides NATed or bridged networking to VMs. VMs see a virtual network
device rather than the underlying physical device. Similar principle applies
to other device classes -- VMs see a virtual device. If you want a VM to see
a property of a physical device that cannot be expressed in your virtual
device model, you pass that physical device through directly to that one VM.
If you want direct passthrough and some semblance of sharing between VMs...
that's harder to do.

I agree its difficult to do. But is it possible to do? Can we make such that USB devices are shared across VMs? Any suggestion of how it can be done? 

 -- Keir





_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel