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

Re: [Xen-devel] Newbie Q -- how to setup virtual IDTs ?


  • To: shobha ranganathan <shobha_ranganathan@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Tue, 14 Nov 2006 23:25:55 +0000
  • Delivery-date: Tue, 14 Nov 2006 15:26:22 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AccIRDtbeaGglnQ3Edu28wANk04WTA==
  • Thread-topic: [Xen-devel] Newbie Q -- how to setup virtual IDTs ?

On 14/11/06 11:21 pm, "shobha ranganathan" <shobha_ranganathan@xxxxxxxxx> wrote:

I am trying to port a driver that register interrupt handlers for hardware counters in processor.
   
As the IDT is owned by Xen, when I run this in host OS I get errors.
 
I want to know how can I setup virtual IDTs such that I program the counters. On overflow, Xen is notified about the overflow and the interrupt is passed to my driver.
  
what files do I look ? What types of hypercalls I should use ?

If you are using Linux then oprofile now has support for guests running on Xen. If you are using another OS then you will need to make use of the xenoprof hypercalls provided by Xen to register your interest in hardware counters for profiling. The Xen patches for the Linux oprofile code would be a good starting point here.

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

 


Rackspace

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