If we ported to macOS would these patches be accepted?

44 views
Skip to first unread message

Eric Curtin

unread,
Feb 9, 2026, 12:39:46 PM (13 days ago) Feb 9
to crosvm-dev
I think crosvm would be very interesting on macOS for Android and other Linux distro VMs.

Just wondering if those patches would be entertained.

Zihan Chen

unread,
Feb 9, 2026, 12:44:30 PM (13 days ago) Feb 9
to Eric Curtin, crosvm-dev
Hi Eric,

We would very much welcome a set of patches to enable macOS support. 

On Mon, Feb 9, 2026 at 12:39 PM Eric Curtin <ericcu...@gmail.com> wrote:
I think crosvm would be very interesting on macOS for Android and other Linux distro VMs.

Just wondering if those patches would be entertained.

--
You received this message because you are subscribed to the Google Groups "crosvm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crosvm-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/crosvm-dev/0d2a4bc9-51bb-4bec-9ac0-765d5076efa5n%40chromium.org.

Dylan Reid

unread,
Feb 9, 2026, 1:48:31 PM (13 days ago) Feb 9
to Zihan Chen, Eric Curtin, crosvm-dev
I have some AI slop, err, "claude assisted changes" that boot to a running init on an M4 MBP. I can try to clean them up and share as a starting point, if you're looking to pick this up more officially.

Eric Curtin

unread,
Feb 9, 2026, 2:36:14 PM (13 days ago) Feb 9
to Dylan Reid, Zihan Chen, crosvm-dev
If I knew those existed. I would have considered just cleaning those
up. I have a little domain knowledge from using libkrun for a year or
two, so kinda relying on that. But I'm a bit deep into my own
implementation now.

Is mise le meas/Regards,

Eric Curtin

Manish Bhatt

unread,
Feb 9, 2026, 6:10:47 PM (13 days ago) Feb 9
to Eric Curtin, Dylan Reid, Zihan Chen, crosvm-dev
Happy to help un-slopify the patches if needed. 

Dylan Reid

unread,
Feb 10, 2026, 2:50:00 AM (12 days ago) Feb 10
to Manish Bhatt, Eric Curtin, Zihan Chen, crosvm-dev
These didn't exist until this past weekend. I'll try to get them cleaned up this weekend and post them in case anyone wants to take a look. My interest was to explore AI development on a familiar code base. I didn't put a lot of thought into it, but having crosvm finally work on my mac is pretty nice:)

Dylan Reid

unread,
Feb 14, 2026, 1:27:44 AM (8 days ago) Feb 14
to Manish Bhatt, Eric Curtin, Zihan Chen, crosvm-dev, dgr...@meta.com
https://github.com/dgreid/crosvm/tree/topic/macos

This boots to a shell. That's all the testing I have done. I'd tackle network next, then GPU/display, but I won't have time.

Disclaimers:
- Claude did a lot of the heavy lifting here.
- I've been away from crosvm for a few years and am rusty.
- I've never looked at macos code before.

With all that said, I think it's a reasonable base to work from if someone is motivated to finish the port.

Keiichi Watanabe

unread,
Feb 14, 2026, 3:01:00 AM (8 days ago) Feb 14
to Dylan Reid, Manish Bhatt, Eric Curtin, Zihan Chen, crosvm-dev, dgr...@meta.com
Hi Dylan,

That's awesome!

How did you build the guest kernel? I tried your branch on my M4 macbook with a prebuilt bzImage used in crosvm's tests,  it got stuck after printing a few logs:
INFO  crosvm::crosvm::sys::macos] Starting VM on macOS with Hypervisor.framework
INFO  crosvm::crosvm::sys::macos] VM configuration: memory=512MB, vcpus=1
INFO  crosvm::crosvm::sys::macos] HVF GIC distributor size: 0x10000
INFO  crosvm::crosvm::sys::macos] HVF GIC redistributor size (per CPU): 0x20000
INFO  crosvm::crosvm::sys::macos] HVF GIC redistributor region size: 0x2000000
INFO  crosvm::crosvm::sys::macos] Using userspace GIC (in-kernel GIC disabled)
INFO  crosvm::crosvm::sys::macos] Kernel loaded at 0x80000000, entry=0x80000000, size=9122304
INFO  crosvm::crosvm::sys::macos] Starting VM execution with 1 VCPUs
INFO  crosvm::crosvm::sys::macos] VCPU 0 starting
INFO  crosvm::crosvm::sys::macos] SMCCC: Saving X4=0x0 before PSCI handling
INFO  crosvm::crosvm::sys::macos] PSCI call: function_id=0x84000000, X1=0x0, X2=0x0, X3=0x0
INFO  crosvm::crosvm::sys::macos] PSCI VERSION called, returning 1.1
Best,
Keiichi


Dylan Reid

unread,
Feb 14, 2026, 12:03:10 PM (8 days ago) Feb 14
to Keiichi Watanabe, Manish Bhatt, Eric Curtin, Zihan Chen, crosvm-dev
Hi Keiichi,

Ah sorry I forgot. I bet that's because the kernel needs 16k pages to run on m4.

I built 192c0159402e with the attached config. But I bet the key one is setting ARM64_16K_PAGES.

Let me know if that helps.

From: Keiichi Watanabe <keii...@google.com>
Sent: Saturday, February 14, 2026 12:00 AM
To: Dylan Reid <dy...@rivosinc.com>
Cc: Manish Bhatt <manish.b...@gmail.com>; Eric Curtin <ericcu...@gmail.com>; Zihan Chen <ziha...@google.com>; crosvm-dev <crosv...@chromium.org>; Dylan Reid <dgr...@meta.com>
Subject: Re: If we ported to macOS would these patches be accepted?
 
crosvmm4.kernel.config

Eric Curtin

unread,
Feb 16, 2026, 7:38:42 PM (6 days ago) Feb 16
to crosvm-dev, Dylan Reid, Manish Bhatt, Eric Curtin, Zihan Chen, crosvm-dev, Keiichi Watanabe
I have a patch here that boots 4k and 16k kernels. But I am going to
pause all efforts until we decide with patch to base things on, to
avoid duplicate effort:

https://github.com/ericcurtin/crosvm/pull/1

Eric Curtin

unread,
Feb 16, 2026, 7:38:42 PM (6 days ago) Feb 16
to Manish Bhatt, Dylan Reid, Keiichi Watanabe, Zihan Chen, crosvm-dev
If the implementation is best you'd be able to run either 16k or 4k kernels. libkrun/krunkit is a great reference implementation FWIW.

Is mise le meas/Regards,

Eric Curtin


On Sat, 14 Feb 2026, 19:37 Manish Bhatt, <manish.b...@gmail.com> wrote:
I’ll check it out next week. 

Manish Bhatt

unread,
Feb 16, 2026, 7:38:43 PM (6 days ago) Feb 16
to Dylan Reid, Keiichi Watanabe, Eric Curtin, Zihan Chen, crosvm-dev
I’ll check it out next week. 

On Sat, Feb 14, 2026 at 1:48 AM Dylan Reid <dgr...@meta.com> wrote:

Eric Curtin

unread,
Feb 16, 2026, 7:38:43 PM (6 days ago) Feb 16
to Manish Bhatt, Dylan Reid, Keiichi Watanabe, Zihan Chen, crosvm-dev
I have a patch here that boots 4k and 16k kernels. But I am going to
pause all efforts until we decide with patch to base things on, to
avoid duplicate effort:

https://github.com/ericcurtin/crosvm/pull/1

Is mise le meas/Regards,

Eric Curtin

Keiichi Watanabe

unread,
Feb 20, 2026, 5:07:12 PM (2 days ago) Feb 20
to Eric Curtin, crosvm-dev, Dylan Reid, Manish Bhatt, Zihan Chen
Hi Dylan, Eric,

Thank you both for your efforts on this.

Eric, thank you for creating a CL at https://crrev.com/c/7581597. I added some comments there.
If you are interested in leading this and contributing patches to the mainline, I’d be more than happy to review them. It would be great to see the review process through to completion and get macOS support landed.

Dylan, thank you for sharing your prototype. It’s a great reference for us as we move forward. Since you mentioned you won't have time to finish the port, we will definitely look at your work as a valuable resource.

Best regards,
Keiichi

Reply all
Reply to author
Forward
0 new messages