qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/6] arm_gic: add virtualization extensions support
@ 2018-06-06  9:30 luc.michel
  2018-06-06  9:30 ` [Qemu-devel] [PATCH 1/6] intc/arm_gic: Refactor operations on the distributor luc.michel
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: luc.michel @ 2018-06-06  9:30 UTC (permalink / raw)
  To: qemu-devel
  Cc: Luc MICHEL, qemu-arm, Peter Maydell, saipava, edgari, mark.burton,
	Jan Kiszka

From: Luc MICHEL <luc.michel@greensocs.com>

This patch series add support for the virtualization extensions in the
ARM GICv2 interrupt controller.

The first two commits do some refactoring to prepare for the
implementation. Commits 3 and 4 are the actual implementation. The last
commit updates the ZynqMP implementation to support virtualization.

The current state allows to boot Xen (tested with 4.8 and 4.10) with
Linux Dom0 guest properly.

I also tested in SMP. It does not work directly because Xen expects to
find CPU IDs in the GIC ITARGETSR0 register. This behavior is not
documented in the GICv2 specification, and is not implemented in QEMU.
By hacking this register, I was able to get the whole thing to boot in
SMP properly. This hack is not part of those patches though.

I also tested migration, it works fine AFAIK. I had to add the HYP and
SEC timers in the ARM CPU VMState though (Xen uses the HYP one) (not
part of those patches).

I want to thanks the Xilinx's QEMU team who sponsored this work for
their collaboration.

Luc MICHEL (6):
  intc/arm_gic: Refactor operations on the distributor
  intc/arm_gic: Remove some dead code and put some functions static
  intc/arm_gic: Add the virtualization extensions to the GIC state
  intc/arm_gic: Add virtualization extensions logic
  intc/arm_gic: Improve traces
  xlnx-zynqmp: Improve GIC wiring and MMIO mapping

 hw/arm/xlnx-zynqmp.c             |  92 +++-
 hw/intc/arm_gic.c                | 768 ++++++++++++++++++++++++-------
 hw/intc/arm_gic_common.c         | 159 +++++--
 hw/intc/arm_gic_kvm.c            |  31 +-
 hw/intc/gic_internal.h           | 258 +++++++++--
 hw/intc/trace-events             |  12 +-
 include/hw/arm/xlnx-zynqmp.h     |   4 +-
 include/hw/intc/arm_gic_common.h |  52 ++-
 8 files changed, 1128 insertions(+), 248 deletions(-)

--
2.17.0

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-06-18 12:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06  9:30 [Qemu-devel] [PATCH 0/6] arm_gic: add virtualization extensions support luc.michel
2018-06-06  9:30 ` [Qemu-devel] [PATCH 1/6] intc/arm_gic: Refactor operations on the distributor luc.michel
2018-06-06 13:38   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-06-07  6:08   ` [Qemu-devel] " Sai Pavan Boddu
2018-06-11 13:39   ` Peter Maydell
2018-06-06  9:30 ` [Qemu-devel] [PATCH 2/6] intc/arm_gic: Remove some dead code and put some functions static luc.michel
2018-06-06 13:39   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-06-11 13:39   ` [Qemu-devel] " Peter Maydell
2018-06-06  9:30 ` [Qemu-devel] [PATCH 3/6] intc/arm_gic: Add the virtualization extensions to the GIC state luc.michel
2018-06-11 13:38   ` Peter Maydell
2018-06-18 11:50     ` Luc Michel
2018-06-18 12:11       ` Peter Maydell
2018-06-06  9:30 ` [Qemu-devel] [PATCH 4/6] intc/arm_gic: Add virtualization extensions logic luc.michel
2018-06-06  9:31 ` [Qemu-devel] [PATCH 5/6] intc/arm_gic: Improve traces luc.michel
2018-06-06 13:36   ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2018-06-06  9:31 ` [Qemu-devel] [PATCH 6/6] xlnx-zynqmp: Improve GIC wiring and MMIO mapping luc.michel
2018-06-06 11:02 ` [Qemu-devel] [PATCH 0/6] arm_gic: add virtualization extensions support Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).