[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] xen: Add macOS hypervisor build configuration
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Thu, 5 Feb 2026 15:58:34 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=suse.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=JOQgdT734tyaQvnJPnVFeWkvKvV03eRV5SqxeUCQ0fA=; b=DjjV7ONdNZQcDx+dHTdcuHf/MPjiVKj3d+1MTftdqEUmmKkCB3YLaiU9zvJgWOU3zdMpsGzyvF+GMXIGk94Uf2eyhNcuDzIM85c/MXqSZDq6ZEYoagZ9obwCSWM8QFc4bzNHDXWuQ+nM/r/bPwKu/BdNv0EK5xF8lpItpzKUkSWCrtVhk+XTq9nojXtEgOzBIV9CQGeXDrzlqUK3UtrTPMEsqx4raqq6Af8TkhUqZ7wNnRqf0/RJdG0UVGYCPnBk55OPuOx+IqM7lAPdp3AaFMl20hevtXinSzhALD4Y4vPkOCydKkQ8/9P8YFgCm/F+pFVKtOQg6DOKYmRNiBD3XA==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=JOQgdT734tyaQvnJPnVFeWkvKvV03eRV5SqxeUCQ0fA=; b=Vy+kzToZWJzNtt3+S5HL6cj9jJ7XrgZFLwsvRCIHenb6x3qiTClSusseHp5bKFcMWGsA7KleCACjX6RMOWgDG8A8UBDbYgQndWBOKdxf748q5cQb5sJVr+SDpyKTiEhcC3h9+jJAKVgJE+B8X4LTg8CxpW3l2tFM9hvQBUauacoJ3hPghR/8FPJwmj1Sic4ACLr3Wt2LROGrsBg6q+7cRrHw6mH6Qyyd/et4b5BetlfmdkQV1nWnvyeMVhtNdQLUh/kbWhdOQSFnkkaG69E2YIvGYmSiNAJk49HNqDCZuxdRoTa3XNtN3aqaUEcD0LNDgaQtmfsNw0TT7IA+DdsBDA==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=rxCQXKCaXeYMpYnBAWV/Jg6g/USJl6GoaI6xOssFsBfiQBNjXFpPGbBBc74UzU1myTgA7tw1t3qMnFIEeFfPxHhscZe3MDNyLbN7+twQGTuP9RxBv8OIE5fiuqrLykW6IEP/D3QvMuY/4UjplE2g3ThsO3D5CdrYnfi1fydWIIHJ2FB1lKPSaOZK+jEtrotx9mFRLpck7+Z4SMya8rnzj3YBWsfdglzJuZaiR4WqCohQSx7NpZ71+eq3VA9XixSTqKdisWFIXsfZmGoKfuhlGFxxrwgbRezlqms8WYPh5eXha4criYdqH8zUFCQypA3LU7tAcMXsceHcptkB+xE/dg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uIC9C36/kaeGMc66zc8rhi3SeWNF6aKGHS7Kpbnjj/2TUd+iLAThboGAliEI1MrdJiqbATDi5UJJLF/vYEcJIUix7U/m41nWYPaWfhXwAcIO2Yf4TV6gNTJwMHkL6JXyZbyXcERlJ0arDt1TCMuMti82OTE+qzngzN7pWQoMnHNbc2sjH1M2g3v46hhfe1p7omtxTUJpFxNX0mjWKHC+m5zZc4tL2NolfQwAfE4vAHFI5l/a8/2ggiuEwg7TA4zDDPrY1bIZN50ySXB3weGYHnaKd7VXKMyt43VmR0eUV1LDMD7WFYIPBM6/+4AiuXwxJG2mV8rTHfJsQV2BZ04b7A==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 05 Feb 2026 16:00:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Thread-index: AQHclpNk83RtAc43+U+zvyNqPofiH7V0CQWAgAAyjwCAAAOggIAABCkA
- Thread-topic: [PATCH v2] xen: Add macOS hypervisor build configuration
Hi Jan,
> On 5 Feb 2026, at 16:43, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>
> On 05.02.2026 16:30, Bertrand Marquis wrote:
>>> On 5 Feb 2026, at 13:29, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>>
>>> On 05.02.2026 12:33, Bertrand Marquis wrote:
>>>> Xen does not currently document how to build the hypervisor on macOS, and
>>>> there is no Darwin configuration for selecting a Homebrew-based GNU
>>>> toolchain. Native builds are not supported; the hypervisor must be
>>>> cross-built with a GNU toolchain and GNU make/sed.
>>>>
>>>> Add a minimal Darwin.mk which selects the GNU tool definitions used by
>>>> the macOS workflow and point to the build guide for required tools and
>>>> setup. Document the Homebrew cross toolchain and GNU tools needed to
>>>> build the hypervisor on macOS.
>>>>
>>>> Signed-off-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
>>>> ---
>>>> config/Darwin.mk | 6 ++++
>>>> docs/misc/build-on-macos.md | 66 +++++++++++++++++++++++++++++++++++++
>>>> 2 files changed, 72 insertions(+)
>>>> create mode 100644 config/Darwin.mk
>>>> create mode 100644 docs/misc/build-on-macos.md
>>>
>>> I'm sorry, I should have paid attention already on the RFC, but: With all
>>> other Pandoc files in this directory being named *.pandoc, do we really want
>>> to have an outlier named *.md there?
>>
>> Right but this might not be needed anymore as the only thing needed after
>> Roger's
>> patch is only a toolchain so brew is one solution but there are a lot of
>> others.
>
> Even better.
>
>>>> --- /dev/null
>>>> +++ b/config/Darwin.mk
>>>> @@ -0,0 +1,6 @@
>>>> +# Use GNU tool definitions; the macOS workflow relies on Homebrew GNU
>>>> tools.
>>>> +# See docs/misc/build-on-macos.md for required tools and setup.
>>>> +include $(XEN_ROOT)/config/StdGNU.mk
>>>
>>> Given Roger's consideration towards possibly using a more MacOS-native
>>> build arrangement as an alternative, I'm actually not quite sure this should
>>> then be the default mode here. Roger, what are your thoughts?
>>
>> Even with Mac OS sed and make working, something is still needed here to
>> compile on Mac OS.
>>
>> What would you suggest the default mode should be here ? Mac OS is not GNU
>> but everything used correspond to what is defined by StdGNU.mk.
>>
>> I am only forcing cross compilation here to prevent using the host toolchain.
>
> That part is okay with me.
>
>> What do you think i should put there instead ?
>
> Using StdGNU.mk may still be okay, as long as the comment properly represents
> the overall situation.
Agree.
What do you think of the following:
Use GNU tool definitions as the tools we are using are either GNU compatible
or we only use features which are supported on Mac OS.
Bertrand
|