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] giving access to device to another domain

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] giving access to device to another domain
From: Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>
Date: Thu, 10 Feb 2005 22:40:47 +0000
Cc: Matthieu PATOU <matxen@xxxxxxxxx>
Delivery-date: Thu, 10 Feb 2005 23:26:41 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <20050210233832.10c5db98.matxen@xxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <20050210233832.10c5db98.matxen@xxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> the physdev_dom0_hide permit to hide a device from dom0 in order to be used
> in a xenU.

Yes.

> I suppose i have to add a (device (pci (bus xx) (dev yy) (func zz))) in the
> configuration file of the xenU domain. Do i have to compile something
> special in the kernel (like the device frontend/backend options) apart from
> the driver of the pci device i want to export to xenU ?

You'll need a kernel with PCI support and a driver for the device in question.  
YOu could just use the xen0 kernel.

> If lspci report this device like this :  0000:00:11.0
> How do i have to fill the xx yy and zz value in the config file (for bus,
> dev and function options) ? My guess is xx=0x00 (bus), yy=0x11 (dev) and
> zz=0x0 (func)

Sounds sane.  Note that the syntax is different for physdev_dom0_hide 
(something like "physdev_dom0_hide=(00:11.0)" should work but you should 
check your xm dmesg to be sure the device has been correctly hidden).

Cheers,
Mark


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>