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] Newbie Q -- how to setup virtual IDTs ?

To: shobha ranganathan <shobha_ranganathan@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Newbie Q -- how to setup virtual IDTs ?
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <494572.43530.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccIRDtbeaGglnQ3Edu28wANk04WTA==
Thread-topic: [Xen-devel] Newbie Q -- how to setup virtual IDTs ?
User-agent: Microsoft-Entourage/11.2.5.060620
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
<Prev in Thread] Current Thread [Next in Thread>