[Top][All Lists]

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

[Qemu-devel] [PATCH v4 0/3] explicit VGIC initialization in finalize fun

From: Eric Auger
Subject: [Qemu-devel] [PATCH v4 0/3] explicit VGIC initialization in finalize function
Date: Wed, 4 Mar 2015 14:16:14 +0000

With current implementation the vgic is initialized implicitly,
on-demand. This patch forces the init in the vgic finalize function.
At that point all the dimensioning parameters are known.

A new group/attribute in VGIC KVM device is used for that:

Among other things, this earlier VGIC initialization allows to
have a simpler handling of VFIO. VFIO platform signaling can be
setup on reset handler, making sure the VGIC is ready, at that time,
to accept injected virtual IRQs.

Tested on Calxeda Midway with VFIO platform use case

Can be found on
branch early_vgic_init_v4

v3 -> v4:
- now integrates all the header updates of update-linux-headers.sh applied
  on top of 4.0-rc2 kernel (and not a partial export as in v3).
- VIRTIO_TRANSPORT_F_END value needed to be changed to 33 in
  include/hw/virtio/virtio.h to fix a duplicate definition compilation error
  (also defined in virtio_config.h)
- integrates a new patch file that add export of virtio_types.h, now
  included by virtio_ring.h.

v2 -> v3:
- changed to a patch since the kernel dependency was pulled

v1 -> v2:
- The init is not mandated to be done in a machine init done notifier
  anymore since only the number of vcpus and number of IRQs must be known
  at init time.

Eric Auger (3):
  update-linux-headers.sh: export virtio_types.h
  linux-headers: update to 4.0-rc2
  hw/intc/arm_gic: Initialize the vgic in the realize function

 hw/intc/arm_gic_kvm.c               |  6 +++++
 include/hw/virtio/virtio.h          |  4 +--
 linux-headers/asm-arm/kvm.h         |  2 ++
 linux-headers/asm-arm64/kvm.h       |  9 +++++++
 linux-headers/asm-s390/kvm.h        | 37 ++++++++++++++++++++++++++
 linux-headers/asm-x86/hyperv.h      | 11 ++++++++
 linux-headers/linux/kvm.h           | 20 +++++++-------
 linux-headers/linux/vfio.h          |  1 +
 linux-headers/linux/virtio_config.h | 11 ++++++--
 linux-headers/linux/virtio_ring.h   | 52 +++++++++++++++++++++----------------
 linux-headers/linux/virtio_types.h  | 46 ++++++++++++++++++++++++++++++++
 scripts/update-linux-headers.sh     |  2 +-
 12 files changed, 163 insertions(+), 38 deletions(-)
 create mode 100644 linux-headers/linux/virtio_types.h


reply via email to

[Prev in Thread] Current Thread [Next in Thread]