From owner-freebsd-virtualization@freebsd.org Sun Jul 21 17:07:12 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7584B85D4 for ; Sun, 21 Jul 2019 17:07:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 9B6FC87A6D for ; Sun, 21 Jul 2019 17:07:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 99110B85D3; Sun, 21 Jul 2019 17:07:12 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 98D56B85D2 for ; Sun, 21 Jul 2019 17:07:12 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BBA387A6C for ; Sun, 21 Jul 2019 17:07:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 57B3B266B6 for ; Sun, 21 Jul 2019 17:07:12 +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 x6LH7CAv098578 for ; Sun, 21 Jul 2019 17:07:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6LH7Cfe098577 for virtualization@FreeBSD.org; Sun, 21 Jul 2019 17:07:12 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 239341] HDA support doesn't work for me Date: Sun, 21 Jul 2019 17:07:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 9B6FC87A6D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2019 17:07:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #2 from shamaz.mazum@gmail.com --- Created attachment 205973 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205973&action= =3Dedit New dirty fix --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Sun Jul 21 17:14:09 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 211C6B8990 for ; Sun, 21 Jul 2019 17:14:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id F251B8804E for ; Sun, 21 Jul 2019 17:14:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EFED4B898F; Sun, 21 Jul 2019 17:14:08 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EFB44B898E for ; Sun, 21 Jul 2019 17:14: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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF9E28804C for ; Sun, 21 Jul 2019 17:14:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A7329268B4 for ; Sun, 21 Jul 2019 17:14: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 x6LHE8SZ019241 for ; Sun, 21 Jul 2019 17:14:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6LHE8Rn019240 for virtualization@FreeBSD.org; Sun, 21 Jul 2019 17:14: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 239341] HDA support doesn't work for me Date: Sun, 21 Jul 2019 17:14:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: F251B8804E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2019 17:14:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #3 from shamaz.mazum@gmail.com --- I've managed to get audio working for all guests (tested with Win 10, Debia= n, Fedora). First, it's important to apply "New dirty fix" in attachements. Then, run b= hyve with guest memory <(strictly less than) 4Gb: bhyve -c 2 -m 3G -w -H -s 0,hostbridge -s 4,ahci-hd,/path/to/bootimg -s 5,virtio-net,tap0 -s 6,hda,play=3D/dev/dsp -s 29,fbuf,tcp=3D127.0.0.1:5900,w=3D1920,h=3D1080 -s 30,xhci,tablet -s 31,lpc = -l com1,stdio -l bootrom,BHYVE_UEFI.fd vm1 Sound will work then. I still cannot understand why any manipulations with source code in this ugly way are required. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Sun Jul 21 18:21:57 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E415ABA004 for ; Sun, 21 Jul 2019 18:21:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C846E8B3DA for ; Sun, 21 Jul 2019 18:21:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C612ABA003; Sun, 21 Jul 2019 18:21:57 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5D59BA002 for ; Sun, 21 Jul 2019 18:21:57 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A73098B3D7 for ; Sun, 21 Jul 2019 18:21:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 82FEA27496 for ; Sun, 21 Jul 2019 18:21:57 +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 x6LILv15075322 for ; Sun, 21 Jul 2019 18:21:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6LILvgq075300 for virtualization@FreeBSD.org; Sun, 21 Jul 2019 18:21:57 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 239341] HDA support doesn't work for me Date: Sun, 21 Jul 2019 18:21:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: A73098B3D7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2019 18:21:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #4 from shamaz.mazum@gmail.com --- Forgot to mention: host and all guests are x86-64. CPU is AMD Ryzen 1600x --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jul 22 13:19:57 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 70CF8B1990 for ; Mon, 22 Jul 2019 13:19:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 537B36ECAC for ; Mon, 22 Jul 2019 13:19:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 51453B198F; Mon, 22 Jul 2019 13:19:57 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 50FF1B198E for ; Mon, 22 Jul 2019 13:19:57 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 30F636ECAB for ; Mon, 22 Jul 2019 13:19:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 06FDDD889 for ; Mon, 22 Jul 2019 13:19:57 +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 x6MDJu1b077930 for ; Mon, 22 Jul 2019 13:19:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6MDJuRW077928 for virtualization@FreeBSD.org; Mon, 22 Jul 2019 13:19:56 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 239341] HDA support doesn't work for me Date: Mon, 22 Jul 2019 13:19:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: btw@mail.ustc.edu.cn X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 537B36ECAC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 13:19:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 Tiwei Bie changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |btw@mail.ustc.edu.cn --- Comment #5 from Tiwei Bie --- According to https://github.com/freebsd/freebsd/blob/1872e290af2d/sys/dev/sound/pci/hda/= hdac_private.h#L146-L151 , it seems the definition of `struct hda_bdle` is wrong. Something like thi= s is needed: diff --git c/usr.sbin/bhyve/pci_hda.c i/usr.sbin/bhyve/pci_hda.c index ace88274ac9..e0324f46a95 100644 --- c/usr.sbin/bhyve/pci_hda.c +++ i/usr.sbin/bhyve/pci_hda.c @@ -80,10 +80,10 @@ typedef void (*hda_set_reg_handler)(struct hda_softc *s= c, uint32_t offset, uint32_t old); struct hda_bdle { - uint32_t addrh; uint32_t addrl; + uint32_t addrh; + uint32_t len; uint32_t ioc; - uint32_t len; } __packed; struct hda_bdle_desc { --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jul 22 15:27:40 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FE2DB40E1 for ; Mon, 22 Jul 2019 15:27:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 3ACDD73C13 for ; Mon, 22 Jul 2019 15:27:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3A5C9B40E0; Mon, 22 Jul 2019 15:27:40 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3A109B40DF for ; Mon, 22 Jul 2019 15:27:40 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DBB573C12 for ; Mon, 22 Jul 2019 15:27:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E4942F1B9 for ; Mon, 22 Jul 2019 15:27:39 +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 x6MFRdG0067102 for ; Mon, 22 Jul 2019 15:27:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6MFRdUI067101 for virtualization@FreeBSD.org; Mon, 22 Jul 2019 15:27:39 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 239341] HDA support doesn't work for me Date: Mon, 22 Jul 2019 15:27:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 3ACDD73C13 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 15:27:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #6 from shamaz.mazum@gmail.com --- comment #5 You are correct! My bad, I should have the definition checked to be in agreement with the driver earlier ;) I confirm, the sound works with this patch. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jul 22 15:33:06 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CF46BB42BE for ; Mon, 22 Jul 2019 15:33:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id B04F174443 for ; Mon, 22 Jul 2019 15:33:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE268B42BD; Mon, 22 Jul 2019 15:33:06 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ADE5BB42BC for ; Mon, 22 Jul 2019 15:33:06 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BC3274441 for ; Mon, 22 Jul 2019 15:33:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 55704F3AE for ; Mon, 22 Jul 2019 15:33:06 +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 x6MFX6xi084669 for ; Mon, 22 Jul 2019 15:33:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6MFX6MA084668 for virtualization@FreeBSD.org; Mon, 22 Jul 2019 15:33:06 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 239341] HDA support doesn't work for me Date: Mon, 22 Jul 2019 15:33:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shamaz.mazum@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: B04F174443 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 15:33:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 shamaz.mazum@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #205930|0 |1 is obsolete| | Attachment #205973|0 |1 is obsolete| | --- Comment #7 from shamaz.mazum@gmail.com --- Created attachment 205994 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D205994&action= =3Dedit Patch proposed by Tiwei Bie that fixes definition of struct hda_bdle and the problem --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jul 22 18:18:18 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7167B81FE for ; Mon, 22 Jul 2019 18:18:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C7B1583848 for ; Mon, 22 Jul 2019 18:18:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C711EB81FD; Mon, 22 Jul 2019 18:18:18 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C699AB81FC for ; Mon, 22 Jul 2019 18:18:18 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A8E9083845 for ; Mon, 22 Jul 2019 18:18:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 82EE4191F3 for ; Mon, 22 Jul 2019 18:18:18 +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 x6MGHKF1076083 for ; Mon, 22 Jul 2019 16:17:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6MGGoWh075550 for virtualization@FreeBSD.org; Mon, 22 Jul 2019 16:16:50 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 239341] HDA support doesn't work for me Date: Mon, 22 Jul 2019 16:15:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: scottl@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 MIME-Version: 1.0 X-Rspamd-Queue-Id: A8E9083845 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2019 18:18:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #8 from Scott Long --- Section 3.6.3 of the High Definition Audio 1.0a spec is pretty clear on the format of the BDL, and that matches was was suggested here and what's in the `hdac_private.h` file as noted. I'll test and commit this. I'm really cur= ious how this could have ever previously worked. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Tue Jul 23 11:45:46 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 52F05A731E for ; Tue, 23 Jul 2019 11:45:46 +0000 (UTC) (envelope-from dennis.noordsij@alumni.helsinki.fi) Received: from mail.iletsel.nl (mail.iletsel.nl [94.103.156.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6FF18CF82 for ; Tue, 23 Jul 2019 11:45:41 +0000 (UTC) (envelope-from dennis.noordsij@alumni.helsinki.fi) To: freebsd-virtualization@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iletsel.nl; s=ILETSEL; t=1563882332; bh=3y1yF6j2bjLGjvnlSdNU0kA/ORtfWArLS09IkZogsos=; h=To:From:Subject:Date; b=xDpgxF0qX9JL0YMelJQvu2AKIOhUWLnow3Y5WuX032/RarvcPVJi3nAmF08p0MAga yGIq6a+77TppXs15WMbq7tMyI+bOS9CDgQSOS3dxe3FSCdK/imqodCSGnXuOJTOIc0 Qc7Zp7ql6bQpDAdXhm2FeUXtalahYLADmSmMcI+o= From: Dennis Noordsij Subject: Timecounter problem as a guest Message-ID: <641a92ec-81ad-2e26-a3b8-3a7238736757@iletsel.nl> Date: Tue, 23 Jul 2019 13:45:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: B6FF18CF82 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iletsel.nl header.s=ILETSEL header.b=xDpgxF0q X-Spamd-Result: default: False [-1.61 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.60)[-0.598,0]; R_DKIM_ALLOW(-0.20)[iletsel.nl:s=ILETSEL]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.990,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[helsinki.fi]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.76)[0.761,0]; DKIM_TRACE(0.00)[iletsel.nl:+]; RCVD_IN_DNSWL_MED(-0.20)[67.156.103.94.list.dnswl.org : 127.0.4.2]; MX_GOOD(-0.01)[mail.it.helsinki.fi,send2.it.helsinki.fi,post2.it.helsinki.fi]; R_SPF_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.22)[asn: 25459(1.10), country: NL(0.01)]; ASN(0.00)[asn:25459, ipnet:94.103.144.0/20, country:NL]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2019 11:45:46 -0000 Hi, Recently I moved some FreeBSD systems to VPS provider TransIP, who use Linux-KVM based virtualization. Initial performance was surprisingly bad, and the CPU graphs very were spikey with as much system time being spent as user time. Via PostgreSQL I ended up trying out pg_test_timing which reported the following for the default timecounter (HPET): (note choices are: kern.timecounter.choice: i8254(0) ACPI-fast(900) HPET(950) TSC-low(-100) dummy(-1000000)) Testing timing overhead for 3 seconds. Per loop time including overhead: 6481.08 ns Histogram of timing durations:   < us   % of total      count      1      0.00000          0      2      0.00000          0      4      0.00000          0      8     88.79165     411005     16      9.53451      44134     32      1.03848       4807     64      0.49796       2305    128      0.10370        480    256      0.02981        138    512      0.00259         12   1024      0.00086          4   2048      0.00022          1   4096      0.00000          0   8192      0.00000          0  16384      0.00022          1 With the other timecounter choices of i8245 and ACPI-fast the result look like the above, no results under 4us. Only with TSC-low does it look like: Testing timing overhead for 3 seconds. Per loop time including overhead: 41.22 ns Histogram of timing durations:   < us   % of total      count      1     95.97088   69846421      2      4.02214    2927264      4      0.00136        988      8      0.00288       2096     16      0.00132        958     32      0.00074        542     64      0.00047        345    128      0.00016        114    256      0.00004         29    512      0.00000          3   1024      0.00000          2   2048      0.00000          3 and indeed the CPU graphs cleaned up completely with much lower CPU averages and no excessive system CPU time after switching to TSC-low. Webserver and database response times dropped as well (at least according to their own reporting). To rule out this being just a symptom of timekeeping: the providers own CPU graphs (so from the outside of the VPS as a whole) also show this VPS to consume roughly half the CPU it does with TSC-low compared to the other options, and you can tell the difference right away when changing the kern.timecounter.hardware sysctl. The main problem however is that the system clock now keeps time atrociously badly. Chrony with the most aggressive settings barely manages to keep the time and the CPU graphs now show regular gaps where the system time jumped because of a correction. It looks very sloppy to the users if the recorded times of their actions/files are not correct. This is all on a 6 core system with lots of threads and churn and short lived apps coming and going. A 4-core database system, with a stable number of threads and processes, running in the same virtualization environment, doesn't really have either of these problems, that is, CPU usage wasn't that spikey or system CPU usage that high even with HPET, and the time doesn't drift as much either with TSC-low. I figured this is a virtualization question as these kinds of symptoms are probably generic. What is the host doing? Additional information from within the guest: hw.machine: amd64 hw.model: Westmere E56xx/L56xx/X56xx (Nehalem-C) hw.ncpu: 6 hw.hv_vendor: KVMKVMKVM hw.clockrate: 2593 (has 24GB memory) (They do perform live migrations so I don't know what the real underlying hardware is but probably similar, it's pretty stale at this point) I wonder if anyone could talk a bit about what might be going on. Thank you, Dennis From owner-freebsd-virtualization@freebsd.org Tue Jul 23 18:40:24 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C8CE6B02B6 for ; Tue, 23 Jul 2019 18:40:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id A4C386F6DC for ; Tue, 23 Jul 2019 18:40:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 91F81B02AC; Tue, 23 Jul 2019 18:40:20 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 91B9BB02AB for ; Tue, 23 Jul 2019 18:40:20 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 327D56F68E for ; Tue, 23 Jul 2019 18:40:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 008501DCE for ; Tue, 23 Jul 2019 18:40:17 +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 x6NIeGak017013 for ; Tue, 23 Jul 2019 18:40:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6NIeGfS017012 for virtualization@FreeBSD.org; Tue, 23 Jul 2019 18:40:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 239341] HDA support doesn't work for me Date: Tue, 23 Jul 2019 18:40:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@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 MIME-Version: 1.0 X-Rspamd-Queue-Id: A4C386F6DC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.975,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jul 2019 18:40:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239341 --- Comment #8 from Scott Long --- Section 3.6.3 of the High Definition Audio 1.0a spec is pretty clear on the format of the BDL, and that matches was was suggested here and what's in the `hdac_private.h` file as noted. I'll test and commit this. I'm really cur= ious how this could have ever previously worked. --- Comment #9 from commit-hook@freebsd.org --- A commit references this bug: Author: scottl Date: Tue Jul 23 18:40:07 UTC 2019 New revision: 350255 URL: https://svnweb.freebsd.org/changeset/base/350255 Log: Fix the register layout for the Buffer Descript List Entry. It got jumbled around during some other cleanups and was causing audio failures on some guests. PR: 239341 Reported by: shamaz.mazum@gmail.com Changes: head/usr.sbin/bhyve/pci_hda.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Jul 24 20:29:10 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4BE81B7C1F for ; Wed, 24 Jul 2019 20:29:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2FED572C4D for ; Wed, 24 Jul 2019 20:29:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2F76CB7C1E; Wed, 24 Jul 2019 20:29:10 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F389B7C1D for ; Wed, 24 Jul 2019 20:29:10 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13FE572C4B for ; Wed, 24 Jul 2019 20:29:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DA9841BD7C for ; Wed, 24 Jul 2019 20:29:09 +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 x6OKT9xY036406 for ; Wed, 24 Jul 2019 20:29:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6OKT9mL036405 for virtualization@FreeBSD.org; Wed, 24 Jul 2019 20:29:09 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 239118] in ESXi: Panic in ether_output_frame Date: Wed, 24 Jul 2019 20:29:09 +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: 12.0-STABLE X-Bugzilla-Keywords: iflib, panic X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: juraj@lutter.sk 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 13FE572C4B X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2019 20:29:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239118 --- Comment #6 from Juraj Lutter --- Just for the record, the "proposed patch" from Mark did help, panics are now gone. If iflib should be fixed, I'm willing to help. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Jul 25 08:51:25 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B592C69E6 for ; Thu, 25 Jul 2019 08:51:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id B113170962 for ; Thu, 25 Jul 2019 08:51:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B09D3C69E5; Thu, 25 Jul 2019 08:51:24 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B05DBC69E4 for ; Thu, 25 Jul 2019 08:51:24 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9170770960 for ; Thu, 25 Jul 2019 08:51:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 635DB24411 for ; Thu, 25 Jul 2019 08:51:24 +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 x6P8pOWR075849 for ; Thu, 25 Jul 2019 08:51:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6P8pO6r075848 for virtualization@FreeBSD.org; Thu, 25 Jul 2019 08:51:24 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 205549] bhyve pci passthru stops working after guest is restarted Date: Thu, 25 Jul 2019 08:51:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ark@dudevich.dn.ua X-Bugzilla-Status: In Progress 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: B113170962 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2019 08:51:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 --- Comment #17 from arkadyi --- Update to FreeBSD 12.0-RELEASE-p8 FreeBSD 12.0-RELEASE-p8 don't resolve this problem. Before start VM: pciconf -r ppt0 0:0x3f 1e318086 02900006 0c033004 00000000 f2520004 00000000 00000000 00000000=20 00000000 00000000 00000000 21f617aa 00000000 00000070 00000000 00000110 After start/stop Win7 VM: pciconf -r ppt0 0:0x3f 1e318086 02900400 0c033004 00000000 f2520004 00000000 00000000 00000000=20 00000000 00000000 00000000 21f617aa 00000000 00000070 00000000 000001ff All work without problem. After start/stop Linux VM: pciconf -r ppt0 0:0x3f 1e318086 02900002 0c033004 00000000 f2520004 00000000 00000000 00000000=20 00000000 00000000 00000000 21f617aa 00000000 00000070 00000000 000001ff=20 The problem still exists. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Jul 25 14:27:56 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 75C88A5DE2 for ; Thu, 25 Jul 2019 14:27:56 +0000 (UTC) (envelope-from sux2mfgj@gmail.com) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E20584E4B for ; Thu, 25 Jul 2019 14:27:55 +0000 (UTC) (envelope-from sux2mfgj@gmail.com) Received: by mail-oi1-x234.google.com with SMTP id l12so37822720oil.1 for ; Thu, 25 Jul 2019 07:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3oZ2iO3pG3gbCQNRSlZLlqzHW8e1FUXg+t0HkDa57EY=; b=U8GaPIelRwWAEJe7tryjM1ueY25VK1V/kqnto5j+JZEQcSMSjDLbrb3p5f3C8dhWGK A2ANbGdfFe6pzq136FhBjBmuAG+eB5ZuXnpTd9gbA+imdnU/svr2j3oKJhZmgcC1uO2c ZAQmXeArWN+cEiP5EmjS27ELcJaTofG3OeduQdCJrMd+MjFN8PN3rzidfoRm5OwyR1Kw yfZTj4XVUeel6NYkehPPGrVtB8geL5OgFMe2UeSpWqn5KQPW3hF1UQK2O38cM8Q4BucZ SXL/kluYJSKRj2BYCaZGEEmXPzBV78dq4TNsoRWmdvQJ334pot3rAy1bAWj6jYu42h8w FFOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3oZ2iO3pG3gbCQNRSlZLlqzHW8e1FUXg+t0HkDa57EY=; b=iEU9d2FLC5FWGAwpYwHvuCr1b0hIsFmUdSlLryPESkAuwS0x3UCunSUWPgwdMSi1xt PswJKQWnycM3Q2Ea3/FMJKPpRezmoaY5IT0+LrynmPRdBVLW30CF/RPOZoK/aYWdYAsq NlgDC1mwkiKIb0vHEL3+kZIN1iKyMJ1o3CvRpsXsuNcVFvPObf+m4sEKBiNoZniJMZ4d MZev7xYxn5gzNGxKYQYyuyZVYEa8m+blCGm+3cGYG9ob+HyuaEcl7Wa8Or7xhcOcm3M+ R6m/OhF/fQfeXTvWG5u490LldI3lwtwpffoZylBCJs9Wek1N0Iv50ON3BRHvS5QIpg1m DUDw== X-Gm-Message-State: APjAAAV149bWmpiVgcdiFklaLipJCxgXlbnvVJ/jYmc3VHB4iu1P8DD/ zP0UY8qmayekbBcp5vX81Sha8gpNMHx8+m9R6w5+UVN0CRU= X-Google-Smtp-Source: APXvYqz/rHuJo85DsK8hnL/iN1sVuXffz0ULzeF/wTmzAg2200wljUeh5EhpwZ+z/FmrvyG0G42WojRVREV4PN6w5AY= X-Received: by 2002:aca:4950:: with SMTP id w77mr45078484oia.28.1564064874450; Thu, 25 Jul 2019 07:27:54 -0700 (PDT) MIME-Version: 1.0 From: Shunsuke Mie Date: Thu, 25 Jul 2019 23:27:43 +0900 Message-ID: Subject: A mistake in a comment. To: freebsd-virtualization@freebsd.org X-Rspamd-Queue-Id: 9E20584E4B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=U8GaPIel; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sux2mfgj@gmail.com designates 2607:f8b0:4864:20::234 as permitted sender) smtp.mailfrom=sux2mfgj@gmail.com X-Spamd-Result: default: False [-6.95 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[4.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.97)[ip: (-9.29), ipnet: 2607:f8b0::/32(-3.08), asn: 15169(-2.43), country: US(-0.05)]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2019 14:27:56 -0000 Hi, I'm reading a source code at a vmx entry to guest. I confused by a comment in here. https://github.com/freebsd/freebsd/blob/master/sys/amd64/vmm/intel/vmx_support.S#L138 . A prototype definition of the vmx_entry_guest is in vmx.h. ``` int vmx_enter_guest(struct vmxctx *ctx, struct vmx *vmx, int launched); ``` So, is this a mistake? Thanks a lot. Shunsuke. From owner-freebsd-virtualization@freebsd.org Sat Jul 27 17:22:11 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 46126BE466 for ; Sat, 27 Jul 2019 17:22:11 +0000 (UTC) (envelope-from aoife@finch.ink) Received: from tegan.alphasoft.com (tegan.alphasoft.com [198.187.188.5]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA778DDA2 for ; Sat, 27 Jul 2019 17:22:09 +0000 (UTC) (envelope-from aoife@finch.ink) Received: from peri.alphasoft.com (peri.alphasoft.com [198.187.188.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tegan.alphasoft.com (Postfix) with ESMTPSA id 796CE22D02E for ; Sat, 27 Jul 2019 10:22:01 -0700 (PDT) From: Aoife Finch Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Linux guest kernel GPF in bhyve host on AMD Ryzen Message-Id: <556F1962-3440-4314-B162-10A7599BDEC9@finch.ink> Date: Sat, 27 Jul 2019 10:22:01 -0700 To: freebsd-virtualization@freebsd.org X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 1FA778DDA2 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.87)[0.868,0]; RBL_VIRUSFREE_BOTNET(2.00)[5.188.187.198.bip.virusfree.cz : 127.0.0.2]; MX_GOOD(-0.01)[tegan.alphasoft.com]; NEURAL_SPAM_LONG(1.00)[0.995,0]; DMARC_NA(0.00)[finch.ink]; NEURAL_HAM_SHORT(-0.15)[-0.149,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:23175, ipnet:198.187.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.01)[country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2019 17:22:11 -0000 Linux guests with recent kernels panic with a GPF during boot on my = system: Ryzen 7 1700 or Ryzen 7 2700 Asus PRIME B350 PLUS - bios 5007 64GB DDR4 RAM FreeBSD 12.0-p7 Here are boot messages from the Ubuntu live server iso = (ubuntu-18.04.2-live-server-amd64.iso): [ 0.024000] Spectre V2 : Spectre mitigation: LFENCE not serializing, = switching to generic retpoline [ 0.948696] ACPI Error: Could not enable RealTimeClock event = (20170831/evxfevnt-218) [ TIME ] Timed out waiting for device = dev-di=E2=80=A6fd\x2db21e\x2dc3186f34105d.device. [DEPEND] Dependency failed for /subiquity_config. [ OK ] Started Uncomplicated firewall. [ OK ] Started Create list of required sta=E2=80=A6vice nodes for the = current kernel. Starting Create Static Device Nodes in /dev... [ OK ] Mounted Huge Pages File System. [ OK ] Mounted Kernel Debug File System. [ OK ] Started Remount Root and Kernel File Systems. Starting Load/Save Random Seed... [ OK ] Started Load/Save Random Seed. [ OK ] Mounted POSIX Message Queue File System. [ OK ] Started Create Static Device Nodes in /dev. Starting udev Kernel Device Manager... [ OK ] Started Journal Service. Starting Flush Journal to Persistent Storage... [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started udev Coldplug all Devices. [ OK ] Started Load Kernel Modules. Mounting Kernel Configuration File System... Starting Apply Kernel Variables... Mounting FUSE Control File System... [ OK ] Mounted FUSE Control File System. [ OK ] Mounted Kernel Configuration File System. [ OK ] Started udev Kernel Device Manager. [ OK ] Started Apply Kernel Variables. [ OK ] Started LVM2 metadata daemon. [ OK ] Started Monitoring of LVM2 mirrors,=E2=80=A6sing dmeventd or = progress polling. [ OK ] Started Set the console keyboard layout. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Reached target Local Encrypted Volumes. [ OK ] Reached target Local File Systems (Pre). Mounting /media/region.lower... Mounting /tmp... Mounting /media/rack.lower... Mounting /media/filesystem... [ OK ] Mounted /tmp. [ OK ] Reached target Local File Systems. Starting ebtables ruleset management... Starting Set console font and keymap... Starting Create Volatile Files and Directories... Starting Tell Plymouth To Write Out Runtime Data... [ OK ] Mounted /media/filesystem. [ OK ] Mounted /media/region.lower. [ OK ] Mounted /media/rack.lower. Mounting /media/region... Mounting /media/rack... [ OK ] Mounted /media/region. [ OK ] Mounted /media/rack. [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Started Set console font and keymap. [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... Starting Network Time Synchronization... [ 7.012798] general protection fault: 0000 [#1] SMP NOPTI [ 7.013343] Modules linked in: sch_fq_codel ib_iser rdma_cm iw_cm = ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi = ip_tables x_tables autofs4 overlay nls_utf8 isofs raid10 raid456 = async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq = libcrc32c raid1 raid0 multipath linear aesni_intel aes_x86_64 = crypto_simd cryptd glue_helper psmouse virtio_net virtio_blk ahci = libahci [ 7.016815] CPU: 0 PID: 31 Comm: kworker/0:1 Not tainted = 4.15.0-45-generic #48-Ubuntu [ 7.017567] Hardware name: BHYVE, BIOS 1.00 03/14/2014 [ 7.018076] RIP: 0010:switch_mm_irqs_off+0x327/0x400 [ 7.018561] RSP: 0018:ffffa957801e7e20 EFLAGS: 00010046 [ 7.019070] RAX: 0000000000000001 RBX: ffff971ac91a4a40 RCX: = 0000000000000049 [ 7.019765] RDX: 0000000000000000 RSI: ffff971ac91a4a40 RDI: = ffff971ac91a18c0 [ 7.020457] RBP: ffffa957801e7e48 R08: 0000000000000383 R09: = 0000000000000000 [ 7.021141] R10: 0000000000000000 R11: 0000000000000383 R12: = ffff971ac91a18c0 [ 7.021828] R13: 0000000000000000 R14: ffff971ac91a4a40 R15: = ffff971ac91a18c0 [ 7.022520] FS: 0000000000000000(0000) GS:ffff971adfc00000(0000) = knlGS:0000000000000000 [ 7.023295] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 7.023854] CR2: 00000000000000b0 CR3: 000000001a14c000 CR4: = 00000000000406f0 [ 7.024547] Call Trace: [ 7.024798] __schedule+0x252/0x8a0 [ 7.025141] ? pwq_dec_nr_in_flight+0x49/0xa0 [ 7.025568] schedule+0x2c/0x80 [ 7.025880] worker_thread+0xba/0x410 [ 7.026232] kthread+0x121/0x140 [ 7.026544] ? process_one_work+0x410/0x410 [ 7.026951] ? kthread_create_worker_on_cpu+0x70/0x70 [ 7.027438] ret_from_fork+0x35/0x40 [ 7.027794] Code: c1 49 8b 06 49 8b 7e 08 49 83 c6 18 31 d2 31 f6 e8 = df 73 b8 00 49 8b 06 48 85 c0 75 e7 eb a3 b9 49 00 00 00 b8 01 00 00 00 = 31 d2 <0f> 30 e9 3d fd ff ff 9c 58 0f 1f 44 00 00 49 89 c5 fa 66 0f 1f=20= [ 7.029568] RIP: switch_mm_irqs_off+0x327/0x400 RSP: ffffa957801e7e20 [ 7.030171] ---[ end trace 1379b5776b2d7813 ]--- Similar crashes occur with other Linux distros running recent kernels. = Older kernels (like 4.4.0-135-generic in Ubuntu 16.04) boot and run = fine. Current FreeBSD guests run fine. I swapped the Ryzen 1700 for a 2700 with no change. Unfortunately, I = don't have a spare motherboard or ram to swap. Is this a Ryzen issue or is there something I can tweak to fix this? = Thanks! -- Aoife From owner-freebsd-virtualization@freebsd.org Sat Jul 27 21:51:44 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5C78AC2A7D for ; Sat, 27 Jul 2019 21:51:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8A26FDEB for ; Sat, 27 Jul 2019 21:51:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3C1E8C2A7C; Sat, 27 Jul 2019 21:51:44 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3BE0EC2A7B for ; Sat, 27 Jul 2019 21:51:44 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16DA56FDEA for ; Sat, 27 Jul 2019 21:51:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 86A3B5D68 for ; Sat, 27 Jul 2019 21:51:43 +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 x6RLpht8016431 for ; Sat, 27 Jul 2019 21:51:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6RLphY4016429 for virtualization@FreeBSD.org; Sat, 27 Jul 2019 21:51:43 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 239483] [PATCH] bhyve prints confusing error message when vmm module not loaded Date: Sat, 27 Jul 2019 21:51:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: brennan@umanwizard.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 16DA56FDEA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2019 21:51:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239483 Bug ID: 239483 Summary: [PATCH] bhyve prints confusing error message when vmm module not loaded Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: brennan@umanwizard.com Created attachment 206107 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206107&action= =3Dedit patch improving the error message Before my patch: $ bhyveload asdf vm_create: No such file or directory After: $ /usr/obj/usr/src/amd64.amd64/usr.sbin/bhyveload/bhyveload asdf vm_create: No such file or directory Is the `vmm` module loaded? --=20 You are receiving this mail because: You are the assignee for the bug.=