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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 08DDEC433E6 for ; Mon, 25 Jan 2021 15:38:32 +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 9FE7222583 for ; Mon, 25 Jan 2021 15:38:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FE7222583 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.74161.133266 (Exim 4.92) (envelope-from ) id 1l43wZ-0004CU-Dy; Mon, 25 Jan 2021 15:38:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 74161.133266; Mon, 25 Jan 2021 15:38:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l43wZ-0004CN-Ak; Mon, 25 Jan 2021 15:38:19 +0000 Received: by outflank-mailman (input) for mailman id 74161; Mon, 25 Jan 2021 15:38:18 +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 1l43wX-0004CI-U0 for xen-devel@lists.xenproject.org; Mon, 25 Jan 2021 15:38:17 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9bc0ca24-0de6-413d-a1db-d71701c01445; Mon, 25 Jan 2021 15:38:16 +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: 9bc0ca24-0de6-413d-a1db-d71701c01445 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1611589096; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=adE1+SXOcPkQiHxBBtZNKWgJz/NYJbNMGjFkSpBu5js=; b=D7rUMndvWScAUZo4WYkKR7rMP+7Dw82un14Z79fMrDv+9YqEiIWjkVOX PW0r+NVAnvw1rBaX/4OyQ/5FAyA3xbH/HeND7FNTmldNvkOdzBeWuoTiB YJcjQl3fFdYlAh8A/svoE2J54/5/oB48XPpyOMHwiKF06yPdZvQPLJQUa Q=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: +hqyqSIfTNzOdFEkfG/siAoz5I/u/bPF461iv+zDVxe1n3IOBdAfKnaxTBxhRYaLUlX4T9X3ZE 44qhRW3ktIVGjfu/57vOZAfJy/MnkwkvBJcuSxpS3ZlHA2dJMAtUZkTtdMt2yMAUoQZDvXHAK2 y8rs4oRHnGqyKee2NQAbFnbO+cJhnDc/RTGnTpzJXtv4EpSgsCBCMeqKYlAAZe+SjY/AKoAr6q oiHc0VRH2Gqmg1dBiOcMpWw56YgtYTp2lxlMsmHaupyMHcUK3LTHXsX2youKokFoP/VhRrKFu1 vkc= X-SBRS: 4.4 X-MesageID: 36169763 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,373,1602561600"; d="scan'208";a="36169763" Subject: Re: [PATCH v2 1/2] viridian: remove implicit limit of 64 VPs per partition To: CC: , , , , , , , , , References: <1610425048-990-1-git-send-email-igor.druzhinin@citrix.com> From: Igor Druzhinin Message-ID: <396e7b8d-444a-d67d-e0f7-f6b85052dff7@citrix.com> Date: Mon, 25 Jan 2021 15:37:52 +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: <1610425048-990-1-git-send-email-igor.druzhinin@citrix.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/01/2021 04:17, Igor Druzhinin wrote: > TLFS 7.8.1 stipulates that "a virtual processor index must be less than > the maximum number of virtual processors per partition" that "can be obtained > through CPUID leaf 0x40000005". Furthermore, "Requirements for Implementing > the Microsoft Hypervisor Interface" defines that starting from Windows Server > 2012, which allowed more than 64 CPUs to be brought up, this leaf can now > contain a value -1 basically assuming the hypervisor has no restriction while > 0 (that we currently expose) means the default restriction is still present. > > Along with the previous changes exposing ExProcessorMasks this allows a recent > Windows VM with Viridian extension enabled to have more than 64 vCPUs without > going into BSOD in some cases. > > Since we didn't expose the leaf before and to keep CPUID data consistent for > incoming streams from previous Xen versions - let's keep it behind an option. > > Signed-off-by: Igor Druzhinin > --- ping? Paul? Igor