From owner-freebsd-virtualization@freebsd.org Tue Dec 1 07:09:38 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1EECA3D25F for ; Tue, 1 Dec 2015 07:09:38 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A9481108 for ; Tue, 1 Dec 2015 07:09:37 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id tB178RcS038771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 30 Nov 2015 23:08:27 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id tB178RS1038770; Mon, 30 Nov 2015 23:08:27 -0800 (PST) (envelope-from jmg) Date: Mon, 30 Nov 2015 23:08:27 -0800 From: John-Mark Gurney To: Matt Churchyard Cc: FreeBSD virtualization Subject: Re: adding diskspace to a bhyve instance Message-ID: <20151201070827.GZ65715@funkthat.com> References: <20151119172034.GA93977@potato.growveg.org> <564E263A.3030106@gmail.com> <6ee51d8f276a4b259bda009dc863e9e7@SERVER.ad.usd-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ee51d8f276a4b259bda009dc863e9e7@SERVER.ad.usd-group.com> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Mon, 30 Nov 2015 23:08:28 -0800 (PST) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2015 07:09:38 -0000 Matt Churchyard via freebsd-virtualization wrote this message on Wed, Nov 25, 2015 at 10:18 +0000: > Of course that's the easy bit. The more dangerous part is resizing the partitions inside the guest (if it's not whole disk ZFS), and then resizing the filesystems. If the disk is GPT partitioned in the guest you will probably have to recover the partition table first, as the secondary copy will no longer exist at the end of the disk. You'll then need to resize the partitions (hopefully the 'main' partition you want to resize is the last on the disk as that'll probably make it easier). Once done you then need to resize the filesystem. For ZFS you can usually just 'zpool online -e'. For UFS you'll need to grow the filesystem as shown in the handbook. I have written an rc.d script growfs that is in HEAD that makes this painless... If you have a single UFS fs, w/ the root as the last partition/fs on the disk, simply grow the disk, and then you can run "service growfs start", and it just works... This will work on any system, not just VMs... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-virtualization@freebsd.org Wed Dec 2 11:15:47 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D34FA3E182 for ; Wed, 2 Dec 2015 11:15:47 +0000 (UTC) (envelope-from g_amanakis@yahoo.com) Received: from nm19-vm5.bullet.mail.ne1.yahoo.com (nm19-vm5.bullet.mail.ne1.yahoo.com [98.138.91.241]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23C8C1B40 for ; Wed, 2 Dec 2015 11:15:46 +0000 (UTC) (envelope-from g_amanakis@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1449054808; bh=3qi2XuWsZMI7MnPwfCOWbaWhInBnQQtLXdKRIymrW7I=; h=Subject:From:Date:To:From:Subject; b=aVC9X0peDKdvoikmCJNgkmzYUY0EcsCXV3KYm+S1ev+nd9l1WWnbdNN5linBDehiUQ5Uho1m6QgvRgfa7U0X3sWMsEPQ6R+ZWVns24F39SegjovSaxMxqw2a8WF85QbpDIueRoCjGZ80Anj2a/YHTp4CWdm9BHUtGrmgejRF+KTQcdzUDZRCEk1WjfXMifg1vZbv0TFAMlO/nl3f5dlpRNSArBgPSAiWbgfJ3Po49derWVf9VvVxkotKvdVoo/V4B9jHMFUvZatN9fV/UGs4nsnH+X0tYIjf28Ej3N85THSAEJ1dISGdjaS47qH6SggU1uYHJk7z4eXAVY77JyZkJQ== Received: from [98.138.226.176] by nm19.bullet.mail.ne1.yahoo.com with NNFMP; 02 Dec 2015 11:13:28 -0000 Received: from [98.138.226.124] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 02 Dec 2015 11:13:28 -0000 Received: from [127.0.0.1] by smtp203.mail.ne1.yahoo.com with NNFMP; 02 Dec 2015 11:13:28 -0000 X-Yahoo-Newman-Id: 949074.35217.bm@smtp203.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: CpN7xVsVM1k217TzwnX0RK0X8jX72N1iqfo7L6y38w0p64c VN6K0FhP6gaGQLSS2p05KMYk5Nj3VCW1w3s__dD8mgJfba9m6WaAkCBvfbi3 XFxPrb3Bb4hoIYM0Y1dFz.hzVpotgNWKmfjrHaEm9XBnyMtqSyv6V9vHxfK6 ypFG5dtTTrr.zuw44nR3mUpIX_08TV_8PgFwnb09yWQmFTpt4AheYcJhQTOc H8_7OlMcagLD.9a0gro.gtZJnGwb_L.I0nt6.QlkGsV_YAAw9vPVATs3MfLd 1UFggPL2N0DaMIPI_ybl7FMNMhMZGPGi5qkKwb0RzdiLHQl2q3MCGI8aIERt aN6qnBGPEkKwbbFN6HpgDbqKnyM3rJLVDshJabLX1nP_lHwtz1r_sjVBhCQt Zc7ir188WG01srl8psh8W_v3H6Qov4dWuXW_DlpQQ.bKx4v.1l6U.5w1.thW A9m_5lsndrFVhsC54Y1aIDfBIgyTv_j_JMfCnvmIo7DK.D9gQjwWa0cZ0FRo Nv.b4pYyDj0IMxDTosbfNKvCarALRdBy1 X-Yahoo-SMTP: 6sUo5IiswBDB2TZm6JKJ6DaI.Rsz4O0- User-Agent: K-9 Mail for Android MIME-Version: 1.0 Subject: BAR and pci passthrough From: "G. Amanakis" Date: Wed, 02 Dec 2015 12:13:25 +0100 To: freebsd-virtualization@freebsd.org Message-ID: <4F251D2F-8C0C-46FF-B5E1-D88DE84904D8@yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 11:15:47 -0000 I am facing the following problem: on a X9SCM with an E3-1220Lv2 I am trying to passthrough the onboard u= sb controllers=2E I disable the usb module from the kernel config and using= pptdev the controllers are assigned to ppt devices=2E However running bhyv= e on FreeBSD 10=2E2 with: sudo bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,ta= p0 -s 3:0,virtio-blk,=2E/linux=2Eimg -s 4:0,passthru,0/29/0 -l com1,stdio -= c 2 -m 2048M linuxguest=20 returns : passthru device 0/29/0 BAR 0: base 0xdf823000 or size 0x400 not page a= ligned The problem probably that the length of the bar is smaller and not aligned= with the pagesize=2E Could the length of the BAR be modified in order to p= erform the pci passthrough? --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From owner-freebsd-virtualization@freebsd.org Wed Dec 2 22:54:05 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3DA88A3FCEC for ; Wed, 2 Dec 2015 22:54:05 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE4401E5E for ; Wed, 2 Dec 2015 22:54:04 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: by wmuu63 with SMTP id u63so235050538wmu.0 for ; Wed, 02 Dec 2015 14:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fg7Se6nqdfT2EKM18lzYTYSWNeJoFXARCn6JdtdHshI=; b=OXCGKfmub/TW3ieFcFyOrhd9qmtsqoLL7s2ol4Yi565aYevMNC1DenntsVQ8DnQiLb Uf0djQqdOeLJNBwwmOem2hy7AzlqvT8XTW9V6X1OotAc77KTalGCmUiRclzgp765zQVq 24lmD0jyeYWPvIyyUdA2/YLiuOj69awx4OjN+U/6HHfoJJeQVEZYNbuAO7Elt3sguY0D nWX6IdPnc7IDpZQYRuqgPH7INg19/1XDA17XqqU16UkBS2mb5U8u3DLNrZl0mhFiyXD0 /95cCsFkuIRERLnDSRZgQLzaQjfGO68EtBchq1XGML1UWsXBOTImWY/jH57LdezNf1Ee u/2Q== MIME-Version: 1.0 X-Received: by 10.28.129.82 with SMTP id c79mr9091189wmd.80.1449096843064; Wed, 02 Dec 2015 14:54:03 -0800 (PST) Received: by 10.27.172.77 with HTTP; Wed, 2 Dec 2015 14:54:03 -0800 (PST) In-Reply-To: <4F251D2F-8C0C-46FF-B5E1-D88DE84904D8@yahoo.com> References: <4F251D2F-8C0C-46FF-B5E1-D88DE84904D8@yahoo.com> Date: Wed, 2 Dec 2015 14:54:03 -0800 Message-ID: Subject: Re: BAR and pci passthrough From: Neel Natu To: "G. Amanakis" Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 22:54:05 -0000 On Wed, Dec 2, 2015 at 3:13 AM, G. Amanakis via freebsd-virtualization wrote: > I am facing the following problem: > on a X9SCM with an E3-1220Lv2 I am trying to passthrough the onboard usb controllers. I disable the usb module from the kernel config and using pptdev the controllers are assigned to ppt devices. However running bhyve on FreeBSD 10.2 with: > > sudo bhyve -AI -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-blk,./linux.img -s 4:0,passthru,0/29/0 -l com1,stdio -c 2 -m 2048M linuxguest > > returns : > > passthru device 0/29/0 BAR 0: base 0xdf823000 or size 0x400 not page aligned > > The problem probably that the length of the bar is smaller and not aligned with the pagesize. Could the length of the BAR be modified in order to perform the pci passthrough? Yes, that's correct - the size of the BAR is not a multiple of the page size which leads to the error. If this BAR is mapped into the guest's address space then it will "leak" an additional 3K into the guest (since the minimum nested mapping is 4KB in size). It is hard to fix this in the general case if you want to truly passthrough the BAR to the guest. best Neel > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@freebsd.org Thu Dec 3 15:08:59 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7E67A3F88B for ; Thu, 3 Dec 2015 15:08:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from mxrelay.isc.freebsd.org (mxrelay.isc.freebsd.org [149.20.53.13]) by mx1.freebsd.org (Postfix) with ESMTP id BF45C1030 for ; Thu, 3 Dec 2015 15:08:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mxrelay.isc.freebsd.org (Postfix) with ESMTP id B3FA5591 for ; Thu, 3 Dec 2015 15:08:59 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id A91CA33247EA; Thu, 3 Dec 2015 15:08:59 +0000 (UTC) Date: Thu, 3 Dec 2015 15:08:59 +0000 To: freebsd-virtualization@freebsd.org From: "rodrigc (Craig Rodrigues)" Reply-to: D1944+333+b09c6235d993877b@reviews.freebsd.org Subject: [Differential] [Commented On] D1944: PF and VIMAGE fixes Message-ID: <20012a8f6d8c93c1bea30888c726ddc8@localhost.localdomain> X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: Thread-Topic: D1944: PF and VIMAGE fixes X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NDc2NzM0MzY4OTdiYThiNTU1MjY2ZDZmMTJiIFZgWws= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2015 15:09:00 -0000 rodrigc added a comment. @glebius : if you have time can you review this? you have expressed interest in PF + VIMAGE fixes in the past. @bz : do you have time to review this? I understand you are going to be doing some VIMAGE work REVISION DETAIL https://reviews.freebsd.org/D1944 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: nvass-gmx.com, bz, trociny, kristof, gnn, zec, rodrigc, glebius, eri Cc: mmoll, javier_ovi_yahoo.com, farrokhi, julian, robak, freebsd-virtualization-list, freebsd-pf-list, freebsd-net-list From owner-freebsd-virtualization@freebsd.org Thu Dec 3 15:14:26 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20ABBA3FA86 for ; Thu, 3 Dec 2015 15:14:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from mxrelay.isc.freebsd.org (mxrelay.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:4064:0:19:1]) by mx1.freebsd.org (Postfix) with ESMTP id F0B011479 for ; Thu, 3 Dec 2015 15:14:25 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mxrelay.isc.freebsd.org (Postfix) with ESMTP id C5EF265B for ; Thu, 3 Dec 2015 15:14:25 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id C45043324AF4; Thu, 3 Dec 2015 15:14:25 +0000 (UTC) Date: Thu, 3 Dec 2015 15:14:25 +0000 To: freebsd-virtualization@freebsd.org From: "nvass-gmx.com (Nikos Vassiliadis)" Reply-to: D1944+333+b09c6235d993877b@reviews.freebsd.org Subject: [Differential] [Commented On] D1944: PF and VIMAGE fixes Message-ID: <24134a538645384172ef5edf481fb231@localhost.localdomain> X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: Thread-Topic: D1944: PF and VIMAGE fixes X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NDc2NzM0MzY4OTdiYThiNTU1MjY2ZDZmMTJiIFZgXFE= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2015 15:14:26 -0000 nvass-gmx.com added a comment. Hi from me as well, just want to say that I am here too and I am willing to work on this even if i have to do it scratch;) Please review:) Nikos REVISION DETAIL https://reviews.freebsd.org/D1944 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: nvass-gmx.com, bz, trociny, kristof, gnn, zec, rodrigc, glebius, eri Cc: mmoll, javier_ovi_yahoo.com, farrokhi, julian, robak, freebsd-virtualization-list, freebsd-pf-list, freebsd-net-list From owner-freebsd-virtualization@freebsd.org Thu Dec 3 15:16:16 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B6B6A3FB7A for ; Thu, 3 Dec 2015 15:16:16 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from mxrelay.isc.freebsd.org (mxrelay.isc.freebsd.org [149.20.53.13]) by mx1.freebsd.org (Postfix) with ESMTP id 3CE1A175F for ; Thu, 3 Dec 2015 15:16:16 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) by mxrelay.isc.freebsd.org (Postfix) with ESMTP id 3A98066C for ; Thu, 3 Dec 2015 15:16:16 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.isc.freebsd.org (Postfix, from userid 1346) id 390473324BC1; Thu, 3 Dec 2015 15:16:16 +0000 (UTC) Date: Thu, 3 Dec 2015 15:16:16 +0000 To: freebsd-virtualization@freebsd.org From: "robak (Bartek Rutkowski)" Reply-to: D1944+333+b09c6235d993877b@reviews.freebsd.org Subject: [Differential] [Commented On] D1944: PF and VIMAGE fixes Message-ID: X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: Thread-Topic: D1944: PF and VIMAGE fixes X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: References: Thread-Index: NDc2NzM0MzY4OTdiYThiNTU1MjY2ZDZmMTJiIFZgXMA= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2015 15:16:16 -0000 robak added a comment. Just to add an end-user update, this stuff keeps leaking, even in 10.2-p7, every single time a VIMAGE jail is being stopped. REVISION DETAIL https://reviews.freebsd.org/D1944 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: nvass-gmx.com, bz, trociny, kristof, gnn, zec, rodrigc, glebius, eri Cc: mmoll, javier_ovi_yahoo.com, farrokhi, julian, robak, freebsd-virtualization-list, freebsd-pf-list, freebsd-net-list From owner-freebsd-virtualization@freebsd.org Fri Dec 4 14:51:56 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA062A40738; Fri, 4 Dec 2015 14:51:56 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 861D91046; Fri, 4 Dec 2015 14:51:56 +0000 (UTC) (envelope-from ludovit.koren@gmail.com) Received: by wmec201 with SMTP id c201so77643802wme.0; Fri, 04 Dec 2015 06:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-mail-address:date:message-id:user-agent :mime-version:content-type; bh=1ng20DpJy73O2AeUGNBuxxNCYRLXnECDlxjMoWqNf+4=; b=IpMOT+iqyIqbwWS3OAg/uOW3S+YRCFaoxWUtXRtLdP/Zas5nYvGrlrP2XeUus1Zqc8 XdSyd9yGQP94EO6i+WPV1q/2WUh/n4uYkbKXYHAtTZdIXFvIV40fkGVcHouRYk61a52m 3pEv46cvepsUMcUvJhNQnv/zgThrkOinBsSZayRQin9nYRBXE4qAGwgBFTlaLv5pDGrK MSDZiUD6soNW+pmlpLUr5ALxMwEcTMaQdS0Gwa5QcTafxSczyirrySMnjBa6e1tPJvnv a63dL6pLk/YLKB+OCKzNwGCgXILhsYNSZ1MTbjXZ3MiQf8rNT9tMjH3mHQj0KCGdm5ie HkVA== X-Received: by 10.28.226.86 with SMTP id z83mr5891823wmg.77.1449240714102; Fri, 04 Dec 2015 06:51:54 -0800 (PST) Received: from jedi.localdomain (109-230-45-66.dynamic.orange.sk. [109.230.45.66]) by smtp.gmail.com with ESMTPSA id w141sm3778375wmw.24.2015.12.04.06.51.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2015 06:51:53 -0800 (PST) Received: by jedi.localdomain (Postfix, from userid 1001) id B79A911332; Fri, 4 Dec 2015 15:51:52 +0100 (CET) From: Ludovit Koren To: freebsd-net@freebsd.org, freebsd-virtualization@freebsd.org Subject: bce bridge problem User-Mail-Address: ludovit.koren@gmail.com Date: Fri, 04 Dec 2015 15:51:52 +0100 Message-ID: <8637vimflj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 14:51:57 -0000 Hi, I am trying to configure bhyve with FreeBSD Guest and Centos Guest. I am using FreeBSD 10.2 RELEASE or 11.0 CURRENT (November 19) as a host. The host is setup with bce as bridging interface. The network in the host is not working. (I did a similar setup with FreeBSD 10-STABLE and Centos using bge and the host network is running). I found a problem regarding bce and bridging: https://lists.freebsd.org/pipermail/freebsd-net/2010-August/026203.html but it is few years old. Have anybody problem with bce driver and bridging? Any solution or workarounds? Thank you very much in advance for your advice. Regards, lk From owner-freebsd-virtualization@freebsd.org Sat Dec 5 14:03:21 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0658EA41805 for ; Sat, 5 Dec 2015 14:03:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD93115CB for ; Sat, 5 Dec 2015 14:03:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tB5E3K1h029451 for ; Sat, 5 Dec 2015 14:03:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-virtualization@FreeBSD.org Subject: [Bug 203820] kernel panic when trying to unload vmm(4) and VirtualBox VMs are running Date: Sat, 05 Dec 2015 14:03:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-virtualization@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2015 14:03:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203820 John Baldwin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhb@FreeBSD.org --- Comment #5 from John Baldwin --- In general I think VM monitors assume that no other monitors are running. I believe OS X has a kernel-level API for monitors to use to try to mitigate this, but FreeBSD does not. For example, I fixed bhyve VMs to work across suspend and resume (of a host laptop), but that fix is specific to bhyve and does not support other VM monitors. In general VM monitors like bhyve assume that they "own" all of the VT-x (or SVM) state. They assume they are not sharing it. Just loading vmm.ko will _set_ various CPU control registers (MSRs) related to VT-x (VT-x includes a host of optional features that can be enabled selectively) which might confuse some other VMM that had set these controls to different values. (For bhyve see the sys/amd64/vmm/vmx/vmx.c vmx_init() routine run by vmm_init() in sys/amd64/vmm/vmm.c on module load.) In summary, it is not safe to even load multiple VMMs at the same time, much less run VMs from different VMMs concurrently. If FreeBSD does grow an API to support VM monitors the first iteration of it will probably fail attempts to load more than one VMM for this reason. -- You are receiving this mail because: You are the assignee for the bug.