From nobody Sat Mar 18 07:21:31 2023 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 4Pdsqv3m3Wz3yDxB for ; Sat, 18 Mar 2023 07:21:31 +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 4Pdsqv2N7pz3QQ0 for ; Sat, 18 Mar 2023 07:21:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679124091; 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=QlNaqb4JTUOix/BkFt/iSHs3yaT4YYP3I5nV4L/uwRc=; b=U7M69rMBfjZN6KM5Drl0KVTcB6u74606JStpEkTJi6SiPDy8Ln1laTjaUJzkKYlzFhMzrz 4N9Z5Xppirva44f/7HrDpBNUmCVlum8mvPYdXk4PkD/Mlp5oiAA069Qc3CiHBcuF9ni3ql YYWrCD1eoZ5KlLWT2dQr7PHA1zD7v5BUxhM1O495AXS82R9CjurgqD1Ao1dDal3gXXjMxT 9WSkDtblE++cBBHH+Iey71lc/yUfLlHXG//U6mrPVs3JFShOS8smT9bIyV+zpjYjBAXpU7 5l6/hZlpZVk7zkN/m4zdHHet0PZCRvHBq9Cd+TabeNIuWobHEJmzgoS+x/7v6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679124091; a=rsa-sha256; cv=none; b=p6AJytcEVfJ61zfMCMGaRpJJzvpv2DAxgHrOFtdjUFq1zA3wiLiYqUgKk9CrkfJeqj8Age NAPTPLyHRJVq5aS/GVlktXWwi9HHt/FT0bR/Jh/ZV+ZmF4cPCZn6FLxXb4Dwwiaz0EnrGw mgI4JxQuQW85wYU3DyqoJ0th2i2u5LbtLslSjnOko2ADHEFv/OLojhfHmnu5UdOK1N/rlS rvCx4moK63+Y/6fR1gChZw5qM3XmTnN3/52S/141z/FeFkzeJ5s5EgrDOD/HHrHp8515Ki GiWVL3XMXaMmxHepA6a95pDs7JueOVP4Jr0Z2HkFmSJjKl27ZOs3X0g9hP20Dg== 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 4Pdsqv1SBJzycb for ; Sat, 18 Mar 2023 07:21:31 +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 32I7LVDV043924 for ; Sat, 18 Mar 2023 07:21:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32I7LVLC043923 for virtualization@FreeBSD.org; Sat, 18 Mar 2023 07:21:31 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 264267] UEFI Booting on Azure Generation 2 VMs crashes Date: Sat, 18 Mar 2023 07:21:31 +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: CURRENT X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264267 --- Comment #34 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D927358dd98cb902160093e0dc0bac002d= 6b43858 commit 927358dd98cb902160093e0dc0bac002d6b43858 Author: Wei Hu AuthorDate: 2023-03-14 15:13:46 +0000 Commit: Wei Hu CommitDate: 2023-03-18 07:07:35 +0000 amd64 loader: Use efiserialio for Hyper-V booted systems UEFI provides ConIn/ConOut handles for consoles that it supports, which include the text-video and serial ports. When the serial port is available, use the UEFI driver instead of direct io-port accesses to avoid conflicts between the firmware and direct hardware access, as happens on Hyper-V (Azure) setups. This change enables efiserialio to be built for efi-amd64 and has higher order priority vs comconsole, and only uses efiserialio if the hypervisor is Hyper-V. When efiserialio successfully probes, it will set efi_comconsole_avail=3Dtrue which will prevent comconsole from probing in this setup. Tested on Hyper-V, ESXi and Azure VMs. PR: 264267 Reviewed by: kevans, whu Tested by: whu Obtained from: Rubicon Communications, LLC (Netgate) MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC (Netgate) stand/efi/loader/arch/amd64/Makefile.inc | 1 + stand/efi/loader/bootinfo.c | 11 ++++++-- stand/efi/loader/conf.c | 6 +++++ stand/efi/loader/efiserialio.c | 43 ++++++++++++++++++++++++++++= ---- stand/i386/libi386/comconsole.c | 14 +++++++++++ 5 files changed, 68 insertions(+), 7 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=