All of lore.kernel.org
 help / color / mirror / Atom feed
* [rfc 0/2] allow pass-through devices to share GSI
@ 2009-03-09  9:01 Simon Horman
  2009-03-09  9:01 ` [rfc 1/2] pt_irq_time_out() should act on all machine_irq Simon Horman
  2009-03-09  9:01 ` [rfc 2/2] allow pass-through devices to share GSI Simon Horman
  0 siblings, 2 replies; 5+ messages in thread
From: Simon Horman @ 2009-03-09  9:01 UTC (permalink / raw)
  To: Xen-devel; +Cc: Yuji Shimada, Weidong Han, Keir Fraser

As discussed recently in the thread "[rfc 00/18] ioemu: use devfn instead
of slots as the unit for passthrough", it would be useful if pass-through
devices could share GSI.

The motivation for this is:

* Allow multi-function devices to be passed through as multi-function devices
  - This implies that the devices may have functions that use INTB, C or D.
    With the current scheme this would clash with the GSI of INTA on
    device 13, 14, 15, 21, 22, 23, 29 ,30 and 31.

    The INTX, device to GSI mapping is described in
    xen/include/asm-x86/hvm/irq.h as:

    #define hvm_pci_intx_gsi(dev, intx)  \
        (((((dev)<<2) + ((dev)>>3) + (intx)) & 31) + 16)

    And is illustrated in this diagram
    http://lists.xensource.com/archives/html/xen-devel/2009-02/pngmIO1Sm0VEX.png

* Allow more than two pass-through devices.
  - This will place more contention on the GSI-space, and allocation
    becomes a lot simpler if GSI sharing is allowed.

-- 
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-10  7:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-09  9:01 [rfc 0/2] allow pass-through devices to share GSI Simon Horman
2009-03-09  9:01 ` [rfc 1/2] pt_irq_time_out() should act on all machine_irq Simon Horman
2009-03-10  7:40   ` Han, Weidong
2009-03-10  7:46     ` Simon Horman
2009-03-09  9:01 ` [rfc 2/2] allow pass-through devices to share GSI Simon Horman

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.