Skip to content

RFC allow pass-through devices to share GSI

Simon Horman xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pt_irq_time_out() should act on all machine_irqxen/drivers/passthrough/io.c+22 -42 replies
2/2allow pass-through devices to share GSIxen/drivers/passthrough/io.c xen/include/xen/hvm/irq.h+71 -440 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [rfc 0/2] allow pass-through devices to share GSI

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.

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