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=-7.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no 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 4C3DDC433DB for ; Fri, 8 Jan 2021 11:42:40 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C44BD239A1 for ; Fri, 8 Jan 2021 11:42:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C44BD239A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.63373.112526 (Exim 4.92) (envelope-from ) id 1kxq9z-00044c-E9; Fri, 08 Jan 2021 11:42:27 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 63373.112526; Fri, 08 Jan 2021 11:42:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kxq9z-00044V-B4; Fri, 08 Jan 2021 11:42:27 +0000 Received: by outflank-mailman (input) for mailman id 63373; Fri, 08 Jan 2021 11:42:25 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kxq9x-00044Q-JA for xen-devel@lists.xenproject.org; Fri, 08 Jan 2021 11:42:25 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d268a1bf-70cb-48e7-b3c0-4a3ddd2ceabb; Fri, 08 Jan 2021 11:42:24 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d268a1bf-70cb-48e7-b3c0-4a3ddd2ceabb DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1610106144; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=czdlG1yyMPNMKGCtdguLrl0jlxSG7plVRpgVj9xGHiY=; b=OoG3oU8cPss1j4grn0yklTnAG9kMkuSjLPbM0Qi++a0lLTCULCxwEG+g pMqCvZmv9Y/z3i+U9bYieokh2KWNQV0vRp9Y2l7jCHIgt/CRKY/HDYPK0 LwrX+dkLfsTzLY9+6NpW5utsPQ3IJdgG6kadRbW6krlsn5Vj1dRElUivj w=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: mzoTebPBQI7K8qRaBCNLb46Mx+QymVQZdrBMm91tx5gY0gxDg8KPEs+7EBqJAFC2GYPCazunbe xiQTLosk08uEuBxdWCxu/XZD2l1MHtgxl297n4XsREq9xnZDZn54LrOI6ijK27wVbpaJo/F+oL SMfOwsp0Jd+Y4nhu/gr55QCVkpfUG2hOIEjhTcBcwamuox5bTDPqJJ9IYz/sm1TLXrQBIuwT6K /4F6Kb0YlHNXjJ/ICwfciLtxbvslxDdT6CT9yz6kw83GImDEgj0a/LD6yOhA4f03Q1wrsas07F dVo= X-SBRS: 5.2 X-MesageID: 35058121 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.79,330,1602561600"; d="scan'208";a="35058121" Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs To: , CC: , , , , , , , , References: <1610066796-17266-1-git-send-email-igor.druzhinin@citrix.com> <1610066796-17266-2-git-send-email-igor.druzhinin@citrix.com> <00a001d6e599$a07c8380$e1758a80$@xen.org> <00a101d6e5b2$276b2140$764163c0$@xen.org> <00a201d6e5b3$18ad0ff0$4a072fd0$@xen.org> From: Igor Druzhinin Message-ID: Date: Fri, 8 Jan 2021 11:42:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <00a201d6e5b3$18ad0ff0$4a072fd0$@xen.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/01/2021 11:40, Paul Durrant wrote: >> -----Original Message----- >> From: Igor Druzhinin >> Sent: 08 January 2021 11:36 >> To: paul@xen.org; xen-devel@lists.xenproject.org >> Cc: wl@xen.org; iwj@xenproject.org; anthony.perard@citrix.com; andrew.cooper3@citrix.com; >> george.dunlap@citrix.com; jbeulich@suse.com; julien@xen.org; sstabellini@kernel.org; >> roger.pau@citrix.com >> Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs >> >> On 08/01/2021 11:33, Paul Durrant wrote: >>>> -----Original Message----- >>>> From: Igor Druzhinin >>>> Sent: 08 January 2021 11:30 >>>> To: paul@xen.org; xen-devel@lists.xenproject.org >>>> Cc: wl@xen.org; iwj@xenproject.org; anthony.perard@citrix.com; andrew.cooper3@citrix.com; >>>> george.dunlap@citrix.com; jbeulich@suse.com; julien@xen.org; sstabellini@kernel.org; >>>> roger.pau@citrix.com >>>> Subject: Re: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs >>>> >>>> On 08/01/2021 08:38, Paul Durrant wrote: >>>>>> -----Original Message----- >>>>>> From: Igor Druzhinin >>>>>> Sent: 08 January 2021 00:47 >>>>>> To: xen-devel@lists.xenproject.org >>>>>> Cc: paul@xen.org; wl@xen.org; iwj@xenproject.org; anthony.perard@citrix.com; >>>>>> andrew.cooper3@citrix.com; george.dunlap@citrix.com; jbeulich@suse.com; julien@xen.org; >>>>>> sstabellini@kernel.org; roger.pau@citrix.com; Igor Druzhinin >>>>>> Subject: [PATCH 2/2] viridian: allow vCPU hotplug for Windows VMs >>>>>> >>>>>> If Viridian extensions are enabled, Windows wouldn't currently allow >>>>>> a hotplugged vCPU to be brought up dynamically. We need to expose a special >>>>>> bit to let the guest know we allow it. It appears we can just start exposing >>>>>> it without worrying too much about compatibility - see relevant QEMU >>>>>> discussion here: >>>>>> >>>>>> https://patchwork.kernel.org/project/qemu-devel/patch/1455364815-19586-1-git-send-email- >>>>>> den@openvz.org/ >>>>> >>>>> I don't think that discussion really confirmed it was safe... just that empirically it appeared to >>>> be so. I think we should err on >>>>> the side of caution and have this behind a feature flag (but I'm happy for it to default to on). >>>> >>>> QEMU was having this code since 2016 and nobody complained is good >>>> enough for me - but if you insist we need an option - ok, I will add one. >>>> >>> >>> Given that it has not yet been in a release, perhaps you could just guard this and the >> implementation of leaf 0x40000005 using HVMPV_ex_processor_masks? >> >> That looks sloppy and confusing to me - let's have a separate option instead. >> > > Yes, for this I guess it is really a separate thing. Using HVMPV_ex_processor_masks to control the presence of leaf 0x40000005 seems reasonable (since it's all about being able to use >64 vcpus). Perhaps a new HVMPV_cpu_hotplug for this one? Agree. Igor