From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59726)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from
) id 1ZHpS0-0007Nw-As
for qemu-devel@nongnu.org; Wed, 22 Jul 2015 04:32:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1ZHpRx-0004GU-5i
for qemu-devel@nongnu.org; Wed, 22 Jul 2015 04:32:28 -0400
Received: from mailout3.w1.samsung.com ([210.118.77.13]:58920)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1ZHpRx-0004Fs-0Z
for qemu-devel@nongnu.org; Wed, 22 Jul 2015 04:32:25 -0400
Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5
2014)) with ESMTP id <0NRV00K2DRPYEQ30@mailout3.w1.samsung.com> for
qemu-devel@nongnu.org; Wed, 22 Jul 2015 09:32:22 +0100 (BST)
From: Pavel Fedin
Date: Wed, 22 Jul 2015 11:32:15 +0300
Message-id:
Subject: [Qemu-devel] [PATCH v6 0/6] vGICv3 support
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: qemu-devel@nongnu.org
Cc: Peter Maydell , Eric Auger , Shlomo Pongratz , Shlomo Pongratz , Diana Craciun , Christoffer Dall
This series introduces support for GICv3 by KVM. Software emulation is
currently not supported.
Differences from v5:
- Fixed various checkpatch.pl style warnings
- Removed TODO in gicv3_init_irqs_and_mmio(), relevant memory API patch
included
- gicv3_init_irqs_and_mmio() now takes 3 arguments instead of 4. It is more
convenient to pass MMIO descriptors as array
Differences from v4:
- Do not reintroduce several constants shared with GICv2, reuse them instead.
- Added gicv3_init_irqs_and_mmio() in base class, to be used by both software
emulation and KVM code. Avoids code duplication.
- Do not add NULL msi-parent phandle to PCI device in the FDT
- Removed a couple of stale things from virt.c
Differences from v3:
- Fixed stupid build breakage in patch 0002
- Rebased on top of current master, patch 0003 adjusted according to
kvm_irqchip_create() changes
- Added assertion against uninitialized kernel_irqchip_type
- Removed kernel_irqchip_type initialization from models which do not
use KVM vGIC
Differences from v2:
- Removed some unrelated and unnecessary changes from virt machine,
occasionally slipped in; some of them caused qemu to crash on ARM32.
- Fixed build for ARM32; vGICv3 code requires definitions which are
present only in ARM64 kernel
Differences from v1:
- Base class included, taken from the series by Shlomo Pongratz:
http://lists.nongnu.org/archive/html/qemu-devel/2015-06/msg01512.html
The code is refactored as little as possible in order to simplify
further addition of software emulation:
- Minor fixes in code style and comments, according to old reviews
- Removed REV_V3 definition because it's currently not used, and it does
not add any meaning to number 3.
- Removed reserved regions for MBI and ITS (except for 'virt' machine
memory map). These should go to separate classes when implemented.
- Improved commit messages
- vGIC patches restructured
- Use 'gicversion' option instead of virt-v3 machine
Pavel Fedin (5):
Merge memory_region_init_reservation() into memory_region_init_io()
Extract some reusable vGIC code
Introduce irqchip type specification for KVM
Initial implementation of vGICv3
Add gicversion option to virt machine
Shlomo Pongratz (1):
Implement GIC-500 base class
hw/arm/vexpress.c | 1 +
hw/arm/virt.c | 141 +++++++++++++++++----
hw/intc/Makefile.objs | 4 +
hw/intc/arm_gic_kvm.c | 84 ++++++-------
hw/intc/arm_gicv3_common.c | 249 +++++++++++++++++++++++++++++++++++++
hw/intc/arm_gicv3_kvm.c | 155 +++++++++++++++++++++++
hw/intc/gicv3_internal.h | 156 +++++++++++++++++++++++
hw/intc/vgic_common.h | 43 +++++++
include/exec/memory.h | 14 ++-
include/hw/arm/fdt.h | 2 +-
include/hw/arm/virt.h | 6 +-
include/hw/boards.h | 1 +
include/hw/intc/arm_gicv3_common.h | 112 +++++++++++++++++
include/sysemu/kvm.h | 3 +-
kvm-all.c | 2 +-
memory.c | 10 +-
stubs/kvm.c | 2 +-
target-arm/kvm.c | 13 +-
18 files changed, 912 insertions(+), 86 deletions(-)
create mode 100644 hw/intc/arm_gicv3_common.c
create mode 100644 hw/intc/arm_gicv3_kvm.c
create mode 100644 hw/intc/gicv3_internal.h
create mode 100644 hw/intc/vgic_common.h
create mode 100644 include/hw/intc/arm_gicv3_common.h
--
1.9.5.msysgit.0