Problem applying a patch for vmm.ko

I try to apply to a 12.0-RELEASE this patch. This is related to these threads:


So I apply the patch for /usr/src/sys/amd64/vmm/intel/vtd.c. Then I compile & install with make && make install. So far, so good.

First thing: the new vmm.ko is installed in /boot/modules/ not in /boot/kernel/ where lies its predecessor. Second thing: the size of the modules are very different for a so small patch:
Old vmm.ko: 416328 bytes.
New vmm.ko: 345384 bytes.

Last thing: I copied new vmm.ko in /boot/kernel, then I rebooted but the behaviour of bhyve remains inchanged: try to passthru a network card and get crash of the whole system a few time after the VM has started (with the same messages as reported in the aforementioned threads).

Where is/are my mistake(s)?
 
As I suspected, to make things correctly, the entire kernel has to be compiled. Seems that it lacks an operation on certain kernel modules if you compile them separatly.

Alas, it didn't solve my problem and I realised that the road is long before to achieve my goal (run pfsense in bhyve).
 
Back
Top