From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbdJ3DU1 (ORCPT ); Sun, 29 Oct 2017 23:20:27 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47912 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751857AbdJ3DUZ (ORCPT ); Sun, 29 Oct 2017 23:20:25 -0400 From: Marc Zyngier To: Eric Auger Cc: , , , , , , , , , , Subject: Re: [PATCH v6 6/9] KVM: arm/arm64: vgic-its: New helper functions to free the caches In-Reply-To: <1509031391-4407-7-git-send-email-eric.auger@redhat.com> (Eric Auger's message of "Thu, 26 Oct 2017 17:23:08 +0200") Organization: ARM Ltd References: <1509031391-4407-1-git-send-email-eric.auger@redhat.com> <1509031391-4407-7-git-send-email-eric.auger@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Date: Mon, 30 Oct 2017 03:20:21 +0000 Message-ID: <86a809724q.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26 2017 at 6:23:08 pm BST, Eric Auger wrote: > From: wanghaibin > > We create two new functions that free the device and > collection lists. They are currently called by vgic_its_destroy() > and other callers will be added in subsequent patches. > > We also remove the check on its->device_list.next. > Lists are initialized in vgic_create_its() and the device > is added to the device list only if this latter succeeds. > > vgic_its_destroy is the device destroy ops. This latter is called > by kvm_destroy_devices() which loops on all created devices. So > at this point the list is initialized. > > Signed-off-by: wanghaibin > Signed-off-by: Eric Auger Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny.