Skip to content

x86: extended destination ID support

Roger Pau Monne xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 13 repliesIn review
  2. v13 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/cpuid: add CPUID flag for Extended Destination ID supportxen/include/public/arch-x86/cpuid.h+6 -07 replies
2/5xen/vioapic: add support for the extended destination ID fielddocs/man/xl.cfg.5.pod.in tools/include/libxl.h tools/libs/light/libxl_create.c +10 more+62 -31 reply
3/5x86/vmsi: add support for extended destination ID in address fieldxen/arch/x86/hvm/irq.c xen/arch/x86/hvm/vmsi.c xen/arch/x86/include/asm/hvm/hvm.h +5 more+58 -181 reply
4/5x86/ioreq: report extended destination ID support by emulatorsxen/arch/arm/ioreq.c xen/arch/x86/hvm/ioreq.c xen/common/ioreq.c +2 more+24 -43 replies
5/5x86/cpuid: expose EXT_DEST_ID feature if supportedxen/arch/x86/traps.c+3 -01 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/5R-b
2/5
3/5R-b
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] x86: extended destination ID support

Hello,

The following series provide a tentative implementation of extended destination ID support for HVM/PVH guests. A specification for the feature can be found at:

http://david.woodhou.se/15-bit-msi.pdf

Patch 4 is the one I'm having more doubts about: it's the best thing I could come up in order for emulators to signal Xen whether they support parsing the extended destination ID in MSI message address field. This is only required for device models that support PCI passthrough:
injection of MSI interrupts from emulated devices is done using XEN_DMOP_inject_msi which already passes the MSI address and data fields to Xen for processing.

I think we should likely consider patch 1, as it would allow the OS side of this to make progress (since it's an already present feature in other hypervisors) independently of the Xen side work.

Thanks, Roger.

Roger Pau Monne (5):
x86/cpuid: add CPUID flag for Extended Destination ID support xen/vioapic: add support for the extended destination ID field x86/vmsi: add support for extended destination ID in address field x86/ioreq: report extended destination ID support by emulators x86/cpuid: expose EXT_DEST_ID feature if supported

 docs/man/xl.cfg.5.pod.in               | 10 ++++++
 tools/include/libxl.h                  |  8 +++++
 tools/libs/light/libxl_create.c        |  6 ++++
 tools/libs/light/libxl_types.idl       |  1 +
 tools/libs/light/libxl_x86.c           | 12 +++++++
 tools/xl/xl_parse.c                    |  3 ++
 xen/arch/arm/ioreq.c                   |  5 +++
 xen/arch/x86/domain.c                  | 10 +++++-
 xen/arch/x86/hvm/ioreq.c               |  7 +++++
 xen/arch/x86/hvm/irq.c                 |  5 ++-
 xen/arch/x86/hvm/vioapic.c             |  3 ++
 xen/arch/x86/hvm/vmsi.c                | 43 +++++++++++++++++++-------
 xen/arch/x86/include/asm/domain.h      |  3 ++
 xen/arch/x86/include/asm/hvm/hvm.h     |  5 +--
 xen/arch/x86/include/asm/msi.h         |  7 +++++
 xen/arch/x86/setup.c                   |  1 +
 xen/arch/x86/traps.c                   |  3 ++
 xen/common/ioreq.c                     |  8 +++--
 xen/drivers/passthrough/x86/hvm.c      | 11 ++++++-
 xen/drivers/vpci/msi.c                 |  2 +-
 xen/include/public/arch-x86/cpuid.h    |  6 ++++
 xen/include/public/arch-x86/hvm/save.h |  4 ++-
 xen/include/public/arch-x86/xen.h      |  2 ++
 xen/include/public/domctl.h            |  3 +-
 xen/include/public/hvm/dm_op.h         |  6 +++-
 xen/include/xen/ioreq.h                |  2 ++
 xen/include/xen/vpci.h                 |  2 +-
 27 files changed, 153 insertions(+), 25 deletions(-)
Signature · 1 line
2.34.1