From nobody Sun Jan 4 10:28:59 2026 X-Original-To: dev-commits-src-all@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 4dkYZ40Dwvz6Mqcn for ; Sun, 04 Jan 2026 10:29:00 +0000 (UTC) (envelope-from git@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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dkYZ34Ghsz4GTC for ; Sun, 04 Jan 2026 10:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522539; 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=pv/mJSWKGUJ3Sgow004nubooUhRGutAdogPKK1F6bvY=; b=EKLLui6xG7wIflyOGFdpGDlILnqc1YqObl+dfL2zangAmu3MY7nE1GxKJLB7tt9KRqsleE FfWtx8zGGMG/r0Sfi1boFgKKvygUhBY6dMX9ipb5aF766pQa7Ryoc4zNZMpEXu7Yp4CvNc uvk0H2G/s3fCN/QIKxNDaYLN1zakhCXs3gZMbAMi4ZXzu2niOl2q5iQ+H2nKrq8cRcwbLh IC1gsYD+Sfhykeo5kp3efcxSZlUPs1nly53XyfWs3/cjTfFwDOBjbhhUXKfgMxE2/7CVs7 oGPVjA6XjNfFakglUyP6Jbpadb0pV/6na2u7FnqLdXxNW/PdfxgFFfxlgKVk2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767522539; 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=pv/mJSWKGUJ3Sgow004nubooUhRGutAdogPKK1F6bvY=; b=Y5r4998U8Wsy/HIS029LIqKeC9MljmReWv0OWmIgwy5nMJyNvErEMCgls0yKJ5OS8xMZ9n /8d52Se8r3QxWv5w0HoLftKdvyB3BLKS30TfD5eNk7SVqvIjz6kwU/9PFBlFEnV+wc9Ugl RcTgkmBvjwVYve8mF8xitrC9Qr5XY3Be7itL+5jwn5yhZdchJe6HFaKtJqYSKUKGLfRy8e KRvmahPx9w01ADWDKzpvdiGBwJTUH90/Jr6lxKEMjurpd7oANdXbdu78ZrWQuYBAZtj6d7 3e//0IkP5bE4g3mvaId9qWhhZVnvGxtfsQjihdxihLmx8qQhoq+SaeklqquPDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767522539; a=rsa-sha256; cv=none; b=sF0Ck69Az5L2asfCAu4ClNk3wmdOtPamb8wquqVurMARfQaXT7HPubyOX1LdCXwyZZAdXL xcr6Pad8yKXMSTL8tHaSyCX+PXXAgdf0sqJFVGGQNiBJRpGxd0I82PX1PFoQMXgz+wjles XACTrhp80Bwjsf+XnZENq8O9yQ52dvitwvtaV7brs+kVHLKzYpFPMm69jTwC8NxtBYSyQw ocsNIlkiq3XSyaz70I9en0U+RWwg+mxcxK0H5acJkNW6vVBYASc/fUwS1v5jnatvrJhxki ZJpAsgrRYkDEuqPkxV2D8B49hEO0DwyaML784GManT8EDNFGFbzeITdYyNWCiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dkYZ33r9fzW0k for ; Sun, 04 Jan 2026 10:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20e21 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 04 Jan 2026 10:28:59 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Roman Bogorodskiy Subject: git: 3f649d1edfbe - stable/14 - bhyve: change suspend exit code List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: novel X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3f649d1edfbea6caccd3270fe0071875adb9651a Auto-Submitted: auto-generated Date: Sun, 04 Jan 2026 10:28:59 +0000 Message-Id: <695a40eb.20e21.2ec90f4a@gitrepo.freebsd.org> The branch stable/14 has been updated by novel: URL: https://cgit.FreeBSD.org/src/commit/?id=3f649d1edfbea6caccd3270fe0071875adb9651a commit 3f649d1edfbea6caccd3270fe0071875adb9651a Author: Roman Bogorodskiy AuthorDate: 2025-12-05 17:16:29 +0000 Commit: Roman Bogorodskiy CommitDate: 2026-01-04 10:24:47 +0000 bhyve: change suspend exit code Currently, after suspending, bhyve(8) exits with 0. This code is also used to indicate that a VM was rebooted. To differentiate reboot and suspend, use the next available exit code, 5, for suspend. Approved by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54087 (cherry picked from commit 611bbb190ff593e0e424e311575d7e978e623659) --- usr.sbin/bhyve/bhyve.8 | 4 +++- usr.sbin/bhyve/snapshot.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index a6e1f772a81f..48735c22e320 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 26, 2025 +.Dd December 30, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -1025,6 +1025,8 @@ halted triple fault .It 4 exited due to an error +.It 5 +suspended .El .Sh EXAMPLES If not using a boot ROM, the guest operating system must have been loaded with diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c index edce55c03eae..23f6fc627de1 100644 --- a/usr.sbin/bhyve/snapshot.c +++ b/usr.sbin/bhyve/snapshot.c @@ -1309,7 +1309,7 @@ vm_checkpoint(struct vmctx *ctx, int fddir, const char *checkpoint_file, if (stop_vm) { vm_destroy(ctx); - exit(0); + exit(5); } done: