Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp162486pxb; Thu, 14 Jan 2021 02:40:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTSUWH0Vwc2zc85F0MdnUI+DujeOqGv4myaeTtYRdtXpNrjP8X9zxaZ64hkCjMUZtGF+re X-Received: by 2002:a17:906:c5b:: with SMTP id t27mr810127ejf.129.1610620844051; Thu, 14 Jan 2021 02:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610620844; cv=none; d=google.com; s=arc-20160816; b=L+ckVSR/eFWJuoEE/A7ttpTbLff+N5uMsZyZUagzo0eQl9vWZX6tOZzOINBR7XzZiL 9LVUrG0obrmr07pZqASHw8IzkzRhT37+BEDbkV58bfyvjRBTUkn8FGbWck/ovMxazLy4 YNnA1A8lcN+VB3Xp2QWZwEk/S4Kvj3MaZ1GQ7iIRlEyLTm2TXuwu2RfThvvseJ/Q6mb0 ewVcbhoHZmKYOPUhsN1yNU75wkpejM6rjYeoBbKfehwbTOkNtBWp+qCSlDB1EZtYDrEz kjreKgEdy6SDCiIVTOFDaVDyKY7fbznRHSmFxe6hl+cvwl8izGt2XWpj+NlybkuWLqq6 jshw== 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=FXGCjHiyUIeC3xYxU1Yf9HwpTD7P3zfxp/eFrua+DGA=; b=AgKxZaU3/QSYlO9biuBlobpFVeTeqRyUuWVCCmGmIFiMA7Kux+wu3Jzy04w5HBwb3f ZrDMjg2RNx42D1X+k4ZIZYyYlbyveD2YO4LuedA0c+F16JgeHOhM2Gz5wCVMq4sUlNEV VwH/HothwUXAir1C9CIYeY71siYJ/attU8wiSyzqUBP7AGhh9lnAwA6ZGupa5vhrdr84 NJAZ5vapN0eaW/KY7Y/b83V0uuGqE+bFxi0hG2usb6ycmJpJF29hFdkEJCYpz5W084WM T6dfMXEdXWUDcDtA0vgk1V3okiVWY/djqzJSOYXVxjSCSo+ZTejRzqMh6CqxfljdL7nv vZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M1e8GXzx; 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 dc4si2246221edb.417.2021.01.14.02.40.19; Thu, 14 Jan 2021 02:40:44 -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=M1e8GXzx; 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 S1728759AbhANKjM (ORCPT + 99 others); Thu, 14 Jan 2021 05:39:12 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:55499 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728741AbhANKjK (ORCPT ); Thu, 14 Jan 2021 05:39:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610620664; 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=FXGCjHiyUIeC3xYxU1Yf9HwpTD7P3zfxp/eFrua+DGA=; b=M1e8GXzxnQA2dq+/SAkiIJeSXh59dMLClRqoTlakPlnaISWZrt7mg/NaK091vSIqgzuxpd ij+mVe8LwE83qAXdOOPV5ym5Lvx3F8ySDZaun45FbVwm5+7MRLPz7f6aSi2TjVexLX5J8B Mm9TtmKaGuzQONfszUUuYXMn5M0/6+Y= 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-516-fZjnDu8LP_eHB9QYoJS0zg-1; Thu, 14 Jan 2021 05:37:43 -0500 X-MC-Unique: fZjnDu8LP_eHB9QYoJS0zg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B6EE38066E1; Thu, 14 Jan 2021 10:37:41 +0000 (UTC) Received: from laptop.redhat.com (ovpn-114-165.ams2.redhat.com [10.36.114.165]) by smtp.corp.redhat.com (Postfix) with ESMTP id D646012D7E; Thu, 14 Jan 2021 10:37:38 +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 Cc: alexandru.elisei@arm.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, shuah@kernel.org, pbonzini@redhat.com Subject: [PATCH v2 6/9] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc Date: Thu, 14 Jan 2021 11:37:05 +0100 Message-Id: <20210114103708.26763-7-eric.auger@redhat.com> In-Reply-To: <20210114103708.26763-1-eric.auger@redhat.com> References: <20210114103708.26763-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.21.3