From nobody Fri Jul 18 09:38:41 2025 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 4bk4VV1x7Lz624jq for ; Fri, 18 Jul 2025 09:38:42 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bk4VV1Jjpz3xR0 for ; Fri, 18 Jul 2025 09:38:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752831522; 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=p5kQzzV7Gtcv2XFFOPPe0qVUR2N9vXu2xW39WQUejss=; b=yaaRfTGepbf2c2A5VhayfW8X0VeThvG7DCsqDXrHOwlrCn2afiPqPG9g/bttb1S6vh7dnq aEVD6V4+OYhp8j8TsfqV62r8XNviTb+EpbQOTsnW1zXc3d5jmE5dommg+gyfJwtBHTcFQP ZHdDbCLpOvkWuaBlKrUKvWm+0S8wkfqfxAkhZrylr2dUkguQfCBa4ZubfIUUG24EF95CSA G/KJq9eCq0aIyeWDlq23OWpzK1XTOY3xHM2rExg7ox5MzahkB1pLUS1F8CIgPxVj2V3xfd GhFihk7MIna4R7CMP3SoKvLM2FpFHi6OCNhWwlKHR6VhhzL4diqxK61lqjqYhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1752831522; 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=p5kQzzV7Gtcv2XFFOPPe0qVUR2N9vXu2xW39WQUejss=; b=B3zRugHN4jwrSgmxEMBy2jjugwXZ4tODaa7YQQgCsq3GL4/cg5asGz+I0O2yzQzfj+cbGX NGLoXwIzZlSFqSLOAnLZMpzoYmPRH0Nlq8fgVnqg7SUdTtjGXuuO5UzxUxvjCK0OCghQjL Gg/YbP41CKFjlGLTcAEHswrEFCPcTeJgrBXyLPt7hq18tr4M5s83CsxkJv0MA7Uy7He1ot lqbkXNFj2+roIqqQuPD28a6x3ZJKl9Ib6VzlzyLXnTj4F16PmwTSYeFtbaDaACqqsRRljE sSp0fFdL4lqhty/hZSE/YbTEw6Y7V4mIWO5H91cACo1UNSzaYJFDUlrfmQMsMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1752831522; a=rsa-sha256; cv=none; b=d7csCkmY8L9B1eG24nMneL1s6X6otv+xdBeTVDyX4UYc5EjCT9AhdwVEMa3ZJd96y8Axd2 ZXsch5MWvi5/3oYwqyogTRihqAi8wDq8djuIfLmJW8M9f8iz+oH91RO8ghhWSm22rvLXKH 3R2MxqognHA4MixItxpONtkJjbrXpGqm6D0suEIpGguwEsWoFTTw8x1usjuDKdLTnyZ91B +LXmD/HmJIzCN37VB2A1rMKD6JOqYoKw8TuH+ZuWNDZhu5XpCXBEJrVDe4HTo6MHDaOBYM ae9xva1uJ877Xv76+FuPEEbwtSuH/m9j6/u3RR/oLDtRsZJkXi0rSkAN7JrQAA== 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 4bk4VV0wWTzblD for ; Fri, 18 Jul 2025 09:38:42 +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 56I9cg7n048088 for ; Fri, 18 Jul 2025 09:38:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 56I9cgiW048087 for virtualization@FreeBSD.org; Fri, 18 Jul 2025 09:38:42 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 288237] bhyve does not boot Rocky Linux 10 from ISO Date: Fri, 18 Jul 2025 09:38:41 +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: 13.5-STABLE X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: Open 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D288237 --- Comment #13 from Zhenlei Huang --- (In reply to Konstantin Belousov from comment #12) > No, if the guest issues undefined instruction, it must be reflected as the > corresponding exception (#UD) back to the guest. It is up to the guest c= ode > to handle it or not. > Typically the loaders are very naive in handling CPU exceptions, most oft= en > they do not even install exception handlers. This is even more true for = UEFI > boot envs, where UEFI started having dedicated debugger protocol. > In other words, if loader issued an instruction that is not supported by = the > CPU (and bhyve does not emulate unsupported instructions), the result is > typically hang or silent reboot. Can I conclude that, only when VM-Exit events occurs, then the VMM can take over the CPU ( so it is exiting a virtual execution mode ) ? I did a quick look at Intel=E2=80=99s Software Developer Manual outlines 64= =E2=80=9CBasic Exit Reasons=E2=80=9D, it appears an undefined instruction do not cause VM-Exit. So if the guest ( either the loader or kernel ) do not handle the event of undefined instruction ( print to console or hand it over to VMM explicitly,= say via vmexit ), the VMM is hopeless to have a chance to log the `undefined instruction` event ? --=20 You are receiving this mail because: You are the assignee for the bug.=