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] trigger an interrupt in HVM

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] trigger an interrupt in HVM
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 21 Aug 2008 08:43:43 +0100
Cc:
Delivery-date: Thu, 21 Aug 2008 00:44:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01490392@trantor>
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: AckDI/dJ8Vz6w8p3QGimRDvwpEL7eQAPas71
Thread-topic: [Xen-devel] trigger an interrupt in HVM
User-agent: Microsoft-Entourage/11.4.0.080122
On 21/8/08 01:22, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> I need to trigger an interrupt on the HVM Xen PCI device. Is this
> possible?
> 
> Could I just set vcpu_info->evtchn_upcall_pending = 1 and then do a
> notify hypercall?

There is no such hypercall. In PV guests we can do any hypercall and the
evtchn_upcall_pending will be picked up. This isn't the case for an HVM
guest -- the IRQ is only asserted if an event is set pending by the
hypervisor itself.

If you must be able to trigger event delivery via the HVM IRQ mechanism from
within your HVM guest then I suggest you allocate an IPI event channel and
do a notify hypercall on that. That will have the side effect of triggering
an interrupt and 'flushing through' all other pending events.

 -- Keir



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