All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: James Harper <james.harper@bendigoit.com.au>,
	xen-devel@lists.xensource.com
Subject: Re: trigger an interrupt in HVM
Date: Thu, 21 Aug 2008 08:43:43 +0100	[thread overview]
Message-ID: <C4D2DB3F.1C56F%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D01490392@trantor>

On 21/8/08 01:22, "James Harper" <james.harper@bendigoit.com.au> 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

  parent reply	other threads:[~2008-08-21  7:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21  0:22 trigger an interrupt in HVM James Harper
2008-08-21  2:04 ` Cui, Dexuan
2008-08-21  2:32   ` James Harper
2008-08-21  3:04     ` Cui, Dexuan
2008-08-21  3:51     ` Tian, Kevin
2008-08-21  7:43 ` Keir Fraser [this message]
2008-08-22  1:24   ` James Harper
2008-08-22  7:12     ` Keir Fraser
2008-08-26  3:19   ` James Harper
2008-08-26  4:40     ` James Harper
2008-08-26  7:10     ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C4D2DB3F.1C56F%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.