Re: Bhyve finally got nested virtualization.
- In reply to: Eva_Winterschön : "Re: Bhyve finally got nested virtualization."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Nov 2026 06:34:29 UTC
What I published so far was a working diary, not something another person can rebuild from. So here is a small kit: https://github.com/Marietto2008/bhyve-nested-strumenti/tree/main/kit - **host-manifest.sh** records CPU, microcode revision, board, BIOS, VMX capability MSRs, kernel, and the hashes of the vmm module, bhyve and QEMU, so results from different machines can be compared. - **smoke-test.sh** is one command. It boots the official FreeBSD 15.1 cloud image as an L1 with nesting, checks that the L1 can use VMX, boots an L2 kernel inside it, runs the benchmark, and prints PASS/FAIL. On my machine it ends with ALL PASSED. - **README.md** lists the exact branches and commits and how to build and load the module. - **KNOWN-ISSUES.md** says up front what still fails. If you try it, please attach the manifest and the smoke-test output. For the record, my host is consumer hardware: an i9-9900K on a Gigabyte Z390 AORUS PRO, BIOS F12g (2020), running FreeBSD 16-CURRENT. The CPU has VMCS shadowing but no APICv and no posted interrupts, and that shapes the results below. **On AI use, since that is what the policy discussion is about.** Code, the test scripts and the performance report were produced with Claude 5.5 with the help of Astra 6. Design reviews during development were also done by AI models, not by people. KVM (GPL) was studied for its behaviour, never copied. Commits carry a "Co-Authored-By: Claude" line. Nothing here has had independent human review yet, and I'd welcome it. **The three performance findings worth attention** (same static benchmark binary at every level): 1. One level of bhyve is essentially free. A FreeBSD or Ubuntu guest runs CPU-bound code, fork/exec and memcpy at host speed, and exposing VMX to the guest costs nothing measurable. 2. In every nested (L2) setup the dominant cost is waking another CPU. A pipe round trip between two CPUs takes 3.8 µs on the host and 1–1.9 ms in the L2, whether the L1 hypervisor is bhyve, KVM or Hyper-V/WSL2. Without APICv every IPI goes through L0. This is the first thing to fix. 3. The L1 hypervisor matters more than bhyve underneath. With the same FreeBSD 15.1 L2 image, first-touch page faults are 4× slower than on the host under KVM, but 71× slower under bhyve (EPT violations resolved across two levels). That is the second target. From here on I'll post one item at a time, when there is something new, instead of long reports. Raw data and scripts are in kit/full-report/. Mario. On Wed, Nov 18, 2026 at 9:46 PM Eva Winterschön < freebsd-virt.eva@winterschon.com> wrote: > Polarian, > > As I sit here on an Airbnb couch in Tel Aviv, awaiting patient scheduling > details for treatment one of the most advanced proton therapy systems ever > designed, machines which not simply use Ai technology but require it to > save lives, I wholeheartedly agree with 100% of your positions on the > statements you've thus far shared. > > Irrespective from my stance on the ethics of specific corporate influence > at specific Ai companies back home in Sunnyvale, I resigned on January 2nd > from Cerebras Systems where I was their first and only SMTS storage > architect for the Wafer-Scale Inference Engine. This company, for whatever > flaws it may have internally to certain teams or policies, was a > gravitational pull in my career strictly because of their Ai clusters being > used for advanced medical research which would otherwise be impossible > without such technology. This type of applied Ai engineering requires > rigorous attention to detail and absolute awareness to the laws of physics. > > Perhaps there is a problematic disconnect occuring in the Freebsd > community; those who choose to use tools made by teams of overwhelmed and > stressed engineering teams, overworked friends I've been on teams with for > decades prior, forced into compromised decision-paths rolling live A/B > testing against their own paying customers, all cranked out on three month > development timelines which lack full code-coverage automated testing; > running on platforms which are not designed for high-reliability, > repeatability, and which lack consistency of insight into how the remote > platforms are executing disjointed workflows incapable of > trace-auditability, and cannot pass compliance regulations... > > Then there are those who do not trust the unknowable, who question where > the training datasets originated, and are not interested to blast out as > much change as quickly as possible simply for the sake of "bigger number > better". > > The trend towards contentedness to develop on potentially unpatched > hardware, untracked firmware versions, undocumented bios settings, consumer > grade equipment, and rely on zero-automation manual tests which then demand > from others to request code fragments to execute on entirely different > types of hardware from varying eras of equipment which cannot be > consistently replicated in corpus, nor back-traced by anyone other than > themselves.. > > Of course there will be systemic confusion, disgruntled pushback, and > general questioning of purpose. Quality does not come quickly or easily - > it reaches maturity through consensus, trust, and core principles shared in > advance. > > This will not be resolved soon, but I explicitly agree that the freebsd > community requires an LLM policy of rational excellence; because the right > tools can improve all our lives, if only those tools fit the need. > > EMW > > > > On Wed, Nov 18, 2026, at 21:23, Polarian wrote: > > Hey, > > > > I am not a dev just someone who follows the mailing list. > > > > I can think of nothing more outrageous than prompting claude to generate > > a f*cking thesis, and then telling a busy developer that because its so > > long that its made your email unreadable, here is a text file for you to > > read through because you can't be bothered to do any work yourself. > > > > This is why FreeBSD urgently needs an AI policy, and at the bare > > minimum, a complete ban on AI generated emails, and documentation. Its > > an insult to any human who needs to read it. > > > > There is a complete disregard for standards, and properly testing code > > which if broke, could take out businesses infrastructure, in turn losing > > faith in bhyve and FreeBSD as a whole. > > > > At most claude is a tool, but even then I don't believe it is, it is not > > a silver bullet or a replacement for proper testing and review, and > > getting claude to spit out garbage and then posting it to a mailing list > > is IMO spam and should result in moderation. > > > > Take care, > > -- > > Polarian > > Website: https://polarian.dev > > Jabber/XMPP: polarian@icebound.dev > > -- Mario.