From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: trigger an interrupt in HVM Date: Thu, 21 Aug 2008 08:43:43 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 21/8/08 01:22, "James Harper" 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