From: Keir Fraser Subject: Re: Newbie Q -- how to setup virtual IDTs ? Date: Tue, 14 Nov 2006 23:25:55 +0000 Message-ID: References: <494572.43530.qm@web55902.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0079130344==" Return-path: In-Reply-To: <494572.43530.qm@web55902.mail.re3.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: shobha ranganathan , xen-devel List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0079130344== Content-type: multipart/alternative; boundary="B_3246391556_36592626" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3246391556_36592626 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit On 14/11/06 11:21 pm, "shobha ranganathan" 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 --B_3246391556_36592626 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Newbie Q -- how to setup virtual IDTs  ?</TITLE= > </HEAD> <BODY> <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>On 14= /11/06 11:21 pm, "shobha ranganathan" <shobha_ranganathan@yahoo= .com> wrote:<BR> <BR> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL= E=3D'font-size:12.0px'>I am trying to port a driver that register interrupt ha= ndlers for hardware counters in processor.<BR>    <BR> As the IDT is owned by Xen, when I run this in host OS I get errors.<BR>  <BR> I want to know how can I setup virtual IDTs such that I program the counter= s. On overflow, Xen is notified about the overflow and the interrupt is pass= ed to my driver.<BR>   <BR> what files do I look ? What types of hypercalls I should use ?<BR> </SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY= LE=3D'font-size:12.0px'><BR> 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 xenop= rof hypercalls provided by Xen to register your interest in hardware counter= s for profiling. The Xen patches for the Linux oprofile code would be a good= starting point here.<BR> <BR>  -- Keir<BR> </SPAN></FONT> </BODY> </HTML> --B_3246391556_36592626-- --===============0079130344== 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.xensource.com http://lists.xensource.com/xen-devel --===============0079130344==--