All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Eli Cohen <eli@dev.mellanox.co.il>
Subject: Re: Xen interrupts when using passthrough
Date: Wed, 5 Oct 2011 10:54:41 +0100	[thread overview]
Message-ID: <1317808481.21903.192.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <4E8C3ACD0200007800059694@nat28.tlf.novell.com>

On Wed, 2011-10-05 at 10:09 +0100, Jan Beulich wrote:
> >>> On 05.10.11 at 11:00, Eli Cohen <eli@dev.mellanox.co.il> wrote:
> > On Wed, Oct 05, 2011 at 09:51:10AM +0100, Jan Beulich wrote:
> >> Dom0 shouldn't get involved at all - Xen does the necessary conversion.
> >> Dom0 may only be involved in setting things up. Whether they get
> >> received via event channels or virtual interrupts depends on the kind
> >> of guest.
> >> 
> > I think I used the wrong terminology not distinguishing between the
> > hypervisor and dom0 so I will ask again just to make sure. Is the
> > hypervisor involved in passing the interrupts?
> 
> Yes, of course. The hypervisor receives all physical interrupts.
> 
> > Does it depend on whether the guest is paravirtualized or not?
> 
> Yes, at least to some degree.
> 
> > The guest I am using is
> > paravirtualized (i.e uses xen hypercalls), so does it mean that it
> > uses event channels or is there a possibilty that it does not use
> > event channels.
> 
> Yes and no: PV guests can receive interrupts only via the event
> channel mechanism.

While an HVM guest can receive interrupts via any of:
      * Emulated interrupt injection (i.e. from the emulated APIC)
      * Event channels, injected via the INTx interrupt on the PCI
        platform device (itself injected by the previous option)
      * Event channels, injected directly to a vector.

The first is available to any HVM guest, the middle one is the older
style PV Driver for HVM guest mechanism while the third is an additional
feature of more recent Linux kernels using the PVHVM mechanism.

Ian.

      parent reply	other threads:[~2011-10-05  9:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 16:29 Xen interrupts when using passthrough Eli Cohen
2011-10-04 16:50 ` Andrew Cooper
2011-10-04 19:00   ` Eli Cohen
2011-10-05  7:27     ` Jan Beulich
2011-10-05  8:26       ` Eli Cohen
2011-10-05  8:51         ` Jan Beulich
2011-10-05  9:00           ` Eli Cohen
2011-10-05  9:09             ` Jan Beulich
2011-10-05  9:45               ` Eli Cohen
2011-10-05  9:54               ` Ian Campbell [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=1317808481.21903.192.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=eli@dev.mellanox.co.il \
    --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.