From nobody Mon Jan 22 17:30:01 2024 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 4TJcfx4kyzz57r86; Mon, 22 Jan 2024 17:30:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJcfx3q43z4f6c; Mon, 22 Jan 2024 17:30:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944601; 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=nEUQo96bZSG1oMTUedpjSciOL+3N/3ulHw/5FpZmP8w=; b=lVIkcdvORdudLPN9f2sfXqrJvJvaqnXI7cpEh017FQeq1vpR4vpWufnIrCRGzpi2eireIz v/mBTV9ZSRB/CWT+S/EZhgl5lZGfSPvtUkXuxoGrcXHNkx0vyMTcyie3MpOw+vds71zinh hU+Qu46f6AbFy4TAJXxsqR0B8q8leUVIpR5loQEKQNT4uJpZcGqU8HkEZXpsEfGZh2Bs18 7jBffAFFt8t4EgkYfnkcaWNr5ig57hXolt3QoNRKDpdvtcGQLqbnonXrJ5urKYSLWmHyFM btIWEqnx2LPYI3kYBL6kAGz6hYEVS4Y+H7REGNMHg+n2gcz5/66Kjf23cPiCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944601; 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=nEUQo96bZSG1oMTUedpjSciOL+3N/3ulHw/5FpZmP8w=; b=XAvgxLNttaUR6HPxDa+QTWrRRIyYI9TBOD8Sbu/68lwM30luWNZfixj4hwBB7y3cw6ARTi HcTIddpghZMeVrBhWG2Y5riYRYlTDa8zGUrbsKfD7zRYIXXZL90dIYSgT3BMKevDwsZmbw qP+2cbX6ynYtm0vbCbRF6twpr1QZn8/A1latp8sSbzeV2rEZmxy/s2qDOK0Bra/xOPr+GQ iWsGvyy7ZLGwM3sPlxUq6F8p3CfOGHOy0/DQgz/fsI/tLSy2wThDzruX1imwtrI4l8NlQ+ IJB1C/qQtVc5XMqVJStOnh+xHUuLsMIwKudxr9B8JFM0KH1IX+CdI0F1XJQQuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705944601; a=rsa-sha256; cv=none; b=ABTPdRoonaxGDw4745WNyN7iRtQJXgqaxxySG5o7IGb/PZuAmkUFaKx71yAR+6vksE+ONs Fvytbh4Hkodb8hWMs62LNvmJy216UknRJgnHqQmdaPhcNIkC8UGj5omK0nNFhOp1LLpTsO sG/Obp3W8RFyYs/sP75gtOq7hYIC5aghUG8KqS5/NbgiQ0nkBqcS1WO+C0io6WvK68pJ8U vpfp250Icy7+z8oHp7CFgV0AAimeoi9K1LoEROb1h2EL9/xvLv6OMb/q66D0w15NusbvJ4 TZWXao9jwV0X8waWoB7hZ5UxkZXUZuWiPAx2WokfKHeikCNHuhmRKaNR33oevw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4TJcfx2whLz19rc; Mon, 22 Jan 2024 17:30:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40MHU1Ct007937; Mon, 22 Jan 2024 17:30:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40MHU1KC007932; Mon, 22 Jan 2024 17:30:01 GMT (envelope-from git) Date: Mon, 22 Jan 2024 17:30:01 GMT Message-Id: <202401221730.40MHU1KC007932@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 097d8306bfba - stable/14 - bhyveload: enter capability mode after we setup the vcpu 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 097d8306bfba66ef1ceb4e74ab7e0fbf30489c52 Auto-Submitted: auto-generated The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=097d8306bfba66ef1ceb4e74ab7e0fbf30489c52 commit 097d8306bfba66ef1ceb4e74ab7e0fbf30489c52 Author: Kyle Evans AuthorDate: 2024-01-03 22:18:00 +0000 Commit: Kyle Evans CommitDate: 2024-01-22 17:18:48 +0000 bhyveload: enter capability mode after we setup the vcpu Reviewed by: allanjude (earlier version), emaste, markj (cherry picked from commit 8bf0882e186effbd3d742ce17613cf9dfb81ce0c) --- usr.sbin/bhyveload/bhyveload.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.sbin/bhyveload/bhyveload.c b/usr.sbin/bhyveload/bhyveload.c index 7503598ba94b..d4f930e8cc76 100644 --- a/usr.sbin/bhyveload/bhyveload.c +++ b/usr.sbin/bhyveload/bhyveload.c @@ -78,6 +78,7 @@ #include #include +#include #include #include "userboot.h" @@ -868,6 +869,12 @@ main(int argc, char** argv) vcpu = vm_vcpu_open(ctx, BSP); + caph_cache_catpages(); + if (caph_enter() < 0) { + perror("caph_enter"); + exit(1); + } + /* * setjmp in the case the guest wants to swap out interpreter, * cb_swap_interpreter will swap out loader as appropriate and set