[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] I want to add a Xen driver and it doesn't look completely trivial given the current driver architecture - any advice?



Hey Pankaj,

        I wrote a script sometime back that uses ACPI tables to determine IO 
proximity for PCI devices using _PXM and SRAT tables. I am attaching the 
scripts. 

        It expect acpidump, acpixtract and iasl on the system. This was written 
to run in a XenServer dom0 which does not have iasl -  it expects iasl binary 
in the script directory. If you have iasl in the path, you can tweak run.sh to 
modify path for iasl.

        Let me know if this provides useful information and any 
comments/feedback or if you have trouble running it.

Regards,
Santosh

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxx] 
On Behalf Of Ian Campbell
Sent: Friday, May 24, 2013 2:56 AM
To: Pankaj Biswas
Cc: xen-devel@xxxxxxxxxxxxx; Konrad Rzeszutek Wilk
Subject: Re: [Xen-devel] I want to add a Xen driver and it doesn't look 
completely trivial given the current driver architecture - any advice?

On Fri, 2013-05-24 at 15:21 +0530, Pankaj Biswas wrote:

Please don't top-post and please don't post HTML emails to the list, plain text 
only please.

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

You can use libxenctrl to make the Xen topology hypercalls. You do not need a 
special driver.

> So trying and geting hwloc working under Xen will solve this purpose.
> Can you please guide me here?

I have no idea what hwloc requires.

Ian.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

Attachment: numa_info.py
Description: numa_info.py

Attachment: run.sh
Description: run.sh

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.