Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp530892pxb; Wed, 13 Jan 2021 09:21:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZNPXMWEt8d34DJFonJLS2rfhWzl6AYwvN6jHUIdMAux8l2BuK/YnPZFCdWXDbwN4KjQq3 X-Received: by 2002:a17:906:2695:: with SMTP id t21mr2403706ejc.287.1610558495695; Wed, 13 Jan 2021 09:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610558495; cv=none; d=google.com; s=arc-20160816; b=FgtV4rB7qfK796ocCJTRM2z/tpyrYBnhFK1g/Mq+KYj5goOMmqSsvbbN+kN28jGQ09 9L/rIVLfXumBrVtwQ+j8o/GMDS++/eb6BAbPfE9JVFRDhq+Zi3ugHGuB7Jgtoa9i97O5 f2zAiTDyiMRBJ0rPGKhVQELSx4U3HS/ecsmxai0ZYKLRXuJhbDhFV6Ywxo19qQcQR4Ch kG7YbYtkzG6C27qC7IM5vjKqUvYIySw/Pe5Zl8q9vh+WHnx+zOGCccLl6XAXM7rH2dap OBxFpQ3SQPIPsavi8hA/Gw1bXkyPf9IycFsjuSqL+JBxWN3X3oyDPzj2G4X2AUBfU4BR 7TEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=A5hNzXnRtBLkRY+uChUouzv6yCzi7yuTb2zBLYxeP94=; b=oGWWXyoQzrSluv2j1CoLLY9hlRZbztdDCMTZH2CKLirxzQhws8PZA138PeOEpBdrTa QYp/MTt393oyUqB0SKVFuQADFsg6Vh70MHBde2x/LQ50p1Isq/0xxzAIRWFD/F2MFlzS Se83uP5yBUI2Yt0ekS5Zt+Wjl9YUuCULa4V98dFUH7T8g7F9GEh9Nigs7Pzfnm1y/ykq 4aYuHPcu1DBa5gzIRu8EdfbwHLSeKiTUmboh860ATIeDEhAvtD263NukzpZwC27FgA87 4xKf+jxaSiBq3Rrfl4upap1a89Rj2/c3+hQTQv7Knm69iQLWkI52sSHNQvJegARaL6Nx hCCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="J1vUH/ho"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si1445121edv.445.2021.01.13.09.21.11; Wed, 13 Jan 2021 09:21:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="J1vUH/ho"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728150AbhAMRUE (ORCPT + 99 others); Wed, 13 Jan 2021 12:20:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45468 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728039AbhAMRUE (ORCPT ); Wed, 13 Jan 2021 12:20:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610558318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A5hNzXnRtBLkRY+uChUouzv6yCzi7yuTb2zBLYxeP94=; b=J1vUH/hoUkf5rwYxU8UNNDXqj9aedtiico9xrcbpLYMSb4NacWUCSSUqqwnvbWNpwaV+f/ GOninNBHYrANYcnVAWmORBwV4+m1913ZIiG4sd1K+m4Y1UBgje4NvSSuE0IR9VOrU3Q4RC CkaHlUw7LkwRuqaktKmotpsuIblcgvo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-339-CS-aG-nUM0mMe2mBZ18P1A-1; Wed, 13 Jan 2021 12:18:23 -0500 X-MC-Unique: CS-aG-nUM0mMe2mBZ18P1A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2F62380A5C0; Wed, 13 Jan 2021 17:18:22 +0000 (UTC) Received: from [10.36.114.165] (ovpn-114-165.ams2.redhat.com [10.36.114.165]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4581074AA9; Wed, 13 Jan 2021 17:18:19 +0000 (UTC) Subject: Re: [PATCH 6/9] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc To: Alexandru Elisei , eric.auger.pro@gmail.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, maz@kernel.org, drjones@redhat.com Cc: james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, shuah@kernel.org, pbonzini@redhat.com References: <20201212185010.26579-1-eric.auger@redhat.com> <20201212185010.26579-7-eric.auger@redhat.com> <4c0b3988-904c-a922-d0be-87a354c3203c@arm.com> From: Auger Eric Message-ID: <0f6f4848-b7df-9e9f-8b25-5009a5650350@redhat.com> Date: Wed, 13 Jan 2021 18:18:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <4c0b3988-904c-a922-d0be-87a354c3203c@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandru, On 1/12/21 4:39 PM, Alexandru Elisei wrote: > Hi Eric, > > On 12/12/20 6:50 PM, Eric Auger wrote: >> kvm_arch_vcpu_precreate() returns -EBUSY if the vgic is >> already initialized. So let's document that KVM_DEV_ARM_VGIC_CTRL_INIT >> must be called after all vcpu creations. > > Checked and this is indeed the case, > kvm_vm_ioctl_create_vcpu()->kvm_arch_vcpu_precreate() returns -EBUSY is > vgic_initialized() is true. thanks! > >> >> Signed-off-by: Eric Auger >> --- >> Documentation/virt/kvm/devices/arm-vgic-v3.rst | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/Documentation/virt/kvm/devices/arm-vgic-v3.rst b/Documentation/virt/kvm/devices/arm-vgic-v3.rst >> index 5dd3bff51978..322de6aebdec 100644 >> --- a/Documentation/virt/kvm/devices/arm-vgic-v3.rst >> +++ b/Documentation/virt/kvm/devices/arm-vgic-v3.rst >> @@ -228,7 +228,7 @@ Groups: >> >> KVM_DEV_ARM_VGIC_CTRL_INIT >> request the initialization of the VGIC, no additional parameter in >> - kvm_device_attr.addr. >> + kvm_device_attr.addr. Must be called after all vcpu creations. > > Nitpick here: the document writes VCPU with all caps. This also sounds a bit > weird, I think something like "Must be called after all VCPUs have been created" > is clearer. I took your suggestion. Thanks Eric > > Thanks, > Alex >> KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES >> save all LPI pending bits into guest RAM pending tables. >> >