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: Tue, 26 Aug 2008 08:10:31 +0100 [thread overview]
Message-ID: <C4D96AF7.1C78C%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D0149041F@trantor>
On 26/8/08 04:19, "James Harper" <james.harper@bendigoit.com.au> wrote:
>> 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.
>>
>
> That doesn't seem to work... I allocate the IPI event channel which in
> my case gives me event channel 7, but a notify on port 7 doesn't appear
> to end up calling the IRQ... or if it does, it doesn't set the bits for
> that port.
You did request to bind the IPI port to vcpu0? Otherwise it won't work.
Also you will need to handle that port in your IRQ handler somehow (at least
the event selector bit and the event pending bit). Otherwise the IPI will
obviously only fire once.
-- Keir
prev parent reply other threads:[~2008-08-26 7:10 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
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 [this message]
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=C4D96AF7.1C78C%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.