mirror of
https://github.com/opnsense/src.git
synced 2026-07-04 06:45:57 -04:00
QEMU emulates Hyper-V [1] but lacks the emulation for vmbus_res, thus no
coherence information is available. Add NULL check for it and fallback
to no coherence. This will prevent FreeBSD guests from panic on QEMU
with the Hyper-V enlightenment hv-synic enabled.
For real Hyper-V, both gen1 and gen2 have vmbus_res then they are not
affected by this change.
1. https://www.qemu.org/docs/master/system/i386/hyperv.html
PR: 274810
Reviewed by: mhorne, emaste, delphij, whu
Diagnosed by: mhorne
Fixes:
|
||
|---|---|---|
| .. | ||
| aarch64 | ||
| amd64 | ||
| i386 | ||
| x86 | ||
| hyperv.c | ||
| hyperv_busdma.c | ||
| hyperv_common_reg.h | ||
| hyperv_var.h | ||
| vmbus.c | ||
| vmbus_br.c | ||
| vmbus_brvar.h | ||
| vmbus_chan.c | ||
| vmbus_chanvar.h | ||
| vmbus_et.c | ||
| vmbus_if.m | ||
| vmbus_reg.h | ||
| vmbus_res.c | ||
| vmbus_var.h | ||
| vmbus_xact.c | ||