Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3160093pxb; Tue, 12 Jan 2021 07:45:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8Up+42jOk+oEPwe1in8BAsh28npHmlNjSLJ9zdgy+mFqNTuCfSjfls1GRICSEpwDLUdFR X-Received: by 2002:a17:906:c414:: with SMTP id u20mr3529363ejz.511.1610466323149; Tue, 12 Jan 2021 07:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610466323; cv=none; d=google.com; s=arc-20160816; b=MbOCgfTIdeDWFqqdCyQfT2lwwQTYQsBVeZ+D/HOFLaIOZptogoB4Jng6lf/vRN7jvl Vk5lyTw5yoyFzc7ckdgfzt6z5vCNHVnWOGuf23rA6i0Edjgij0zPliqf/LeZ3YViLcvT Uv4z2z/00lg9SIMV46lFD/9MuOs02tGgv8X8MIg370LQmabdRGGEu8Bn31PR1XidD4qA qQXmEzj/x/18qfqkjc9xMt+7huPwvD/V9ENzXwWFUqiTZ/KArJDKefuXXmdaRlxg54Gq XyOKboA8EFk9W2Y80rEAukyW88yHYuVVX4BjOv7Ykf3L2BX0KE6U8mh8MAR78U4XD4HW tKKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=7FOcxHqUjHSS3mkArP9hDw9EZtWpfqQf06h9BZF15Gg=; b=sS8ATvnin44HCjiap2T+wQvbyA89+DkRjrhm64LHm4MImIkSeeAA+cz6CItAo8Qj49 WN1p3cVWzE1Uh34RKw6kUxy7MF1HFENrg+qExt0NpToYjwEcHS5fv4goMLf1YkZTFZHF e9rmcwy0ymjt09/UfJHAEGS7wZc2oTyinF4O/R9Fr/6XHT0T9c6qkHRZzv8xD/UJ6SJA /oQi/49hPx1l1UefIY7boQbGOkB7SVobXD/fVlKrJbFMW0EUXdA324gLiFc1jmBHb8KF yEPAgKV/cHwedWVlKewkcN5EGuwM8LkgKphCZBGYTCm3t2/cOnv9cA/kRyUP7qJM11lq O9QA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si1287055eja.452.2021.01.12.07.44.59; Tue, 12 Jan 2021 07:45:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391907AbhALPkc (ORCPT + 99 others); Tue, 12 Jan 2021 10:40:32 -0500 Received: from foss.arm.com ([217.140.110.172]:48580 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391706AbhALPkc (ORCPT ); Tue, 12 Jan 2021 10:40:32 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7FACC1FB; Tue, 12 Jan 2021 07:39:46 -0800 (PST) Received: from [192.168.0.110] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 92BFB3F719; Tue, 12 Jan 2021 07:39:44 -0800 (PST) Subject: Re: [PATCH 6/9] docs: kvm: devices/arm-vgic-v3: enhance KVM_DEV_ARM_VGIC_CTRL_INIT doc To: Eric Auger , 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> From: Alexandru Elisei Message-ID: <4c0b3988-904c-a922-d0be-87a354c3203c@arm.com> Date: Tue, 12 Jan 2021 15:39:46 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20201212185010.26579-7-eric.auger@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > 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. Thanks, Alex > KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES > save all LPI pending bits into guest RAM pending tables. >