From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH v4 04/12] KVM: arm64: handle ITS related GICv3 redistributor registers Date: Thu, 7 Apr 2016 14:54:10 +0100 Message-ID: <57066682.5040404@arm.com> References: <1458958450-19662-1-git-send-email-andre.przywara@arm.com> <1458958450-19662-5-git-send-email-andre.przywara@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org To: Andre Przywara , Christoffer Dall , Eric Auger Return-path: Received: from foss.arm.com ([217.140.101.70]:34419 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbcDGNyN (ORCPT ); Thu, 7 Apr 2016 09:54:13 -0400 In-Reply-To: <1458958450-19662-5-git-send-email-andre.przywara@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 26/03/16 02:14, Andre Przywara wrote: > In the GICv3 redistributor there are the PENDBASER and PROPBASER > registers which we did not emulate so far, as they only make sense > when having an ITS. In preparation for that emulate those MMIO > accesses by storing the 64-bit data written into it into a variable > which we later read in the ITS emulation. > > Signed-off-by: Andre Przywara > --- > include/kvm/vgic/vgic.h | 8 ++++++++ > virt/kvm/arm/vgic/vgic_mmio.c | 26 ++++++++++++++++++++++---- > 2 files changed, 30 insertions(+), 4 deletions(-) > > diff --git a/include/kvm/vgic/vgic.h b/include/kvm/vgic/vgic.h > index 11344e6..8ea5dd7 100644 > --- a/include/kvm/vgic/vgic.h > +++ b/include/kvm/vgic/vgic.h > @@ -145,6 +145,14 @@ struct vgic_dist { > > struct vgic_io_device *dist_iodevs; > struct vgic_io_device *redist_iodevs; > + > + /* Address of LPI configuration table shared by all redistributors */ > + u64 propbaser; > + > + /* Addresses of LPI pending tables per redistributor */ > + u64 *pendbaser; All these should probably either be phys_addr_t or gpa_t. Thanks, M. -- Jazz is not dead. It just smells funny...