From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH v7 19/24] KVM: arm64: vgic-its: Collection table save/restore Date: Sun, 07 May 2017 14:12:25 +0100 Message-ID: <878tm8kdza.fsf@on-the-bus.cambridge.arm.com> References: <1494084283-12723-1-git-send-email-eric.auger@redhat.com> <1494084283-12723-20-git-send-email-eric.auger@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Prasun.Kapoor@cavium.com, vijayak@caviumnetworks.com, andre.przywara@arm.com, quintela@redhat.com, dgilbert@redhat.com, bjsprakash.linux@gmail.com, Vijaya.Kumar@cavium.com, linux-arm-kernel@lists.infradead.org, pbonzini@redhat.com, kvmarm@lists.cs.columbia.edu, eric.auger.pro@gmail.com To: Eric Auger Return-path: In-Reply-To: <1494084283-12723-20-git-send-email-eric.auger@redhat.com> (Eric Auger's message of "Sat, 6 May 2017 17:24:38 +0200") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On Sat, May 06 2017 at 4:24:38 pm BST, Eric Auger wrote: > The save path copies the collection entries into guest RAM > at the GPA specified in the BASER register. This obviously > requires the BASER to be set. The last written element is a > dummy collection table entry. > > We do not index by collection ID as the collection entry > can fit into 8 bytes while containing the collection ID. > > On restore path we re-allocate the collection objects. > > Signed-off-by: Eric Auger > Reviewed-by: Christoffer Dall Reviewed-by: Marc Zyngier M. -- Jazz is not dead, it just smell funny. From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Sun, 07 May 2017 14:12:25 +0100 Subject: [PATCH v7 19/24] KVM: arm64: vgic-its: Collection table save/restore In-Reply-To: <1494084283-12723-20-git-send-email-eric.auger@redhat.com> (Eric Auger's message of "Sat, 6 May 2017 17:24:38 +0200") References: <1494084283-12723-1-git-send-email-eric.auger@redhat.com> <1494084283-12723-20-git-send-email-eric.auger@redhat.com> Message-ID: <878tm8kdza.fsf@on-the-bus.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, May 06 2017 at 4:24:38 pm BST, Eric Auger wrote: > The save path copies the collection entries into guest RAM > at the GPA specified in the BASER register. This obviously > requires the BASER to be set. The last written element is a > dummy collection table entry. > > We do not index by collection ID as the collection entry > can fit into 8 bytes while containing the collection ID. > > On restore path we re-allocate the collection objects. > > Signed-off-by: Eric Auger > Reviewed-by: Christoffer Dall Reviewed-by: Marc Zyngier M. -- Jazz is not dead, it just smell funny.