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

Re: Revert NR_CPUS=1 fix from 4.15 (was: Re: [PATCH] fix for_each_cpu() again for NR_CPUS=1)


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 1 Apr 2021 11:50:40 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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-SenderADCheck; bh=AXDgp5zLeEO6xJnCs7W1qeqPsJCujqLjiz1imtJdVcM=; b=R6w9HnhXrGFVGc3cUk7O6+31G4jvM1P0hdahG3KpZRtPp8pELSW/qoMH7MhOMbiZV3iNv8PVjk9xGrUg549R91e72ho7H11d8QKEVdD9qd22JO3i8cBG3GrTJYrna1Q8uBcOJvAufDLF+sP/WgxdvAf9TSUNkmJVC9IE147lE+3H2dILj7kfrW2uM63/Zd9NdtINFujaFqHmYS1Inc9C9/aKeJhLrFV2WHici0j4HpBOG0qwLEDt1Vtgoy0REB8PP2QAzBB/byPepn5F5sqmGAUJZYT86YsO9BNdHO71/dEVIRNbiGwM2/+Se/7IgerOlzkD/NBgYAEnqTXEN5W2zw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fKm2IHCG+C/ERQ6eTcA4Ls4K80FVxXZk1Gha6HPjUHD+znQ7o2YG2gpnwkqnnphzgN76K92Os85tQUi1hsfMg1XyEuHkqpMzVYGdpn8xhZZIgE9ViOo4kaCEGLwi9/UtAWDQIEZEAoSgUKbxgW7cXnvUeKmijg9s4DXVHI78uk+LZJJaDvGOse2XkZUhzV+t6kegE9dnZPGhIVUy6BvshWJt7VDtKRNTyrrLy2q1NwjWctCywef09I2GhGMZJHH7HafeFNBmXjgNbOtUwtak1/zSE3PNxpmvygOzglx9J5az49EwlQ9evFasYG6LTNtBw80Kj5hTC5FRPDORjdLj5w==
  • Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>
  • Delivery-date: Thu, 01 Apr 2021 09:51:01 +0000
  • Ironport-hdrordr: A9a23:jWblPKDxeIg985/lHeh+sceALOonbusQ8zAX/mhsVB1YddGZnc iynPIdkST5kioVRWtIo729EYOLKEm9ybde544NMbC+GDT3oWfAFvAH0aLO4R3FXxf/+OlUyL t6f8FFYuHYIFBmga/BjzWQPM0nxLC8npyAocf74zNTQRpxa6dmhj0JbzqzNkFtXgFJCd4YOf Onl6l6jgGtc3gWcci3b0NtN4T+jubGiY78Zlo+DwMngTPksRqT9LX4HxKEty1uMQ9n/LFKyw n4uj283IqPmbWRyhjQ12jchq4m5efJ+594K+GnzuQQIjXooA60aIpmQK3qhkFInMifrGwEvf OJjxA8P9liy365RBDLnTLdnzPO/Rxry3j+xUSWiXHuyPaJOg4SOo56qq9yNj76gnBQ2+1U4e Zw8E+y86dzN1fmmh/w4tDZPisa7XackD4ZvsM4y0BEXZB2Us42kaUvuHl7Pb0nByzA5IUuAI BVfbvhzccTS1+cYnzD11MfueCEbzA2FheCdEAIptaY5ThQhGx41EsV3qUk7w89yK4=
  • Ironport-sdr: Abfrjz3cXdMX1fnzbRU4GUuJebJ3HGdEd+dP9pxL33nMgW4880sgBtAOhvghAr2he+MUEaBQAP gOEezJt9x3PNmk91nhzr8XTzM5HlWNpOC5NbYNZsmHg4UsVmscBOR9jCVPj+sUGKzZ7VQwXIhj 6HraLTV/maObd+S2W7UWFC22vpHXtr88qOZCy4Yz3YR6R1NB1uj/3Fs62p1S982lKJOlDM/RW3 7UXmKKm2Y12qQpql8FzDtgd/QxjRg5H9YqZ8bZzPgihJQ05vCLTAzgvqcFC//+JVix4kNI1ja4 k50=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Apr 01, 2021 at 11:26:03AM +0200, Jan Beulich wrote:
> On 01.04.2021 11:00, Roger Pau Monné wrote:
> > On Wed, Mar 31, 2021 at 04:52:47PM +0200, Jan Beulich wrote:
> >> Unfortunately aa50f45332f1 ("xen: fix for_each_cpu when NR_CPUS=1") has
> >> caused quite a bit of fallout with gcc10, e.g. (there are at least two
> >> more similar ones, and I didn't bother trying to find them all):
> >>
> >> In file included from .../xen/include/xen/config.h:13,
> >>                  from <command-line>:
> >> core_parking.c: In function ‘core_parking_power’:
> >> .../xen/include/asm/percpu.h:12:51: error: array subscript 1 is above 
> >> array bounds of ‘long unsigned int[1]’ [-Werror=array-bounds]
> >>    12 |     (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]))
> >> .../xen/include/xen/compiler.h:141:29: note: in definition of macro 
> >> ‘RELOC_HIDE’
> >>   141 |     (typeof(ptr)) (__ptr + (off)); })
> >>       |                             ^~~
> >> core_parking.c:133:39: note: in expansion of macro ‘per_cpu’
> >>   133 |             core_tmp = cpumask_weight(per_cpu(cpu_core_mask, cpu));
> >>       |                                       ^~~~~~~
> >> In file included from .../xen/include/xen/percpu.h:4,
> >>                  from .../xen/include/asm/msr.h:7,
> >>                  from .../xen/include/asm/time.h:5,
> >>                  from .../xen/include/xen/time.h:76,
> >>                  from .../xen/include/xen/spinlock.h:4,
> >>                  from .../xen/include/xen/cpu.h:5,
> >>                  from core_parking.c:19:
> >> .../xen/include/asm/percpu.h:6:22: note: while referencing 
> >> ‘__per_cpu_offset’
> >>     6 | extern unsigned long __per_cpu_offset[NR_CPUS];
> >>       |                      ^~~~~~~~~~~~~~~~
> > 
> > At this point, should be consider reverting the original fix from the
> > 4.15 branch, so that we don't release something that's build broken
> > with gcc 10?
> 
> Well, I didn't propose reverting (or taking this fix) because I think
> build breakage is better than runtime breakage. But in the end, Ian,
> it's up to you.

Oh, right, sorry. The build issue only happens with NR_CPUS=1, in
which case I agree, there's no need to do anything in 4.15 IMO.

Sorry for bothering.

Roger.



 


Rackspace

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