From nobody Wed Nov 5 07:13:26 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 4d1c472Vmlz6Fjls for ; Wed, 05 Nov 2025 07:13:27 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1c471Fs1z3JWt for ; Wed, 05 Nov 2025 07:13:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762326807; 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=t9AQksegHl0JihANmlGiOBd/0fSVr113y5VEraNnDuM=; b=HOHgIircPlpt7TAQkqOP2MvNlpkng4H5scXQQ+yxPW6HSRO4ElHPia/qZ/t+pvgqFr0cuY yiaUiPteMxWZdAJm9z8pyHfaqXitMeQaIt/ZFiEk/CMNDbGhMr9XqNtzkdtxqXc2V7/w1X P7NP1DHvtwjkKh0wUNZyGU0heg6tRKGEGOuQDvwrfRwVyPdfXwnKPtnYfexuuJpr2dreQe zTABm8p3XlH4ABXTCXDIddqvxdPBSIMiEz7NIgSJnhUHR+dJ4kRPuZdpJPAzE0jRhaw95N 6MrgSsqlR1pSySeZZCeKFgZ9KOuv836agcFsWRhcR4QBaDCyvmlohQpCu+rjqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762326807; 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=t9AQksegHl0JihANmlGiOBd/0fSVr113y5VEraNnDuM=; b=MkPoZwsD/H5q7SJ29LPnFqpfnfHNlsFZoy9eIu/HGFz38jk960IsyQW3FunZB48pR5Djg6 Es5Wmza7tSB/yDqMsqEskGQ8f3WmeHAiOIZZ0NCzmn+50Ok79dRpSqfgCaIjGyXAFWub0b XSl6tCwRbv0llEBIfCp07+CNa/ObYEkyNg0fWrhJ8DY905oGPpbDLKs5N3ps4VmgjaABSO xRNvgcIHNVfVXO9RI3FzIHOaJcxeWEDzrbmGir2yezEAd8GPLF37EclB47sTrcDU2jFCJW wJ73U2a/E6q5UU24rPql1Fh+sfOxlMUpcDJaRbUyyxDrYmuoYlRwXIILrjbBWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762326807; a=rsa-sha256; cv=none; b=e4V7J50AFjWVfhJVHxIa9zgpiuvooCDUiqVNeupP8ZC9oDYOA6D8cRlfsMuhKBiRk2kNCv TiG4gyVGCqO6BieXw/8C/oR7Vcd4SNEdLkNILdUbsFOSIfFm/FwIxiLJJ+ERInrh6hdtFI +ilzpm0J+luMswmJtjSI5wiNJXpr0lZJ/WO3Nrjjkrq6M/kyAF9CO3n/TM1h/qa982oEKh erAJOvBQc5XLOlt0ILSaqyrYWcUvCJrKUow62gNTkY0i2ipICHAYBwXRzYKjkRfd1mS/by qfFnC0wYWkj7xZ7fuxDNSzEQ7EsNeEYEFrAa7n6kJkrEtIeRWlAYleWgGcaxPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d1c470r52zZLq for ; Wed, 05 Nov 2025 07:13:27 +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 5A57DRxP047440 for ; Wed, 5 Nov 2025 07:13:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A57DRGM047439 for virtualization@FreeBSD.org; Wed, 5 Nov 2025 07:13:27 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 290803] EC2 cloud-init images do not configure IPv6 addresses Date: Wed, 05 Nov 2025 07:13:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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=3D290803 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |virtualization@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed Nov 5 15:08:33 2025 X-Original-To: freebsd-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 4d1pcX14VQz6GS57 for ; Wed, 05 Nov 2025 15:08:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1pcW26gmz4Mjv for ; Wed, 05 Nov 2025 15:08:43 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=GRDijF2R; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::72e as permitted sender) smtp.mailfrom=markjdb@gmail.com Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-8b22efd44d8so37795185a.3 for ; Wed, 05 Nov 2025 07:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762355317; x=1762960117; darn=freebsd.org; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=VYaB4xD/oQCsWp9ZkeKj2Pez3NZTKX7+nnvohmX9FRA=; b=GRDijF2RzijU9h/NrNaI9k1pzR0Z64TjGIo7csqfWYY9DOFN1IyaVE5YNE06YAeInK 0D0mPC1PdIIUPv1Kz8NbhSHDyDJUxQjrPAuUOrukAtuKDiMjaVViShYZSedqulMl2CEK vNKSLymDs1Z7qtWLgz31hO/J2DmeG2/dYi+PWFQKKpTDGp0hMLP+gb2nNRzJJ7AUtUmm Bu1dFQTNQj3ByK/c9zu/zsQ49iD6k0EbvWidKmhzKwT4QRTFzvhuZ7lYaK0MRHj/0kEg uQL+lSTfkqL41n8gbdLVXJe4L37eWcNb6opg17gG2E7ZJly97RdG3kQ6yrUuvKhjvL8/ /5dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762355317; x=1762960117; h=content-disposition:mime-version:message-id:subject:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VYaB4xD/oQCsWp9ZkeKj2Pez3NZTKX7+nnvohmX9FRA=; b=Yjam/sGAE2uPmipZpL4PFAOfjpt8WW4/mbs8gS/lvlTpiDOwNZJDsrngOTp+2n0wVS eOzkqEWkxte+tivTrSL6hg5qfQN03jyfK+ZgJPl5+SB4Hd0l7plK8gWBm477AcsnWng2 WC5FVvIr6NC01ZTxtq/1kOUOHAxadVgba6h/iSPxxEaYlBkBSmIQEdASI0DgrGjOR9sJ NCpFGH3xzw5hlk0ny0jcR6auF35GQRwjXIwAnjQpALHRBKQCzjU+eMaG8rrDGEX6iKF0 vj8omsGYIN9LGWjiMM8/z+aR/c+k6Wgr7OrFBsQi1IctaijXxt5FFCMbkgeeFQ+uHjIR JBiA== X-Gm-Message-State: AOJu0Yyn+HjaiOARTFA4mfR72H9EdimN7WHosJ8Z/fm+v1hXEHIaPVS4 1EkdH0GTys0Gl66ADgKXtNmEL5hxqoYG7/6SHLqPEdTMRxjikqDb3ah7SXhg02/Qd8M= X-Gm-Gg: ASbGncvQ1FJrls0tUOzEHznE58C7vvjRYH7PmcEhkPGA+h5yw82ECj37DwwmV00k1Mm +eie/L0qqWxYh9Qvi06Te53ZqzV4USadJZUpM0oFUv3d3xg1A2jLlBsrLvS3UAnaQGbLOuw77/O w59oCyt4u47Z+VDV2/2dbd3j0WxGQUaRAGmynmHAN3u18n0NZU9uQScsqRBadj2/TjSl+ZPMe/N UmevK0uRxXvsiKGEd7s+UVidL/wWRPARzHTNegg6ayIXVBgvymcnkO8VTa4fJFVSWJcykRRWK58 GKk1YZVbwsTliHPhU5Bo1qecQk+cL5yLqAa+law1Gb6nAGcUsu9+XKpmUGhZ7cJ5fHadpaC6uRZ zkY9HXtj45cf9BpNNmRP5gmdJfWv/B12eHmdmkMPKmPVvXt/OipqjbtWjEwxWgbnPDNH4e1AJBa 1snOvZ8b4= X-Google-Smtp-Source: AGHT+IG8dKUHiTpUG2g5HW2O84wICbxkEAvu0hkPrQLqafEnEZruaCQjY3hwxNYMf9U3tlTIFF75AA== X-Received: by 2002:a05:620a:4688:b0:8a1:c120:4620 with SMTP id af79cd13be357-8b220abebf3mr467898485a.45.1762355316775; Wed, 05 Nov 2025 07:08:36 -0800 (PST) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8b0f7d9ed57sm425912585a.42.2025.11.05.07.08.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Nov 2025 07:08:36 -0800 (PST) Date: Wed, 5 Nov 2025 10:08:33 -0500 From: Mark Johnston To: freebsd-virtualization@freebsd.org Subject: bhyve slirp network backend improvements Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.59 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.99)[-0.994]; MID_RHS_NOT_FQDN(0.50)[]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), DKIM not aligned (relaxed),none]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72e:from]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4d1pcW26gmz4Mjv A while back I added a libslirp-based network backend to bhyve. It enables usermode networking, very similar to qemu's user networking, but with the limitation that only inbound connections to the VM are permitted. This limitation is imposed by the capsicum sandbox in which the VM runs. For my immediate purposes that was fine, but of course it's fairly limiting in general. I posted a patch which moves the backend into a separate process so that the guest can make outbound connections: https://reviews.freebsd.org/D53454 This is enabled by adding the "open" keyword to the slirp backend configuration. That is, "-s 4:0,virtio-net,slirp,open" will allow unrestricted connections from the guest. One can also add hostfwd rules as before. There's still a fair bit of libslirp configuration that isn't accessible, but this change will hopefully make the slirp backend more useful to many people. Comments on the patch or requests for additional features in this area would be welcome. From nobody Wed Nov 5 21:07:20 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 4d1yZJ62rzz659XX for ; Wed, 05 Nov 2025 21:07:20 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1yZJ5PSgz3CXx for ; Wed, 05 Nov 2025 21:07:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762376840; 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=J4hY0YeynHaDXWGxQ0i8uB+ZCD8mVcIeszaNlvm6kio=; b=kItVQG0rsMrLUm8IUxITDIuzNNOIIZFwPrJ519teEhePqyXGuKUZ6NaZlv6dCJ7UG5V5vJ BlbcF8pWG5xl74TfpuJ8d6IUocssCJrN0vYUz4FH/Q/vRKABMBISnTAtGAt4w7EV+tlRA3 kd2mCkCuCnhA4v5mQBiP7ZMENlgrDZShrNCmccwTdgxiYyTI/Hxwzx3uPWljpTeBh9r+7g t+WC35k9VlSXHt+pjsrtPmPRpXGbD79nd2J2XGnyCSVPvGGwUoeVt3MgeiI7a+1X5F2vgv yZjGE3VPU5OI5Gwxs0mk29BPpn3hw4hvWc4qp58VOg7T7ozvcrZmXTx1XkRCwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762376840; 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=J4hY0YeynHaDXWGxQ0i8uB+ZCD8mVcIeszaNlvm6kio=; b=BmNDpalH2Kf7vaY8jglXH8RvZnFVXLRcTz76SC7mUOakJ3iSTLg/JZEnzH6Ib3PzJYRdvN vG4IP26r8ON5ZwI/C5scc18hq0sKPf0q5sZukMFhqpnH6dawJzC86NLXyxd6uwnvL0sOLS cQEoFDlavVJTHmXwB8O8x12D2mhoUhjECjO6ACbjFxf7EmXc688yJJ4TWvRLOBGojLbMLg 0/o5ByZw/i6aJUl99Q8MEApeP/ys8+lx802er5m7MGI6PZegRWpQ0CX3iGiWwWoT45m7I0 2qlGo18DuWj1cpL2MnLfA3xSy/XqvW5xBxdZlGv+gLdYJ1l99M33Y8zqq6Tdtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762376840; a=rsa-sha256; cv=none; b=xnXfMxp1/Sl73zjLyptA03i/H4kFAZgAtfT9+3jpTPtmyd6qMqJ74M+ZBrcjYiexGEerF1 nVrcJlEGI16/4eedo4XztVJImr8/2Ycqvb3d1yA1t7sNovp/38iviNm2qGcJ3pdQkgP1yx zOVCcDRdYZxF0+VM5OaPJ0amd6OMj7aimZJwLt9KqdRsH4QJ57WgAbE+yLN4CGvdH3GfgO 8R78eA0v0uuTQfd6wP0zKSEryECG9JKfkfvYwoTArVULkehRX9DxGLGNs/Rl9DhvYNL5Gy XXPoFGgH2ziH+2946Ba4Q03ivWMJqsTHYgJXArxiMPUB24YOeBTTq01GzxqBFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d1yZJ4txgz10gC for ; Wed, 05 Nov 2025 21:07:20 +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 5A5L7Kt8006854 for ; Wed, 5 Nov 2025 21:07:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A5L7KRj006853 for virtualization@FreeBSD.org; Wed, 5 Nov 2025 21:07:20 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 290098] bhyve crashes when trying to run a 9front VM Date: Wed, 05 Nov 2025 21:07:20 +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: 15.0-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bakul@iitbombay.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=3D290098 --- Comment #17 from Bakul Shah --- Finally getting around to this.... I set a breakpoint on the line in question and ran bhyve until the assert was triggered. I don't know PCI or bhyve code well but happy to work with anyone to track this down. Note also that a netbsd vm dies on the same assert. Running bhyve under gdb I see [Switching to LWP 252876 of process 93322] Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= 900, idx=3D0, registration=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) c Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= c00, idx=3D0, registration=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= 900, idx=3D0, registration=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= c00, idx=3D0, registration=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= 900, idx=3D0, registration=3Dregistration@entry=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) c Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= 900, idx=3D0, registration=3Dregistration@entry=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= c00, idx=3D0, registration=3Dregistration@entry=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Thread 20 "vcpu 0" hit Breakpoint 1, modify_bar_registration (pi=3D0x801e2a= c00, idx=3D0, registration=3Dregistration@entry=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 706 assert(error =3D=3D 0); (gdb) Continuing. Assertion failed: (error =3D=3D 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 706. Thread 20 "vcpu 0" received signal SIGABRT, Aborted. Sent by thr_kill() from pid 93322 and user 0. 0x0000000801b409ea in thr_kill () from /lib/libsys.so.7 (gdb) where #0 0x0000000801b409ea in thr_kill () from /lib/libsys.so.7 #1 0x00000008018c8804 in raise () from /lib/libc.so.7 #2 0x0000000801979969 in abort () from /lib/libc.so.7 #3 0x00000008018ab3f1 in __assert () from /lib/libc.so.7 #4 0x0000000001067d27 in modify_bar_registration (pi=3D0x801e2af00, idx=3D= 1, registration=3Dregistration@entry=3D1) at /usr/src/usr.sbin/bhyve/pci_emul.c:706 #5 0x00000000010679a9 in register_bar (pi=3D0x3dbcc, idx=3D6) at /usr/src/usr.sbin/bhyve/pci_emul.c:723 #6 0x00000000010677f6 in pci_cfgrw (in=3D, bus=3D, slot=3D, func=3D, coff=3D, bytes=3D, valp=3D0x7fffddbead0c) at /usr/src/usr.sbin/bhyve/pci_emul.c:2367 #7 0x0000000001068134 in pci_emul_cfgdata (ctx=3D, in=3D252= 876, port=3D, bytes=3D0, eax=3D, arg=3D) at /usr/src/usr.sbin/bhyve/pci_emul.c:2468 #8 0x0000000001080a89 in emulate_inout (ctx=3D0x801e1a000, vcpu=3D0x801e0d= 060, vmexit=3Dvmexit@entry=3D0x7fffddbeaec8) at /usr/src/usr.sbin/bhyve/amd64/inout.c:222 #9 0x000000000107de50 in vmexit_inout (ctx=3D0x3dbcc, vcpu=3D0x6, vmrun=3D) at /usr/src/usr.sbin/bhyve/amd64/vmexit.c:84 #10 0x0000000001050740 in vm_loop (ctx=3D0x801e1a000, vcpu=3D0x801e0d060) at /usr/src/usr.sbin/bhyve/bhyverun.c:651 #11 0x000000000104f4c7 in fbsdrun_start_thread (param=3D0x801e0b040) at /usr/src/usr.sbin/bhyve/bhyverun.c:563 #12 0x00000008011d0d21 in ?? () from /lib/libthr.so.3 #13 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffddbeb000 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Fri Nov 7 15:34:41 2025 X-Original-To: freebsd-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 4d335b4qgKz6G5VZ for ; Fri, 07 Nov 2025 15:34:43 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d335b45WWz3T5n; Fri, 07 Nov 2025 15:34:43 +0000 (UTC) (envelope-from scf@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762529683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2Oas8iLOlWBUIKviDgz3p74cokXvP+PGNqyDRrNQkJ4=; b=RUBdpR8iqGZiDClsoPqVYlxPRWljceB7bsPwQAL+LjUWFldcyDOZRSLAFidA5+6syEUtz3 pspbp+Eout9FdCDvnPM0lmi0sr+zj9bw0qhPQzMlGUFrVW3R7+8T8QJulUbBQrYZO30dlv aSs/30LDYR0uk3MlfeFkEUX69rIcLttYeGASC5XyQXiC34GMpTS5YOngQeCD8f8tivpvzw aQw0vZ0PDL8BdzcdRwb/S7AlkVFRPirBOpr6tc1XQsuH65jtGqpuswC1jXJWIaHAwgp1ZK hrk3PG3QVJ7iSrO/ZLL08pCsjvZd3zPGHA0q2F2jR0tR814c7e/mXgXQxugP0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762529683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2Oas8iLOlWBUIKviDgz3p74cokXvP+PGNqyDRrNQkJ4=; b=k83yfmTf01G+D6l+c5xcmUjz/jGAoy5TEQGSwy6wGbqtez28AavoBG9fznOKt1tfsTuX8x c2i23blt4Y5YZ/7xfWskFSg7+ddZH724pz2UU9MkaRKyO1aNXWQJxqiMaOVDJdZbfaybw0 YSkgiyQXWCAQBo1Hf5zGkWkRv2PNWw2fh1jyDTZ0G0OxKvBaBzv8rlrN01umb6IwfHofvM 2oVj7mAGnUmJUtclkgBjR729Bohiip7UxoDfv+5k+uKBw45cnWMIU/n2h1eiyZvXFCX7sx Kqur5Kkm1BXdCZVznD6k2L9roIuE5UWjtQdY+o957DyK1msiUjzqw/pjUioxnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762529683; a=rsa-sha256; cv=none; b=aPMFQLtL51PSA1XGfk5+i/hl8vL5dftRT8wjZHFLdYwDAJkBn8GGBSmHOwNSSNxuhlNKK3 kwukxHeIDlAWVL1E5TsHlxE36AbEthviEmZwJsteEuD7pYQzzwvHxUSR7n1NvySM99RCWd xJhtHtMnVAunl+7tHXcLFCPS3l3CYdeK9CNl6ToMOG39oK2HMywg1GUVqidZ+KSCoy05jE ogp2XwwUhAkTBVHebR4VLk1FLQ56Rh0jnhhES0pTsQG2qWlptIIwaAxwvKLjrrGeUa3KC2 E1a8Vp/TPCB7MeVkpTigBnwh1+u+hsgZc7GlhSR+a9lpdVBrLNnEWYzopO4RlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from farley.org (farley.org [104.129.130.189]) (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 ECDSA (prime256v1) client-digest SHA256) (Client CN "mail.farley.org", Issuer "Farley.org Intermediate CA" (not verified)) (Authenticated sender: scf/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4d335b2LRWz3hR; Fri, 07 Nov 2025 15:34:43 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by farley.org (8.18.1/8.18.1) with ESMTPS id 5A7FYf1v031000 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 7 Nov 2025 10:34:41 -0500 (EST) (envelope-from scf@FreeBSD.org) Date: Fri, 7 Nov 2025 10:34:41 -0500 (EST) From: "Sean C. Farley" To: Mark Johnston cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve command-line option order In-Reply-To: Message-ID: <68ef3bf0-22f8-7e23-4ec8-4e405b5e6daf@FreeBSD.org> References: <385a62cf-22ad-c1ed-13fe-1ac8c7ab1408@FreeBSD.org> 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 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=4.0.2 X-Spam-Checker-Version: SpamAssassin 4.0.2 (2025-08-27) on mail.farley.org On Tue, 28 Oct 2025, Mark Johnston wrote: > On Thu, Oct 23, 2025 at 10:00:42PM -0400, Sean C. Farley wrote: >> I wrote a change to vm-bhyve[1] to be able to pass the options to >> bhyve in the correct order to use GPU passthru. In the incorrect >> order, bhyve will return an error. The question was raised: Is it >> expected that bhyve will return an error depending upon the order of >> command-line arguments, or should it be handling this scenario? >> >> The issue is when "-s 31, lpc" is presented to bhyve. If it is >> passed prior to "-o pci.0.31.0.pcireg.vendor=host", then there is no >> error. However, if it is in the opposite order, this is returned: >> >> $ bhyve ... -o pci.0.31.0.pcireg.vendor=host -s 31,lpc ... >> pci slot 0:31:0 already occupied! >> >> I will be updating my PR to make things a bit easier regardless of >> the answer, but it would be nice to know if this is intended or not. > > I don't really think it's intended, it's just an artifact of the way > option handling is implemented. The -s option creates a PCI device > and raises an error if one already exists in the configuration tree. > The -o option adds arbitrary configuration nodes and silently > overwrites existing nodes. > > One solution which allows both orders would be to process -o options > after everything else. It's hard to say whether that might break some > existing command-line invocations though. > > One other option would be to make -s more permissive, but that would > make it easier to flub command-line invocations. That is what I suspected from glancing at the bhyve code. I will just align my PR to work with the current bhyve behavior, which will not cause any problems whether the behavior changes later or not. Thank you. Sean 1. https://github.com/freebsd/vm-bhyve/pull/56 -- scf@FreeBSD.org From nobody Sun Nov 9 21:00:39 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 4d4QDl64pSz6G2QN for ; Sun, 09 Nov 2025 21:00:39 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d4QDl4YHgz41sd for ; Sun, 09 Nov 2025 21:00:39 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762722039; 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=uYccbbryPFJETxIm3sCiev7PviVRt6VpxsIlj9Wbx/o=; b=baPLOSt+h9OSqJry9mUg/BtIKZajvZKUpbpRk63qm5joJY7t3kuh8uOL6KIwI1GXyWuCfC 4CItVJihGbITz3G3YBsxLg8cK0mSWvuL1gcyNpnU81hVJDJD0EjSocicdpXzKskdPVaSZp WdKStZBwYnHRUzNZK83O0Y20FMBJYgcd2F5yXoiLCU7SVowyq/pz1iJ9e3rYIJ7A4a01i/ HHRqwWjcZMB35vYdmWP/sS2/4Q8vspbrhJPE1q8wISph2MXXjC7bjvnwliUHZhQHsnc8rC h57mrOxlHKK6FQTepiL00Hy+YiWi27pU33WXAQc6dT8lHWwvhfN16DGX82gaYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762722039; 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=uYccbbryPFJETxIm3sCiev7PviVRt6VpxsIlj9Wbx/o=; b=q5H38qRNygcxpEojkdchwFoWEFRqM51bxd3+HC+2FIL4oop2H9gY1VNjVHQV91h8/z2kZv hxp0nEzAek+LROBZtgyszGt/ULafVkkZUTA5Yw87veOyxYJj77KJDm8L1M8pIN/LarkqkO /Wfobabt/aRiT+8Dv7RwDSXHpmiZrTB1/TUTPdx2Ga09GZd8YgwnfIp3Xr8ponp/qlBYiY KEgr1XLuOCjZoQ4cC80Jkg02LXctO5c5IpJ2D4Q0YjnBg7y3ZU0WmCEiyQTedGMSA8Efdh EapjU6WZbuvdRd3jzYECwb7yJ6PqFTmgXhCCGfpWtIZ/6DLNfvLHn2j+3khSZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762722039; a=rsa-sha256; cv=none; b=PA6b7geNMTHfxzWja4IpyM8QAFVa41Vxs7v3YgczFSK5FuyT450lqw5tMPCl6taymyR7Rc V0+sLP5GgBz8vfLibdH6yG879f3rIwgaq1zIAwMht3sHdnIwFtt44sotLXhQMSFiVqxmxy cVRMeTKYeQdajPSL+gtEcJ9hEedsy37AkkpASopHOwlQmP5ArkhZU1nQ2ApF9dNQt3E34G QSPjsRDBY9hfgWpQvmqEuKQzji/c3GA/PKyODIsWM//qkRifegFrQnr4NUIXm2NwKNSnMb o/lDLk6nRSe2/B8wT09WqewzfMFLaqYenNut0HykGump8sOUn0r6snq9nFekqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d4QDl3vQVzp85 for ; Sun, 09 Nov 2025 21:00:39 +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 5A9L0d4H077950 for ; Sun, 9 Nov 2025 21:00:39 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A9L0dHu077949 for virtualization@FreeBSD.org; Sun, 9 Nov 2025 21:00:39 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202511092100.5A9L0dHu077949@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: virtualization@FreeBSD.org Subject: Problem reports for virtualization@FreeBSD.org that need special attention Date: Sun, 9 Nov 2025 21:00:39 +0000 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 Content-Type: multipart/alternative; boundary="17627220391.1a3659a5.74893" Content-Transfer-Encoding: 7bit --17627220391.1a3659a5.74893 Date: Sun, 9 Nov 2025 21:00:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 289848 | Enable by default BHYVE_SNAPSHOT 1 problems total for which you should take action. --17627220391.1a3659a5.74893 Date: Sun, 9 Nov 2025 21:00:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
New         |    289848 | Enable by default BHYVE_SNAPSHOT

1 problems total for which you should take action.
--17627220391.1a3659a5.74893--