From nobody Wed Jan 3 22:19:29 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 4T53zj3Y8Pz56qKJ; Wed, 3 Jan 2024 22:19:29 +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 4T53zj24cWz4cNX; Wed, 3 Jan 2024 22:19:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704320369; 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=Yk4M8i2vvOqVmn3p258cF9L/pYHllrg6w/qGN2cvfP4=; b=sz6KyVbWFXuj4xhnlK1cYRHG4sy1dPDuYO5ZZPtsB1eT80KiWHPL4y7uKEfBXT5QSLbLwn zPsw16L9mN3ovQQOALPK/5zM/POsSk7fQUdGlY8hOKXPbX/aTiHEkTSCd8goG6IyDqHXDa Lo3xVLUlf/RgiKC1KHJZLJDJq8LS2umlxKBBge0aGUYAAeJv64hLER6HS3CIjThKeUaXuE Z+zrxfWKOyJWa2dx4pyLR88zlrSNS458LlUFqsVCZnjxuk5B8KsUkXqGIceibrUTdKVP3/ WpayRCIc3FHzA8jUfuPkcpsxneNQfpcWEU3zujm5nvWAcZ17/TDQtSOH2Oq2EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704320369; 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=Yk4M8i2vvOqVmn3p258cF9L/pYHllrg6w/qGN2cvfP4=; b=d06M5zgfoJEoz7qGwcpCQ3lua6QRmAP/Hw72XufpHqgTpl7WRadrwQ3bDFzWD0gIptqqWc 1amLJeNwTB+ZyA5JB+H0aKJnXpiWwi/zaZ6GClqnIadvKmnjF8ZOVoeQ+yY+KOtQCMQdzZ S/Ia64iwQrzy3s8sYXoON0GZsNBPKiOAdRoYigf30shCLl3hqRJfZ3UHmyAH5CtRD9PrkO hHatNvrhIfEPiwNAlgfwayj0lD6y7WYmQyiBtkw2huTbzH5bTnGfa2bfehY4BYuPD4exCe j9I4noTxKCqJaZOQ1EBuK7sWMif7t0Sr+F1lkBHEUIRo1esQsEIIuhjYkeGKwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704320369; a=rsa-sha256; cv=none; b=s5O/4RQJFBIzlVtIEGpyu5FtURX2xeVmrqmY8jAH/9Iytb1UQ5ykwTNau7lgWZ/gQZoIqd kt5yXBJX6lReMpRhfTQ72lfNkE3qieWaQ5S09Xx18nIBZMLdL6ZQ7Lzmue3oY9rnmrp+GL vlGOaF4YQO4+VNVpD1F5DkDsCNkStCMhAi1px7FYVHA1WMKBml/KpBDIFaL7EOfxevsxMc F+doc6f26hacpXWp2JI+CJEKqavzcho4CZLF+TFppqeABqfCj8r3T5g8mZrr3G3oCaAxxN CN4pBg2g5KNmnXXJQkrNOjH1c9BfRMf0mUEYpzjjTIbtmnvbrKtUlRsp3TrQMA== 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 4T53zj110zz12bj; Wed, 3 Jan 2024 22:19:29 +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 403MJTmh090959; Wed, 3 Jan 2024 22:19:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403MJT7E090956; Wed, 3 Jan 2024 22:19:29 GMT (envelope-from git) Date: Wed, 3 Jan 2024 22:19:29 GMT Message-Id: <202401032219.403MJT7E090956@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 8bf0882e186e - main - 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/main X-Git-Reftype: branch X-Git-Commit: 8bf0882e186effbd3d742ce17613cf9dfb81ce0c Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=8bf0882e186effbd3d742ce17613cf9dfb81ce0c commit 8bf0882e186effbd3d742ce17613cf9dfb81ce0c Author: Kyle Evans AuthorDate: 2024-01-03 22:18:00 +0000 Commit: Kyle Evans CommitDate: 2024-01-03 22:19:15 +0000 bhyveload: enter capability mode after we setup the vcpu Reviewed by: allanjude (earlier version), emaste, markj Differential Revision: https://reviews.freebsd.org/D43286 --- 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 855ce5947a93..124c1141bffa 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