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-users

Re: [Xen-users] Exporting a PCI Device

To: Joris Dobbelsteen <Joris@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Exporting a PCI Device
From: Jan Kalcic <jandot@xxxxxxxxxxxxxx>
Date: Mon, 18 Feb 2008 23:44:24 +0100
Cc: deshantm@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 18 Feb 2008 14:43:19 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=W5nlr41BRL28HG/oHeU0ulbkhyW7TwKEgI86ptg9lyI=; b=I4STmPzE6l5pp4k1Pos0qeQicNqslSd7hjeq4F4chNutnriMiJ4Ydq0CMZ7V36Yu9WdoeWuqmng57gaqXPeAYf8yCBwXo3KHRMw8W3egv57s5xYox+K5b6EMWNWYWbLrXfmw3n1+11ulJR7y/0cp50wNJDaterYEYlaxrUV7/lY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=fnMCJ43FwBLHYbwYTpNrJV029Muvyya/h21GKaqkIEX4OuddLyI/TSAjpF367labCuXN+BTitsAxirGlIpNrbk1zyrw+xrYF1QX0CU7CJ4vJZ0YNL21RIdjSQpJqmJ8fmfeNDMmfE/ydo0obPM7WZRl3MK4tsDlFHE/EV6U+PAU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E4953B65D9E5054AA6C227B410C56AA9C379@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <47B8C482.5050600@xxxxxxxxxxxxxx><1e16a9ed0802171801n591a4949r4ee5e362c2f80f05@xxxxxxxxxxxxxx> <47B965A9.4040300@xxxxxxxxxxxxxx> <E4953B65D9E5054AA6C227B410C56AA9C379@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (X11/20070801)
Joris Dobbelsteen wrote:
>> -----Original Message-----
>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
>> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jan Kalcic
>> Sent: Monday, 18 February 2008 12:02
>> To: deshantm@xxxxxxxxx
>> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
>> Subject: Re: [Xen-users] Exporting a PCI Device
>>
>> Todd Deshane wrote:
>>     
>>> Hi,
>>>
>>> On Feb 17, 2008 6:34 PM, Jan Kalcic <jandot@xxxxxxxxxxxxxx 
>>> <mailto:jandot@xxxxxxxxxxxxxx>> wrote:
>>>
>>>     Hi All,
>>>
>>>     just a quick question I could not figure out. Is there a way to
>>>     export a
>>>     PCI device to multiple VMs (para) keeping it available 
>>>       
>> to dom0? Xen
>>     
>>>     version is 3.0.4.
>>>
>>>
>>> As far as I know you can't. That is what virtual devices are 
>>>       
>> used for 
>>     
>>> right?
>>>
>>> In what scenario would you want to grant direct access to a 
>>>       
>> PCI device 
>>     
>>> in VMs and also in dom0?
>>>
>>>       
>> Hi Todd,
>>
>> the PCI device which I would need to "share" is the fibre 
>> channel card connected to two different storage, on of this is 
>> the VMs repository which has to be visible to dom0 and the 
>> other one is the data storage for VMs which, obviously, has to 
>> be visibile to VMs. So the solution would be using two 
>> different fibre channel cards, right?
>>     
>
> What I would do is make all storage available to the dom0 and use
> regular methods to export it to the domU.
> In other words: treat dom0 as a very fancy piece of hardware that's
> between your kernel and the fibre-channel attached storage. For generic
> solutions the Virtual Block Device should be fast enough, otherwise you
> should probably consider a separate server, dedicated to that single
> task.
>
> I don't know if you are going to loose any fibre-channel advantages, but
> I figure you also reduce administrative complexity to dom0's only.
>
>   

I did some test and actually it's quite slow both in reading and in
writing. Roughly 50% as Block Device attacched to the domU.
It reduces complexity but too much is lost in performance.

Thanks,
Jan
> - Joris
>
>
>   


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