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

Re: [PATCH v1 03/29] xen/asm-generic: introduce stub header cpufeature.h


  • To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 19 Oct 2023 11:11:21 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=Rg5LAyald4FspBOeWCyfr7t3aqJ0toy2Pkdy7hNxpQ4=; b=P50uxc7IaxM/0XQBEx2oFML++G6NQ9GZOJjBBQ+RsQp/Wuj0jreFtDjtNzPUNpBG9iLM9NL7UBT/6Xv/ln6cw9KrvPHUbBrbujkiah7wTa01C5t0spnqL36w0QnoHHabh0G2QnfCxB2bZfHDoU9tEwiLQZTSFayjQY8gL5AgThbOzCOJcqdLAPK/W7yY1VDMSb211V0+ezgN/OvcwdlwwzE3WkCOCgyC8ctgAZmjp5NAB7gnNisS+M6GpkHMv08BFgs04ldPOTZDJh3qMlgIri2WlCJg90aCUAge3aoHoo3WOeaQyHIzfoX5wUCx1ZtPkxp0kZDJ5id4CL/cAlVhCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGUPnxqPVk3ZUvZdzwVxYYRTC1sG3lLdyBoNsoi53o2jUzezEfVQCUSRkVda1ZsVqzh07mnFPdOxwXx8+FDGuCf/PiDnJ3FwEU9tfC1NwPbPeF4t5o5G7zCwvwhd0oy7njhOsGwynv/IwyGQ3nmb+u5wrcG8m6gy3GXFtDYIEJF+NgehZV3oO3r2pDEFn/WAtdgwSPlAvcutnBQyOdzmRgoSAKOUrOac9DOqIQHAHUmRogqOZd/HE1Hy3CvGJpjWPH6vFEpSodZiF7NNvTYjYldFjEhyfPZcWUZhKXysCByGgsQVFNF2lr31N2JTVJZYcxDodM6Zwx2Loomj+DZ+ag==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 19 Oct 2023 09:11:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.09.2023 16:56, Oleksii Kurochko wrote:
> --- /dev/null
> +++ b/xen/include/asm-generic/cpufeature.h
> @@ -0,0 +1,23 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +#ifndef __ASM_GENERIC_CPUFEATURE_H__
> +#define __ASM_GENERIC_CPUFEATURE_H__
> +
> +#ifndef __ASSEMBLY__
> +
> +static inline int cpu_nr_siblings(unsigned int cpu)
> +{
> +    return 1;
> +}
> +
> +#endif
> +
> +#endif /* __ASM_GENERIC_CPUFEATURE_H__  */

I'm not convinced an arch can get away without such a header. Certainly
RISC-V and PPC can't, with all their ISA extensions that already exist
(part of which will want making use of, others may simply want exposing
to guests).

Jan



 


Rackspace

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