From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Castro Subject: Relation between PCI device and Xenstore Device Date: Tue, 14 Feb 2012 19:46:09 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: seabios@seabios.org List-Id: xen-devel@lists.xenproject.org Hello All, I am writing some code to share some devices via the xenstore, yet I found a small problem. When I list the devices from the PCI I get the device id and the vendor id. On the xenstore I get the virtual-device, yet I have no apparent way to correctly map them, Do I need to enumerate the PCI devices, ask the size and then compare to xenstore so I can map them? but what if they have the same size? For example on my test VM I have to vbd 832 and 768 first is cdrom the second disk. On the pci I have this: Device Vendor 32902 4663 4115 184 22611 1 I am interested in 226611 that corresponds to XEN. Some light on this small issue? Thanks for the help. Daniel -- = +-=3D=3D=3D=3D=3D---------------------------+ | +---------------------------------+ | This space intentionally blank for notetaking. | |=A0=A0 | Daniel Castro,=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | | |=A0=A0 | Consultant/Programmer.| | |=A0=A0 | U Andes=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 | +-------------------------------------+