OpenBSD-current 现已作为客户机在 Apple Hypervisor 上运行。
OpenBSD-current now runs as guest under Apple Hypervisor

原始链接: https://www.undeadly.org/cgi?action=article;sid=20260115203619

OpenBSD/arm64 现在可以在苹果的 Hypervisor 框架下作为客户操作系统运行,这得益于 Helg Bredow 和 Stefan Fritsch 的贡献。这些更新于 2026 年 1 月 12 日和 15 日提交,解决了关键的兼容性问题。 Bredow 的提交修复了一个虚拟 I/O GPU (viogpu) 映射错误,解决了在使用 X11 运行时出现的黑屏和内核崩溃问题。它还确保帧缓冲更新对主机系统可见。Fritsch 的工作为虚拟网络接口添加了最大传输单元 (MTU) 协商的支持,使 OpenBSD 的行为与 Linux 对齐,并提高了网络性能。 这些变化标志着 OpenBSD 在苹果 Silicon Mac 上的一个重要进步,鼓励拥有兼容硬件的用户测试该功能并提供反馈。预计这项开发将特别有利于使用较新的苹果 Silicon 型号的用户。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 OpenBSD-current 现在作为客户在 Apple Hypervisor 下运行 (undeadly.org) 9 点赞 gpi 20 分钟前 | 隐藏 | 过去 | 收藏 | 讨论 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系方式 搜索:
相关文章

原文

Contributed by Peter N. M. Hansteen on from the hyper-armed dept.

Following a recent series of commits by Helg Bredow (helg@) and Stefan Fritsch (sf@), OpenBSD/arm64 now works as a guest operating system under the Apple Hypervisor.

The commits read


List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       Helg Bredow <helg () cvs ! openbsd ! org>
Date:       2026-01-12 18:15:33


CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/01/12 11:15:33

Modified files:
	sys/dev/pv     : viogpu.c 

Log message:
viogpu_wsmmap() returns a kva but instead should return a physical
address via bus_dmamem_mmap(9). Without this, QEMU would only show a
black screen when starting X11. On the Apple Hypervisor, the kernel
would panic.

Also add calls to bus_dmamap_sync(9) before transferring the framebuffer
to host memory. It was working for me without this, but this ensures
that the host running on another CPU will see updates to the
framebuffer.

Thanks to kettenis@ for reviewing and providing feedback.

ok sf@

and


List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       Stefan Fritsch <sf () cvs ! openbsd ! org>
Date:       2026-01-15 9:06:19

CVSROOT:	/cvs
Module name:	src
Changes by:	[email protected]	2026/01/15 02:06:19

Modified files:
	sys/dev/pv     : if_vio.c 

Log message:
vio: Support MTU feature

Add support for the VIRTIO_NET_F_MTU which allows to get the hardmtu
from the hypervisor. Also set the current mtu to the same value. The
virtio standard is not clear if that is recommended, but Linux does
this, too.

Use ETHER_MAX_HARDMTU_LEN as upper hardmtu limit instead of MAXMCLBYTES,
as this seems to be more correct.

If the hypervisor requests a MTU larger than ETHER_MAX_HARDMTU_LEN,
redo feature negotiation without VIRTIO_NET_F_MTU.

With this commit, OpenBSD finally works on Apple Virtualization.

Input and testing from @helg

ok jan@

This development will be most welcome for those of us who run with newer Apple Silicon Mac models.

As always, if you have the hardware and the capacity, please take this for a spin (in snapshots now), and report!

联系我们 contact @ memedata.com