From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF73EC43331 for ; Fri, 19 Mar 2021 09:32:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F4B764F75 for ; Fri, 19 Mar 2021 09:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbhCSJcJ (ORCPT ); Fri, 19 Mar 2021 05:32:09 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:55730 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhCSJbt (ORCPT ); Fri, 19 Mar 2021 05:31:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616146308; 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=xSRPqSlHasWOtKCAmIMpsOHFNUheb5Kd9GbHS0kbp9c=; b=Mcyrgt473KFucIX4zFquLx1NgqhXbOWwLmHyx5eWVDnrqcjNHe5LLCbwA9J1feTq/HOCaL xNc/63Dr0C6kf/5z68/YEF26CkmuvX8LFpSQH2LAMGhdaH58QBsNAydBfnNBT4C90fQ5qD EDh6hvr2+ZEMOJH7F8FcHxLpBret2y4= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-497-lqwKAoI7O9iHcxVBM2DjNQ-1; Fri, 19 Mar 2021 05:31:46 -0400 X-MC-Unique: lqwKAoI7O9iHcxVBM2DjNQ-1 Received: by mail-ej1-f69.google.com with SMTP id bg7so12004799ejb.12 for ; Fri, 19 Mar 2021 02:31:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xSRPqSlHasWOtKCAmIMpsOHFNUheb5Kd9GbHS0kbp9c=; b=Z4ZoZaJ+26G3Mzajes/aHO9nDcfrqkzFUq5unvojqoSurEyjU3sVjoCOf5VHTXjtMG cCEqFs6EHvDxVMiC+lBTEu6vX0Xq+74MpWl2Ub09Inw5G5EfW4f+hbknOOkRFTAyVbzb LfuUArzVzuKw0MFDxlcv7taeLRRKJjKJl4b6nEXy0a+hOSo1ljXvArHSu22XLgwepib2 eO8NGPARVoQkQHOhCO5ogRpXjh53u2bKmILiwZaDRFJZwBCPiIFUsg0jpXJQECeAgQCN Ol38xda96KLtzib0gY8wlg0Gsg9+KntFFM3/GhG25Efitjg0062Vry29Cm8dQ+fyzDI4 dNIg== X-Gm-Message-State: AOAM531XSGkzbuSXZjoUpe3nTuB2pU4/JDUjEilTn8AaBGlA4P+xxcP6 4UATcZjHrTtRtAPaISypS3nU4dmyZoEmZo+Ei0r1luoMQA1E+Rcn9gBXbpBhg6ex3avBLJAIZEM 0wXapc1rSOhNLznuPyEQ3dyONXsKn29SW1Hv13INCTR5EI7WW3LihUZM/Gkuw09qyTonG8+zyjB gI X-Received: by 2002:a50:ef0a:: with SMTP id m10mr8391632eds.261.1616146304973; Fri, 19 Mar 2021 02:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3r72fWZ+WnHJwauh+tYRcGl/q0ZdX2psXYYooGwFbKXx25e3vDBNp41L0JN+IfnaYj0jlDQ== X-Received: by 2002:a50:ef0a:: with SMTP id m10mr8391608eds.261.1616146304755; Fri, 19 Mar 2021 02:31:44 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id g21sm3349054ejd.6.2021.03.19.02.31.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Mar 2021 02:31:44 -0700 (PDT) Subject: Re: [PATCH] documentation/kvm: additional explanations on KVM_SET_BOOT_CPU_ID To: Emanuele Giuseppe Esposito , linux-doc@vger.kernel.org Cc: Jonathan Corbet , Andrew Jones , Vitaly Kuznetsov , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210319091650.11967-1-eesposit@redhat.com> From: Paolo Bonzini Message-ID: <8d48bf1b-208c-89fb-1150-b9d7f589e152@redhat.com> Date: Fri, 19 Mar 2021 10:31:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210319091650.11967-1-eesposit@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/03/21 10:16, Emanuele Giuseppe Esposito wrote: > The ioctl KVM_SET_BOOT_CPU_ID fails when called after vcpu creation. > Add this explanation in the documentation. > > Signed-off-by: Emanuele Giuseppe Esposito > --- > Documentation/virt/kvm/api.rst | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst > index 38e327d4b479..bece398227f5 100644 > --- a/Documentation/virt/kvm/api.rst > +++ b/Documentation/virt/kvm/api.rst > @@ -1495,7 +1495,8 @@ Fails if any VCPU has already been created. > > Define which vcpu is the Bootstrap Processor (BSP). Values are the same > as the vcpu id in KVM_CREATE_VCPU. If this ioctl is not called, the default > -is vcpu 0. > +is vcpu 0. This ioctl has to be called before vcpu creation, > +otherwise it will return EBUSY error. > > > 4.42 KVM_GET_XSAVE > Queued, thanks. Paolo