From nobody Tue Apr 05 19:56:48 2022 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 D217B1A948D2 for ; Tue, 5 Apr 2022 19:56:48 +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 4KXz1X2B06z4YhH for ; Tue, 5 Apr 2022 19:56:48 +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.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 062514DD2 for ; Tue, 5 Apr 2022 19:56:48 +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 235Jul85094813 for ; Tue, 5 Apr 2022 19:56:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 235Jul6v094812 for virtualization@FreeBSD.org; Tue, 5 Apr 2022 19:56:47 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 263072] System freezes during reboot when vmm module is loaded inside a QEMU/KVM virtual machine Date: Tue, 05 Apr 2022 19:56:48 +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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dasebek@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649188608; 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; bh=2wsTYjZuD8FEzjS8XAfA4raiUK1JKqDZdg6ASM3Zn7g=; b=CRkgYqd4qCVKjPoTmKSQzWDDgoquPtFYpvMVspPoBdG7MbM5M7oZHlFXD2SIwKonPCJqAE lJ5Y7FkDGRQKzE1gCMc7ChepBFdLF6Np8P456hBbjo4e1rVZhdcFA+S3alAhXT0j8mLDfQ W6jqtbjCu0Z3rRa81AmFy1l8+Q5Lb5UmKWbwv45aGccDcpDkwglUXCy0mFc9z0eNS/iB+/ wlxs0QnDDDyHKqHUE94k9Fi5SU1bWzZTSP1vDBuEfUaa6qmjTkTWiZjTwq6k4LzbSWfvt4 Ln/WC+53Hc3Y4XR+QFr0SpX4QQkj/RtnuU/nbAk/tKIWoMhMblG5/Ivr95sxdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649188608; a=rsa-sha256; cv=none; b=ikhFZSPU8bHkBglRj/YTG8dg6XrLo+EL3yfOtBoxmTjN/Ql3LfVdFEPagibOCnkuFx5AOa h1rbKxOmqmw8iWaQbkB7OHJ6pk0/pyFUPftfF2a8TJU9VPjVpcQ3qGRGaMPffHceM+jDSA AgHtoWGjNNEqe9O8ORVj/9lSVxFRx8nJWxznyMb5nwidWEgExXKK9mUaPDHPTGxdnF8UhA x9bB/LW4Cf+kLycHljyXNViuLDpYNrsApoxN8Cucr8WELDmkNHDUlI4PyMwakcILIl7guj gHwG8jvs2UC7+F3M8V8xDR0dQdUeNbeoRDV2p4AOeTTlKsapKZz4ubRB+Yc4mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263072 Bug ID: 263072 Summary: System freezes during reboot when vmm module is loaded inside a QEMU/KVM virtual machine Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: dasebek@gmail.com FreeBSD system running inside a QEMU/KVM virtual machine freezes during a reboot when the vmm kernel module is loaded. - How reproducible: Always - How to reproduce: 1. Install FreeBSD 13.0-RELEASE or 13.1-RC1 2. run the following commands as root: # kldload vmm # reboot - Expected behavior: The system reboots. - Observed behavior: The reboot proceeds as usual up until the point when the "Rebooting..." mes= sage is displayed and the machine should restart. But instead of restarting, the screen goes blank, but the CPU usage remains high, and the virtual machine hangs until I do a hard power-off of the virtual machine. - Affected versions: Guest OS: The problem occurred on all FreeBSD versions that I tested. Namely, FreeBSD 13.1 built from releng/13.1 on April 4, 2022 FreeBSD 13.0-RELEASE FreeBSD 13.0-STABLE built in October 2021 Hypervisor: I used QEMU version 6.2.0 (qemu-6.2.0-5.fc36) together with virt-manager version 4.0.0. It doesn't matter whether I choose the Q35 or i440FX chipset= or BIOS or UEFI boot in the VM settings. The problem is also present when running FreeBSD in a DigitalOcean droplet. I don't know how loading the vmm module affects the system reboot. It could also be an issue with the QEMU/KVM hypervisor itself. But without the vmm module loaded, the machine reboots correctly every time. --=20 You are receiving this mail because: You are the assignee for the bug.=