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

Re: [PATCH 5/6] x86/cpu-policy: Disentangle X86_NR_FEAT and FEATURESET_NR_ENTRIES


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 10 May 2023 21:13:26 +0100
  • 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XNYchtnQGr1T52aYNs+XuWuJ26zlEdOUQ/HmfBPouME=; b=LuKsR3uodsmSJYp3ldYDvWiH8Pq/WxRTOoPeFwooh7lZEmDLukno4NlwOqz1zq8lKxoaSTdHjTqNO2lQrc095Xdvkk8R1kdvvkSyISswZnjqLkWoYPHKUnvGnnQXB4TtGXE/EKY6us8Ii5pYsN+Yi89UL75/LoGzzyVEE5QJyln4dPGYbtOT6Q18OQNSPaL8nrfy+NKsEeZTIbzgmzDWJ81yT749nK8THP93syoqOKPoIabHG0GUw4UBRupi/++O54vdK50X6fv111TP2Hbi4Ebe6mXVveJdJs9JVGY3Mq8G4lnfKc2AY6LPBZlshS4PKKY7yHxZ5Mwl6O5K+xbAuw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IibQ/VQA6tsT+c1QGxmUKFf2331X+Ts8dzhq8jMQ929ILmlaAnWdQmQ20ENnAd9V3m70pWdNNAAPzw4PvfDP7MJOY8rS/Bzbsq+0ChUOtUoRvyLklEwycvHBHhls98/uZlbhmegFSneqVw1jQSumc7WYGCKIpQlhoR14ZtWYKmBWIWDu4TLmDleFx4DQaWbB3nu+9oYt89tpBG4+xHZ3eA5GTDDlAZ9hHwk5aiRKpzHQQmrpfcqlJgZ3D939C2EjPaUTo1e9tv3GWXzGdHf0lXvPxOtWjn9bYZwj+1AqQToVQw/W34YTA60agijk1T60N7oDLkILkpIPzsQF+5sqfg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 10 May 2023 20:13:53 +0000
  • Ironport-data: A9a23:ptcC/qORPkvSzLvvrR2IlsFynXyQoLVcMsEvi/4bfWQNrUon0mMFz jYZXmrSb/+IY2Chfop3O4+z9xsP6JfTyoM2TAto+SlhQUwRpJueD7x1DKtS0wC6dZSfER09v 63yTvGacajYm1eF/k/F3oDJ9CU6jufQAOKnUoYoAwgpLSd8UiAtlBl/rOAwh49skLCRDhiE/ Nj/uKUzAnf8s9JPGj9SuvPrRC9H5qyo42tF5wRmP5ingXeF/5UrJMNHTU2OByOQrrl8RoaSW +vFxbelyWLVlz9F5gSNy+uTnuUiG9Y+DCDW4pZkc/HKbitq/0Te5p0TJvsEAXq7vh3S9zxHJ HehgrTrIeshFvWkdO3wyHC0GQkmVUFN0OevzXRSLaV/ZqAJGpfh66wGMa04AWEX0sF+UTF22 ecxFHMmbwq9xPquxbO0F/Y506zPLOGzVG8ekldJ6GiBSNMZG9XESaiM4sJE1jAtgMwIBezZe 8cSdTtoalLHfgFLPVAUTpk5mY9EhFGmK2Ee9A3T+PdxujCDpOBy+OGF3N79U9qGX8hK2G2fo XrL5T/RCRAGLt2PjzGC9xpAg8eWxXOnBttCROXQGvhCnBqBwm02AkEsRFaVnviHq0SkZftbN BlBksYphe1onKCxdfH/VRClpH+PvjYHRsFdVeY97Wml1a788wufQG8eQVZpeNEg8cM7WzEu/ luIhM/yQyxitqWPTnCQ/avSqim9URX5NkcHbC4ACA4aud/qpdhrigqVF44zVqmoktfyBDf8h SiQqzQzjKkSishN0Lin+VfAgHSnoZ2hohMJ2zg7l1mNtmtRDLNJraTzgbQHxZ6s9Lqkc2Q=
  • Ironport-hdrordr: A9a23:SP+JIarlMhcYmziL5b4VEfoaV5rbeYIsimQD101hICG9Evb0qy nOpoV+6faQslwssR4b9uxoVJPvfZq+z+8R3WByB8bAYOCOggLBQL2Ki7GC/9SJIUbDH4VmpM VdmsZFaOEYdmIK6voT4GODYqodKNvsytHWuQ8JpU0dMz2DaMtbnnZE4h7wKDwReOHfb6BJbq Z14KB81kOdUEVSVOuXLF8fUdPOotXa/aiWHCLvV3YcmXGzZSrD0s+ALySl
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 09/05/2023 3:24 pm, Jan Beulich wrote:
> On 09.05.2023 16:03, Andrew Cooper wrote:
>> On 08/05/2023 8:45 am, Jan Beulich wrote:
>>> On 04.05.2023 21:39, Andrew Cooper wrote:
>>>> When adding new words to a featureset, there is a reasonable amount of
>>>> boilerplate and it is preforable to split the addition into multiple 
>>>> patches.
>>>>
>>>> GCC 12 spotted a real (transient) error which occurs when splitting 
>>>> additions
>>>> like this.  Right now, FEATURESET_NR_ENTRIES is dynamically generated from 
>>>> the
>>>> highest numeric XEN_CPUFEATURE() value, and can be less than what the
>>>> FEATURESET_* constants suggest the length of a featureset bitmap ought to 
>>>> be.
>>>>
>>>> This causes the policy <-> featureset converters to genuinely access
>>>> out-of-bounds on the featureset array.
>>>>
>>>> Rework X86_NR_FEAT to be related to FEATURESET_* alone, allowing it
>>>> specifically to grow larger than FEATURESET_NR_ENTRIES.
>>>>
>>>> Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
>>> While, like you, I could live with the previous patch even if I don't
>>> particularly like it, I'm not convinced of the route you take here.
>> It's the route you tentatively agreed to in
>> https://lore.kernel.org/xen-devel/a282c338-98ab-6c3f-314b-267a5a82bad1@xxxxxxxx/
> Right. Yet I deliberately said "may be the best" there, as something
> better might turn up. And getting the two numbers to always agree, as
> suggested, might end up being better.

Then don't write "yes" if what you actually mean is "I'd prefer a
different option if possible", which is a "no".

I cannot read your mind, and we both know I do not have time to waste on
this task.

And now I have to go and spend yet more time doing it differently.

~Andrew



 


Rackspace

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