From nobody Tue Feb 27 15:25:08 2024 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkhBD4G2jz5Btr7 for ; Tue, 27 Feb 2024 15:25:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkhBD2dqDz4WtZ for ; Tue, 27 Feb 2024 15:25:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709047508; a=rsa-sha256; cv=none; b=oJqTPlwaLFh4cLQPI1NdpPn7zswOXuM0bJRBk/ql7Jkl/44R4DWUlNuwY87jbn6gzk2xI3 yrrHskHtkqP7Pmny1OiU4gwQDSdFcX93hWQMgmsj+GSz+j9R8I3QgUHjmGDh4fUUXqYDZv HK0DpfDz79lh1rhdH4D63sGGgMNuTr6wOH+DA8yI5XmQOune+oNCMM25i0B3hsFuIw5FRL SZ67claPit/9i8UGQ2ooPiVD5cNBYqZyhg9QB7ipUzVBNA/EkalZkLBwjiopyQrkPE5y0r q/T2grsNHDIowbR8znL06OOszMmGVQRbmUMwOi0WQV7C7GFhS2acTS0gwFXDzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709047508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9NtQyaXc/XJIYHfpsXYr4wFBCfgbBlaEq4QS+y1jikE=; b=mNDO2Nlfn597XE94PoLkC8KB3Tas/Vzr2+GVbbFRXMRERYb80k1stHfrYqXV2Usbx8NhwL KvGKieLD1ck4YJsQzlYPDqu08GvBz6fGXl3Piurgps4K3F/473yF64fqxcydp4l45QnH+8 yiu1cSr8OEBz91YxQRH8WRoCFf4q5F3PM1k1CCmzj6mZ8N1byvt3xEP/zkFOrignPwcfZE yVx36aoedXmu5EnvIlgXyix6q9kIX3SkI4gzMbpzHE8E0iSmevEkEczjgHSGd4JZ3kxZuB gN+hqNQiUCKP3cpEIBzO0ldn6Zl4iOMazkFgvxrpCLBXi4Kf0FRqwLcjm13W9g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TkhBD1d0GzHwM for ; Tue, 27 Feb 2024 15:25:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41RFP8fo068754 for ; Tue, 27 Feb 2024 15:25:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41RFP8ob068753 for virtualization@FreeBSD.org; Tue, 27 Feb 2024 15:25:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Tue, 27 Feb 2024 15:25:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277326 --- Comment #5 from Zhenlei Huang --- (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.=