[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v5 00/22] Add ITS support



From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx>

This is based on DraftG version
http://xenbits.xen.org/people/ianc/vits/draftG.pdf

Following major features are supported
 - GICv3 ITS support for arm64 platform
 - Only Dom0 is supported. For DomU pci passthrough feature
   is required.

Basic boot is tested with single ITS node by adding
and assigning devices from platform initialization.

Changes in v5:
  - Added following new patches
      0001-xen-arm-Return-success-if-dt-node-does-not-have-irq-.patch
      0004-xen-arm-Set-nr_cpu_ids-to-available-number-of-cpus.patch
      0009-xen-arm-ITS-Export-ITS-info-to-Virtual-ITS.patch
      0013-xen-arm-ITS-Implement-gic_is_lpi-helper-function.patch
  - Split patch #12 into two patches #14 & #16
      0014-xen-arm-ITS-Allocate-irq-descriptors-for-LPIs.patch
      0016-xen-arm-ITS-Route-LPIs.patch
  - Introduce new API to route LPI (route_lpi_to_guest() )
  - Moved patch #8 in v4 as patch #19
  - irq_descritors for LPIs are allocated dynamically
  - Removed RB-tree for managing vitual its devices. Will be
    introduced when pci-passthrough is implemented
  - its_add_device() api now takes nr_ites and DT its node as parameters
  - some function are kept as non-static when introduced in a patch for
    compilation purpose and eventually made static when used.
  - Tested compilation for arm32

Changes in v4:
  - Patch for rate limiting of error message is removed.
  - Patch #4 and #5 in v3 is merged
  - Merged #13 and #16 as one patch
  - hw_irq_controller is implemented for LPIs
  - GITS and GICR emulation for LPIs in separate patches
  - Removed build functions for ITS command in physical ITS driver
  - Added new patch to add and assign devices from platform file
  - Enable compilation of vits and pits driver in separate patch
  - Replace msi-parent property in all pci dt nodes to single
    ITS node generated by Xen for Dom0

Vijaya Kumar K (22):
  xen/arm: Return success if dt node does not have irq mapping
  xen/arm: Add bitmap_find_next_zero_area helper function
  xen: Add log2 functionality
  xen/arm: Set nr_cpu_ids to available number of cpus
  xen/arm: ITS: Port ITS driver to Xen
  xen/arm: ITS: Add helper functions to manage its_devices
  xen/arm: ITS: Add virtual ITS driver
  xen/arm: ITS: Add virtual ITS commands support
  xen/arm: ITS: Export ITS info to Virtual ITS
  xen/arm: ITS: Add GITS registers emulation
  xen/arm: ITS: Enable physical and virtual ITS driver compilation
  xen/arm: ITS: Add GICR register emulation
  xen/arm: ITS: Implement gic_is_lpi helper function
  xen/arm: ITS: Allocate irq descriptors for LPIs
  xen/arm: ITS: implement hw_irq_controller for LPIs
  xen/arm: ITS: Route LPIs
  xen/arm: ITS: Initialize physical ITS
  xen/arm: ITS: Add domain specific ITS initialization
  xen/arm: ITS: Add APIs to add and assign device
  xen/arm: ITS: Map ITS translation space
  xen/arm: ITS: Generate ITS node for Dom0
  xen/arm: ITS: Add pci devices in ThunderX

 xen/arch/arm/Makefile             |    2 +
 xen/arch/arm/domain_build.c       |   17 +
 xen/arch/arm/gic-hip04.c          |   20 +-
 xen/arch/arm/gic-v2.c             |   20 +-
 xen/arch/arm/gic-v3-its.c         | 1527 +++++++++++++++++++++++++++++++++++++
 xen/arch/arm/gic-v3.c             |  127 ++-
 xen/arch/arm/gic.c                |   80 +-
 xen/arch/arm/irq.c                |  195 ++++-
 xen/arch/arm/platforms/Makefile   |    1 +
 xen/arch/arm/platforms/thunderx.c |  151 ++++
 xen/arch/arm/setup.c              |    1 +
 xen/arch/arm/smpboot.c            |   11 +
 xen/arch/arm/vgic-v2.c            |    5 +-
 xen/arch/arm/vgic-v3-its.c        | 1178 ++++++++++++++++++++++++++++
 xen/arch/arm/vgic-v3.c            |  131 +++-
 xen/arch/arm/vgic.c               |   88 ++-
 xen/common/bitmap.c               |   39 +
 xen/common/device_tree.c          |    2 +-
 xen/include/asm-arm/domain.h      |    6 +
 xen/include/asm-arm/gic-its.h     |  393 ++++++++++
 xen/include/asm-arm/gic.h         |   44 +-
 xen/include/asm-arm/gic_v3_defs.h |   46 +-
 xen/include/asm-arm/irq.h         |   18 +-
 xen/include/asm-arm/smp.h         |    1 +
 xen/include/asm-arm/vgic.h        |    5 +
 xen/include/xen/bitmap.h          |   16 +
 xen/include/xen/lib.h             |    2 +
 xen/include/xen/log2.h            |  167 ++++
 28 files changed, 4228 insertions(+), 65 deletions(-)
 create mode 100644 xen/arch/arm/gic-v3-its.c
 create mode 100644 xen/arch/arm/platforms/thunderx.c
 create mode 100644 xen/arch/arm/vgic-v3-its.c
 create mode 100644 xen/include/asm-arm/gic-its.h
 create mode 100644 xen/include/xen/log2.h

-- 
1.7.9.5


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.