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] hardware interrupt

To: "Agarwal, Lomesh" <lomesh.agarwal@xxxxxxxxx>
Subject: Re: [Xen-devel] hardware interrupt
From: Daniel Stodden <stodden@xxxxxxxxxx>
Date: Wed, 24 Oct 2007 04:02:03 +0200
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Oct 2007 19:02:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <A3258B497F1C1441AD36A2E8B45FD628DB4D12@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: Fakultät für Informatik I10, Technische Universität Münche
References: <A3258B497F1C1441AD36A2E8B45FD628DB4D12@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2007-10-23 at 15:57 -0700, Agarwal, Lomesh wrote:
> Is there a way I can find out on which physical processor I am receiving
> interrupt from a particular device? 

if you know the irq number.

the path taken on irqs is roughly IRQ0x**_interrupt -> common_interrupt
-> do_IRQ() (C, finally), then back to guest context via ret_from_intr.
see the definition of BUILD_COMMON_INTERRUPT() and related.

if it's bound, it will visit send_guest_pirq().

as far as i know, the physical cpu does not leak to guest context, so
it's going to be the VMM.

you get the physical cpu number via smp_processor_id().

> Can I put prints somewhere in Xen to
> do that?

printk in irq context isn't exactly scalable, but you'll might just get
away with it.

hth,
daniel

-- 
Daniel Stodden
LRR     -      Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München             D-85748 Garching
http://www.lrr.in.tum.de/~stodden         mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B



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

<Prev in Thread] Current Thread [Next in Thread>