Re: Bhyve finally got nested virtualization.

From: Eva_Winterschön <freebsd-virt.eva_at_winterschon.com>
Date: Wed, 18 Nov 2026 17:11:54 UTC
Reverse engineering the KeelOS EFI binary took about six minutes, probably less - I had to get some ice cream from the kitchen as a first priority. It wasn't necessary to use my airgapped GPU infra in the home office to do so, and I didn't need a corporate LLM to poke at the stack traces and breakpoints to fix the various errors. 

Engineering low level software by hand, before a credit card bought monthly plans from a token casino, remains the best way to learn about the subject. That's engineering. LLMs, VLMs, CNNs, etc have their place in the machine learning world of Open Source and most of the research is done in the open, stolen via zero-attribution, and profiteered into the pockets of the those who know not the first things about how transformers or MoE, or the most basic neural networks function.

I stopped my systems architect interview cycle mid-stream at Anthropic back in February or March partially for that reason: ethical use of technology is paramount over profit. 

Enabling trillion dollar circular economies to engage in gross-scale fiat-based knowledge acquisition and knowledge silo'ing is Microsoft territory; it has no place in open source innovation, and serves only to further displace the community of those whose shoulders and minds upon which our foundations have been built. 

Anthropic is not an ethical company, nor OAI similarly. Meta has at least shifted the course of this industry into a positive direction; as has Google Deepmind, and the oft-unspoken giant in the corner: IBM.

So, here we find, yet again a divergence of intention vs education, assumption vs historical awareness. 

Choose wisely.

EMW



On Wed, Nov 18, 2026, at 12:46, Wanpeng Qian wrote:
> On Wed, 18 Nov 2026 07:17:16 UTC, Michael Dexter wrote:
>> None the less, people want this functionality.
>>
>> Please post a review!
>
> Here are two:
>
> https://www.google.com/url?q=https://reviews.freebsd.org/D61708&source=gmail&ust=1795085160684000&sa=E 
> vmm: Add nested virtualization for Intel CPUs
> https://www.google.com/url?q=https://reviews.freebsd.org/D61709&source=gmail&ust=1795085160684000&sa=E 
> vmm: Emulate VMREAD and VMWRITE without leaving vmx_run()
>
> This is a different piece of work from the one that started this thread.
>
> What it is: the smallest nested VMX that runs a guest of a guest. Intel
> only, off unless the hw.vmm.vmx.nested tunable is set. The guest (L1)
> gets plain VMX without EPT, so it runs its own guests on shadow page
> tables. That is enough for Linux/KVM as L1; bhyve and Hyper-V as L1 need
> EPT and do not work yet. The first review is about 1700 lines, most of
> them in one new file.
>
> Where it comes from: keelOS, a hypervisor appliance that I build on
> FreeBSD and bhyve, has had nested VMX since October, with EPT for L1,
> VMCS shadowing and Hyper-V as L1. Its vmm.ko sits on top of a small
> hypervisor of its own, so that code cannot be moved to FreeBSD as it is.
> The review is a new implementation of the first stage for stock vmm.ko.
> If this is wanted, the later stages can follow as separate reviews of
> the same kind.
>
> Since it was asked in this thread: yes, it was written with an AI
> assistant (Claude), under my direction, and the review says so. It was
> compared with the SDM section by section, and the comments name the
> sections.
>
> Tests: on bare metal (Xeon Silver 4110), Debian 13 with KVM as L1 boots
> Linux guests with one and two vCPUs to userland, two of them at the same
> time, and runs a fork+exec load in them. The test plan in D61708 has the
> details and a "How to try it" section with the commands. It also says
> what has not been tested: the vmx tests of kvm-unit-tests do not run as
> a bhyve guest without work, and I have not done that work yet.
>
> I would like to hear what tests you want to see before this could go
> in, and from anyone who tries it on other hardware.
>
> Wanpeng Qian
>
> On Wed, Nov 18, 2026 04:17 PM, Michael Dexter <editor@callfortesting.org> wrote:
>> None the less, people want this functionality.
>> 
>> Please post a review!
>> 
>> Michael
>> 
>> On Tue, Nov 17, 2026 at 10:54 PM Michael Dexter <editor@callfortesting.org> wrote:
>>> On 11/17/26 3:01 PM, Aryeh Friedman wrote:
>>> > That has been doable for years (see the site in my signature)
>>> 
>>> I tried to, but your SSL certificate appears to be expired.
>>> 
>>> Issued On       Monday, March 23, 2026 at 12:48:43 PM
>>> Expires On      Sunday, June 21, 2026 at 12:48:42 PM
>>> 
>>> This makes for four, sorry fifth possibly-LLM-generated nested bhyve 
>>> projects to date and if I recall correctly, none of them have been 
>>> proposed as reviewable reviews. bhyve already operates in delicate 
>>> territory on delicate hardware, and a workable nested bhvye project 
>>> needs to be extremely concise and include a comprehensive test suite. 
>>> One of the five efforts purports to have many tests but even then the 
>>> author is not confident in it. Share your code, share your tests, and 
>>> above all collaborate.
>>> 
>>> Point of order: bhyve is a part of FreeBSD and is upstream to many 
>>> projects such as yours. This is a FreeBSD mailing list. May I humbly 
>>> suggest that you discuss upstream FreeBSD virtualization on it?
>>> 
>>> Michael