Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2024 15:25:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 277326] FreeBSD guest on QEMU with Hyper-V enlightenment on is no longer able to detect Hyper-V devices
Message-ID:  <bug-277326-27103-uvfCrQ9kN1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277326-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277326-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277326

--- Comment #5 from Zhenlei Huang <zlei@FreeBSD.org> ---
(In reply to Zhenlei Huang from comment #4)
> I see lots of comparing of vm_guest in hyperv device drivers. I guess the=
y should be removed to correctly probe Hyper-V devices, to correctly suppor=
t Hyper-V enlightenment feature.

In case KVM should be reported when Hyper-V enlightenmen is enabled.

# grep -r 'VM_GUEST_HV' sys/dev/hyperv
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c:        if (vm_guest =3D=3D
VM_GUEST_HV) {
sys/dev/hyperv/vmbus/vmbus.c:   if (device_get_unit(parent) !=3D 0 || vm_gu=
est !=3D
VM_GUEST_HV ||
sys/dev/hyperv/vmbus/vmbus.c:   if (device_get_unit(dev) !=3D 0 || vm_guest=
 !=3D
VM_GUEST_HV ||
sys/dev/hyperv/vmbus/vmbus.c:   if (vm_guest !=3D VM_GUEST_HV || sc =3D=3D =
NULL)
sys/dev/hyperv/vmbus/hyperv.c:          if (vm_guest =3D=3D VM_GUEST_HV)
sys/dev/hyperv/vmbus/hyperv.c:  if (vm_guest !=3D VM_GUEST_HV)
sys/dev/hyperv/vmbus/vmbus_res.c:       if (device_get_unit(dev) !=3D 0 ||
vm_guest !=3D VM_GUEST_HV ||
sys/dev/hyperv/vmbus/x86/hyperv_x86.c:  if (vm_guest !=3D VM_GUEST_HV)
sys/dev/hyperv/vmbus/aarch64/hyperv_aarch64.c:  vm_guest =3D VM_GUEST_HV;
sys/dev/hyperv/hvsock/hv_sock.c:        if (vm_guest !=3D VM_GUEST_HV)
sys/dev/hyperv/netvsc/if_hn.c:  if (vm_guest !=3D VM_GUEST_HV)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277326-27103-uvfCrQ9kN1>