Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1443351pxf; Fri, 12 Mar 2021 09:35:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPPAWTJXX169fITx3Jmr6CS05MGPOhuUiKiQnQq/TWuDyQqFx6hKYR9U+MWGXoDASlj6xS X-Received: by 2002:a05:6402:312b:: with SMTP id dd11mr15532723edb.149.1615570509008; Fri, 12 Mar 2021 09:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615570509; cv=none; d=google.com; s=arc-20160816; b=P0k6Rz9cj22ZYDqDz6/66IVmIDaKVWCte4TDiDddSUiUEK4Z2ylsAGTVWQuEXTS3Ak 1bgtMqJyaqBbc/8LzXnG4IPe2VxejPe/aSYOD/5Ee7+wFEG1Npvs17E/ONKkn6l+GjgU bXuSC7sEkzXDekj8v8FEL58oXcgVsBpurf8+7gSwTOiTy89eBMxPXoeBGcrM5PTj9U5h 6cTRzC0iOU7mCiI4p74xmlmqNRftx4E05B3dfyR9UKVjXHpKnIUrUSrsxYUAxcKcKR2I VYGrRdQ9w4LLA2lGK2jiFclXYY6uuO5TdPfbE55wkmccsZF0f8EEHkx+1Eg4fPtLZS2j 1u3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0uKBYh1tSc08YlThe5x4w/3MJ8XTaEMc9L9bVozy6w0=; b=FAIs3h3Q47gEnFi0BrEiy6sfu5PV1h436EZcmhCEJnpmc1j+mtczqvgVI1ouoiEVGD NNDAB7Oi/DW2dAuB3cjFh+p/x9C+atJHAAFTgn+e6ZZB+hFMmcXEihnz9nkw07i1m5UN OomSXFOmFg6XPdkZVgjc/JwHyOJ4s3X4PWy/n7EADJ9K8Z6rPreR5TWRLJWw0Aej7dCj qN4hZXUnPF0Wbtm1p2FIZYzxq4pyBpekqO9CjX88Us8aJSmVqUCOh1328dcZqf32hwUN XfhVZdqIvgFGM/Cs1USOcACSSLKFvJYjmGL5q08RDSQKDfcPRXsFMfOjzfAefjBWHkDm JGfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R51YcUDf; 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 lt12si4562505ejb.158.2021.03.12.09.34.46; Fri, 12 Mar 2021 09:35:08 -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=R51YcUDf; 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 S233076AbhCLRdM (ORCPT + 99 others); Fri, 12 Mar 2021 12:33:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33230 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232973AbhCLRcs (ORCPT ); Fri, 12 Mar 2021 12:32:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615570367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0uKBYh1tSc08YlThe5x4w/3MJ8XTaEMc9L9bVozy6w0=; b=R51YcUDf3PbrBmn9dqXoGj6b6vGsFkNkv6YZRUlkYBaVtG3y4oyIlXEh3VQqpPV+puufDO rny0wufoR2Dy0MZblaUX9lNC8jgIoL8VqEf7lDlCHLhs28vpxI+kcFO7VWqYCSlX2UuquU W52PkdGMuxcWyDI9JUF4/EViPWNG0ZY= 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-505-e4DdS6LpMvKnHEPfN2M5vA-1; Fri, 12 Mar 2021 12:32:45 -0500 X-MC-Unique: e4DdS6LpMvKnHEPfN2M5vA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A791893920; Fri, 12 Mar 2021 17:32:43 +0000 (UTC) Received: from laptop.redhat.com (ovpn-112-254.ams2.redhat.com [10.36.112.254]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7EF491002388; Fri, 12 Mar 2021 17:32:39 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, maz@kernel.org, drjones@redhat.com, alexandru.elisei@arm.com Cc: james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, shuah@kernel.org, pbonzini@redhat.com Subject: [PATCH v3 5/8] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc Date: Fri, 12 Mar 2021 18:31:59 +0100 Message-Id: <20210312173202.89576-6-eric.auger@redhat.com> In-Reply-To: <20210312173202.89576-1-eric.auger@redhat.com> References: <20210312173202.89576-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Eric Auger --- v1 -> v2: - Must be called after all vcpu creations -> Must be called after all VCPUs have been created as per Alexandru's suggestion --- 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..51e5e5762571 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 VCPUs have been created. KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES save all LPI pending bits into guest RAM pending tables. -- 2.26.2