[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN PATCH][for-4.19 v4 1/8] xen/include: add macro ISOLATE_LOW_BIT
- To: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 9 Nov 2023 08:18:34 +0100
- 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=iHMegOyc5KC6FzEYtcVAiM5rl9M+ifYbRtz7GxTXUQw=; b=dtwfLDtl41ITMyvAHJT+JQwSf7WmuKBxiP9sbvJwXOWYYeG63KTwYpPxa4cOw3o/7T/A1oNsmRziPfzsXaPlylfmulE1CSzK+cCWmCzr4UN6Wzqz9tay+NRuzgN7jXuYw/fS+xatU+KRCCAwU1vQICOop+HQuepqd3B/2UZlFJewnp3HNvy48yeFz6GG1PRP0bm1jrWlzOsgC1ZkT+tzbahgTZzC2UAEocJfkkYkhAb1Mr6KhVqX1w6ifMxWSP7uSsG3qOkr96MRS4vu4CGdvNCRbl4Hkeh18NqhKZ7aBppIrMLjJKNfU/bLJoyOOJse99ZoDnl5ThAvuAWqlXIn3A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dxYmXNhQXrCJAMc+prRvuQUDyqZo0uoVhi5Z7lJz2HVBjtQ4sbqtTSe17w5wQ1EgqqhFg0ouCbGrgfb3osId8hpRa/nt66HGPTDJz2dicAlCH57XDJS2+aJcM2cOZXKwWcS5+N8gMG9qnRxPk7FdMr6+bbtP8LXIW+pm9ivNX5bHK0judHYH5b7bfyl7gvcDbceoxedfGyS19SfXhzP1A1dnct9gZ0pMzbC0A5px5TfgfpITi50Ct96NndleKmarleFjqWIJJ8rV5lPcyBkZL8Xga3uuM5Fchk3ayFjv9/vaTmibnZrrAs5fxNcgMSIwpZrONeoOQz0t1mfwcEThGA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: michal.orzel@xxxxxxx, xenia.ragiadakou@xxxxxxx, ayan.kumar.halder@xxxxxxx, consulting@xxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, roger.pau@xxxxxxxxxx, Simone Ballarin <simone.ballarin@xxxxxxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 09 Nov 2023 07:19:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 31.10.2023 08:43, Jan Beulich wrote:
> What I would consider scope creep I
> specifically didn't even ask for: I'd like this macro to be overridable
> by an arch. Specifically (see my earlier naming hint) I'd like to use
> x86's BMI insn BLSI in the context of "x86: allow Kconfig control over
> psABI level", when ABI v2 or higher is in use.
Actually I need to withdraw that. It meanwhile occurred to me that the
compiler ought to recognize this pattern. And indeed gcc doesn't even
have a builtin for it; its BMI intrinsic for BLSI (on x86 that is)
specifically expands to x & -x, which the backend then is expected to
deal with as appropriate. And indeed it can be observed to, with my
"x86: allow Kconfig control over psABI level" in place.
Just as a reminder: I'd still like to see the further renaming done
(to ISOLATE_LSB()). If I was to commit this patch, I'd be fine doing
so while committing.
Jan
|