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: Multiple IRQ's in HVM for Windows
Date: Fri, 26 Dec 2008 11:00:40 +0000	[thread overview]
Message-ID: <C57A69D8.20929%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D015500E4@trantor>

On 26/12/2008 10:54, "James Harper" <james.harper@bendigoit.com.au> wrote:

> How many interrupts do we have to choose from here? I was able to get
> Windows to use up to (I think) IRQ31.

If going via the virtual PIC, then there are as many interrupts as there are
non-legacy IO-APIC pins. I think currently we have 32 of them.

> As I understand it, most of the 'protocol' we are talking about is based
> around the shared_info_t structure, which appears to make the assumption
> that there is a single point of entry for event delivery into a domain.
> To make use of multiple IRQ's we'd have to check every single event bit
> right? Is that a performance problem.

No, currently we call into HVM interrupt emulation code to assert an IO-APIC
pin when CPU0's event_pending flag is asserted. We could do that also when
other CPU's event_pending flags become asserted, or when individual event
channels become asserted. We just have to hook into event-channel code in a
different place. Or indeed we can just send 'messages' to HVM virtual local
APICs to trigger interrupts on the virtual CPUs directly, without any
integration with the virtual PCI or PIC subsystems.

 -- Keir

  reply	other threads:[~2008-12-26 11:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-26  3:29 Multiple IRQ's in HVM for Windows James Harper
2008-12-26  7:32 ` Keir Fraser
2008-12-26 10:15   ` James Harper
2008-12-26 10:36     ` Keir Fraser
2008-12-26 10:54       ` James Harper
2008-12-26 11:00         ` Keir Fraser [this message]
2008-12-27  9:19           ` James Harper
2008-12-27  9:31             ` Keir Fraser
2008-12-27  9:35               ` James Harper
2008-12-27  9:57                 ` Keir Fraser
2008-12-27 10:03                   ` James Harper
2008-12-27 10:22                     ` Keir Fraser
2008-12-27 10:28                       ` James Harper
2008-12-27 10:39                         ` Keir Fraser
2008-12-27 11:18                           ` James Harper
2008-12-28  3:22                           ` James Harper
2008-12-28  8:39                             ` Keir Fraser
2008-12-31 14:57                         ` Ross Philipson

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=C57A69D8.20929%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.