opnsense-src/sys/dev/hyperv/vmbus
Zhenlei Huang 1969d82fcf Hyper-V: vmbus: Add NULL check for vmbus_res
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:		e7a9817b8d32 Hyper-V: vmbus: implementat bus_get_dma_tag in vmbus
Insta-MFC approved by:	re (delphij) for 14.0-RC4
Differential Revision:	https://reviews.freebsd.org/D42414

(cherry picked from commit 63bf943d4af17799cef21e2bb78dd28003ce1ce5)
2023-11-02 17:10:03 +08:00
..
aarch64 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
amd64 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
x86 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
hyperv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
hyperv_busdma.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
hyperv_common_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
hyperv_var.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmbus.c Hyper-V: vmbus: Add NULL check for vmbus_res 2023-11-02 17:10:03 +08:00
vmbus_br.c Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read 2023-10-20 10:03:35 +00:00
vmbus_brvar.h Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read 2023-10-20 10:03:35 +00:00
vmbus_chan.c Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read 2023-10-20 10:03:35 +00:00
vmbus_chanvar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmbus_et.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmbus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
vmbus_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vmbus_res.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vmbus_var.h Hyper-V: vmbus: implementat bus_get_dma_tag in vmbus 2023-09-18 10:26:59 +00:00
vmbus_xact.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00