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

[Xen-devel] How is the interrupt generated for a Platform-Pci device on

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] How is the interrupt generated for a Platform-Pci device on a HVM?
From: "Kumar, Venkat" <Venkat.Kumar@xxxxxxx>
Date: Fri, 23 Jan 2009 16:22:08 +0530
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Fri, 23 Jan 2009 02:57:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acl9SKL7aBBEt4zFTJmbc6OXxR+B3w==
Thread-topic: How is the interrupt generated for a Platform-Pci device on a HVM?

How is the interrupt generated for a platform-pci device on domU when a notify_via_evtchn is done from dom0 to domU?

 

Is it this part of the code that is involved

=========================================================

    case ECS_INTERDOMAIN:

        rd    = lchn->u.interdomain.remote_dom;

        rport = lchn->u.interdomain.remote_port;

        rchn  = evtchn_from_port(rd, rport);

        rvcpu = rd->vcpu[rchn->notify_vcpu_id];

        if ( rchn->consumer_is_xen )

        {

            /* Xen consumers need notification only if they are blocked. */

            if ( test_and_clear_bit(_VPF_blocked_in_xen,

                                    &rvcpu->pause_flags) )

                vcpu_wake(rvcpu);

        }

        else

        {

            evtchn_set_pending(rvcpu, rport);

        }

        break;

===========================================================

 

Can somebody give a better explanation of how the interrupt is generated?

Thx,

Venkat

 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>