bhyve Bhyve finally got nested virtualization.

Charlie_ Your link is a legit work done by developer.


It's vibe coding ; and being here since 2009 I can confidently say you have no idea what's implemented, the output from AI "just works".

This is a fallacious line of reasoning. You're stuck with the old way of programming and you have some problems understanding how the new one works. Or you understand it, you refuse to adopt it for reasons that have nothing to do with technical motivations. With AI, what matters most is how well the user can explain to the AI what it wants to do and consistently follow it to prevent it from taking unwanted paths. How you do it, ultimately, is secondary. If you're able to meta-communicate with the AI, asking the right questions at the right times, the AI will do what you want. I'd therefore say that true programming shifts from knowing how to program classically to knowing how to develop effective ways in your own head to ask the right questions and, more generally, to design projects that can take into account the multiple aspects of what you want to do. And to do this, you don't strictly need to know how to program classically, but you do need to have non-trivial meta-cognition skills. So saying I'm not a programmer, therefore I don't know what I did, is a mistake. Because since it works, it means I was able to program that thing effectively enough. Could it have been done differently? Yes. There's nothing stopping you from asking the AI to do it in a different manner. Just build another project, always using the language humans use. And then, what if it contains bugs ? You can use the AI to fix them. I think it no longer makes sense to go and read what the AI did line by line. The tool's operation is controlled by communicating with the AI in natural language,so it's enough to use your reasoning quality to program.
 
There are now KASAN and KMSAN builds of the kernel, with the nested vmm module, ready to download.

Where to find them :

- The built kernels: https://github.com/Marietto2008/bhyve-nested-strumenti/releases/tag/nested-sanitizers-v1

- kernel.nested-kasan.tar.xz (67 MB): the KASAN kernel with all its modules, including vmm-restore.ko built with KASAN.

- kernel.nested-kmsan.tar.xz (118 MB): the same for KMSAN.

- SHA256SUMS: check it with sha256sum -c SHA256SUMS before using anything.

- The source and configuration they were built from: Marietto2008/freebsd-src, branch vmm-nested-16, commit 4b0bf9c0660a.

- sys/amd64/conf/NESTED-KASAN and NESTED-KMSAN: GENERIC plus options KASAN / options KMSAN, nothing else.

- tools/nested/build-sanitizer.sh: builds both from the same commit, so you don't have to trust my binaries.

How they are meant to be used :

Not on your host. Use them in a FreeBSD 16-CURRs the L1 hypervisor:

- unpack the archive into /boot;

- boot it once with nextboot -k kernel.nested-k

- inside it, run an L2 guest that uses VMX: the kvm-unit-tests VMX tests (branch bhyve-nested) or the L2 kernel of kit/smoke-test.sh.

Every VMX instruction the L2 executes then goesr the sanitizer. A violation shows up as apanic, with a stack, on the console.

Status :

Built on 2026-11-28 and not booted yet: my own runs come next, and I'll post the results in the release notes. If you get there first, even better.

This is experimental code, tested on one machinand SECURITY.md in the repository before running it.

What I'm asking for :

If you run them and get a KASAN or KMSAN report, please open an issue with:

- the full console text of the report;

- the output of kit/host-manifest.sh;

- the commit hash.

A report with a stack is worth more than "it works for me".
 
Back
Top