[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/Xen: streamline (and fix) PV CPU enumeration


  • To: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 2 Feb 2022 15:35:27 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G1UgrMmjUR/x017Ro/iQt0Tz87XGFU0Ky7vnfzyPvUk=; b=Ckbg0qup+U5Hx9fTkh1FOegdk4pWT8FFWkhPgrHqAgg9xt6D8qgcm8fOweHoNiKs6AXu3sDd1xWscJ/UhuKvUiHB/5HU0c4uV16InUo4Jd+TGuH0pPjH7qT6CGoDAJ7u26+a1ZI+y/g+uU49NgFppfdWtMqNY8U0j3zKXeGuPnD+AmINhG8mGXHCUm3bjGfyDn30D6zp5QmeSenNQ1O7iZai/5Pc8a/S6W0XnlwD6JtnDDylENxyo3omdM2JdmQ6AGrLv6S9fISO6Hy3E3vE+6BrdsKqv3vc98HUS4rrZID8HEyCFveFMLH8yD+1WHz32VGqzI3i66t0bWA2OJgWUA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q3ww0gTGrhM8QGGoBYd5Ble/q8zXZhXSxBEoDUIM/QqUmMPx+8vlYZHY6d91Q9qdSEntBG6Yz/gvdaSHovidAUh0EjsQWk0WS/j8n5c3iSUoDrwVMEZnjhmCRFvqVk3fjqd2D9iwaaU2E2drGkCgtchJyX7nIz36gRxc+tMJ0Gb22QdnCf4GLrmtBnIk08ntyZoRE5Ynrebrj+5gR6TiVJ213QJ9s5cmzzUjAltoLXm74yBVdSnRR4NhpwPthdYqpzBvHB8cmqGkbeDvs7C8SgeSiUoN9vtO+7nfAUZaPP0Xyz/tMCcmUU7lbl5F9Cu/ky/ujNYF6YV2cRIdgJD83A==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Wed, 02 Feb 2022 14:35:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 02.02.2022 15:27, Boris Ostrovsky wrote:
> 
> On 2/1/22 5:57 AM, Jan Beulich wrote:
>> This started out with me noticing that "dom0_max_vcpus=<N>" with <N>
>> larger than the number of physical CPUs reported through ACPI tables
>> would not bring up the "excess" vCPU-s. Addressing this is the primary
>> purpose of the change; CPU maps handling is being tidied only as far as
>> is necessary for the change here (with the effect of also avoiding the
>> setting up of too much per-CPU infrastructure, i.e. for CPUs which can
>> never come online).
>>
>> Noticing that xen_fill_possible_map() is called way too early, whereas
>> xen_filter_cpu_maps() is called too late (after per-CPU areas were
>> already set up), and further observing that each of the functions serves
>> only one of Dom0 or DomU, it looked like it was better to simplify this.
>> Use the .get_smp_config hook instead, uniformly for Dom0 and DomU.
>> xen_fill_possible_map() can be dropped altogether, while
>> xen_filter_cpu_maps() is re-purposed but not otherwise changed.
>>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>> ---
>> v2: Extend description.
> 
> 
> That's been a while ;-)

Indeed. For some reason I had stored in the back of my memory that
you asked me for splitting the patch. That's something that would
have required at least as much time (to make sure I get it right)
as it took to put together (and test) the patch. Which was more
than I could afford in all this time. Recently I decided to check
with you whether I could talk you into withdrawing that (supposed)
request. But when going back through the old thread, I was
surprised to find that all you did ask for is extending the
description to point out that the CPU map management isn't the
primary purpose of the change.

> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>

Thanks.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.