From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pankaj Biswas Subject: Re: I want to add a Xen driver and it doesn't look completely trivial given the current driver architecture - any advice? Date: Fri, 24 May 2013 15:21:48 +0530 Message-ID: References: <20130515141546.GJ15529@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2609372619034016096==" Return-path: In-Reply-To: <20130515141546.GJ15529@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============2609372619034016096== Content-Type: multipart/alternative; boundary=e89a8f83940367f78104dd73bf53 --e89a8f83940367f78104dd73bf53 Content-Type: text/plain; charset=ISO-8859-1 hi Ian and Konrad, Thanks for the reply and sorry for not being clear on what I want. I want to work on a CPU/RAM/PCI diagram tool in Xen, which will help in debugging kernel,hypervisor problems to understand the bus topology of a server. Tool will create a layout diagram for a server automatically using data from ACPI/SM-Bios tables, lspci oputput etc. It will either run on a Live system or offline using captured data to produce a graphical representation of the hardware device locations,memory bank locations etc. There are other benefits like labelling relevant hardware errata, performing bus throughput calculations. I think hwloc will be good for this requirement.in the code base, there is a "linux driver" which uses /sys/acpi/$FOO to discover the CPU topology. A good first task might be to write a "Xen driver" which can work out it is on Xen and use the topology hypercalls to gain the same information. So trying and geting hwloc working under Xen will solve this purpose. Can you please guide me here? -PankajCabs On Wed, May 15, 2013 at 7:45 PM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote: > On Wed, May 15, 2013 at 03:37:39PM +0530, Pankaj Biswas wrote: > > hi Team, > > > > Can you help me here. because the Xen driver is not mutually exclusive > with > > their Linux driver, > > > > because I think the ability to detect Xen depends on it first finding > that > > it is running on Linux. > > I have no idea what you are saying here. Could you be more specific please? > > > > > > > Any help is really appreciated. > > > > > > thanks, > > > > PANKAJCABS > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > --e89a8f83940367f78104dd73bf53 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
hi Ian and Konrad,

Thanks for the= reply and sorry for not being clear on what I want. I want to work on =A0a= CPU/RAM/PCI diagram tool in Xen, which will help in debugging kernel,hyper= visor problems to understand the bus topology of a server. Tool will create= a layout diagram for a server automatically using data from ACPI/SM-Bios t= ables, lspci oputput etc. It will either run on a Live system or offline us= ing captured data to produce a graphical representation of the hardware dev= ice locations,memory bank locations etc. There are other benefits like labe= lling relevant hardware errata, performing bus throughput calculations.

I think hwloc will be good for this requirement.in the code base, there is a "linux driver" which uses /sys/acpi/$FOO to discover the CPU topology.

A good first task might be to write a "Xen driver" which can work out it is on Xen and use the topology hypercalls to gain the same information.


So trying and ge= ting hwloc working under Xen=A0will solve this purpose. Can y= ou please guide me here?


-PankajCabs



On Wed, May 15, 2013 at 7:= 45 PM, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> w= rote:
On Wed, May 15, 2013 at 03= :37:39PM +0530, Pankaj Biswas wrote:
> hi Team,
>
> Can you help me here. because the Xen driver is not mutually exclusive= with
> their Linux driver,
>
> because I think the ability to detect Xen depends on it first finding = that
> it is running on Linux.

I have no idea what you are saying here. Could you be more specific p= lease?

>
>
> Any help is really appreciated.
>
>
> thanks,
>
> PANKAJCABS

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org=
> http://li= sts.xen.org/xen-devel


--e89a8f83940367f78104dd73bf53-- --===============2609372619034016096== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2609372619034016096==--