From owner-freebsd-virtualization@FreeBSD.ORG Mon Apr 13 19:19:35 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85D5A33C for ; Mon, 13 Apr 2015 19:19:35 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (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 2434D970 for ; Mon, 13 Apr 2015 19:19:35 +0000 (UTC) Received: by widdi4 with SMTP id di4so85762499wid.0 for ; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) 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=vFu4r+QW2bapKBedeT3ZF9W29Wozb1FPqB/kSYYyx0I=; b=p2vVNzrY1fMRBE+6K1p39psRjghBhogBWpFfyRxSuNQl7UGpM7HJQE61DMOgd44/JA UJfmCuR8LLD/KcEqoB3dhaIapHyPm2n4StsTebkY47J9chWRKBEg+XuQxDcklrFMSAfb OZQ9KwYTjtVwllBWxSoCpzZVXqI9AmepAKNqx075Szvn8o8D2wrvWj69TNtyTfc5F1q2 /gJub2OEyWUhOyyMyilqZ+j4S9tRM2XYwkYLURnaPfCOt1It4Xilp9dMWKYgthjFJYqJ vOOK6NummupHkgtGOYgdGj1vJRAF3kog1iFxLstU2mQ4qpUXt7Ky6UuoIRywT+UAedp4 h+Pg== MIME-Version: 1.0 X-Received: by 10.194.89.7 with SMTP id bk7mr30342362wjb.127.1428952773641; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) Received: by 10.27.9.9 with HTTP; Mon, 13 Apr 2015 12:19:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 13 Apr 2015 12:19:33 -0700 Message-ID: Subject: Re: Problem hiding USB host controller From: Neel Natu To: "Luis P. Mendes" Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 13 Apr 2015 19:19:35 -0000 Hi Luis, On Fri, Apr 10, 2015 at 4:50 PM, Luis P. Mendes wrote: > Hi Neel, > > > I updated my STABLE to r281384M and applied the patch. It seems that > the patch solved the issue: > > # pciconf -vl | grep ppt > ppt0@pci0:0:20:0: class=0x0c0330 card=0x8c311849 chip=0x8c318086 > rev=0x05 hdr=0x00 > ppt1@pci0:0:26:0: class=0x0c0320 card=0x8c2d1849 chip=0x8c2d8086 > rev=0x05 hdr=0x00 > ppt2@pci0:1:0:0: class=0x010601 card=0x91721849 chip=0x91721b4b > rev=0x11 hdr=0x00 > > As I'm not a developer, please tell me whether this patch will be > added to STABLE or if I need to patch again when I update the system > in the future. > I have committed the patch to HEAD: https://svnweb.freebsd.org/base?view=revision&revision=281499 I'll MFC it to 10-stable in a couple of weeks. best Neel > Thank you very much, > > > Luis > > 2015-04-10 6:30 GMT+01:00 Neel Natu : >> Hi Luis, >> >> This following patch should do the trick: >> https://people.freebsd.org/~neel/patches/usb_pci_probe_default.patch >> >> The patch is against -current although it applies cleanly to 10-stable as well. >> >> best >> Neel >> >> On Thu, Apr 9, 2015 at 3:32 PM, Luis P. Mendes wrote: >>> Hi, >>> >>> 2015-04-09 22:25 GMT+01:00 Neel Natu : >>>> Hi Luis, >>>> >>>> On Thu, Apr 9, 2015 at 1:43 PM, Luis P. Mendes wrote: >>>>> Hi, >>>>> >>>>> I'm trying to passthrough a USB host controller (2.0 or 3.0) but there >>>>> seems to be some kind of problem. >>>>> >>>>> # uname -a >>>>> FreeBSD leao 10.1-STABLE FreeBSD 10.1-STABLE #0 r279201: Mon Feb 23 >>>>> 18:55:46 UTC 2015 >>>>> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >>>>> >>>>> VT-d is enabled in bios. >>>>> CPU is a Intel Xeon E3-1246v3 Haswell >>>>> >>>>> >>>>> # cat /boot/loader.conf >>>>> # load radeon firmware not presented >>>>> pptdevs="0/26/0 1/0/0 0/20/0" >>>>> blackhole_load="YES" >>>>> >>>>> # pciconf -lv >>>>> # only relevant >>>>> ehci0@pci0:0:26:0: class=0x0c0320 card=0x8c2d1849 chip=0x8c2d8086 >>>>> rev=0x05 hdr=0x00 >>>>> vendor = 'Intel Corporation' >>>>> device = 'Lynx Point USB Enhanced Host Controller' >>>>> class = serial bus >>>>> subclass = USB >>>>> >>>>> xhci0@pci0:0:20:0: class=0x0c0330 card=0x8c311849 chip=0x8c318086 >>>>> rev=0x05 hdr=0x00 >>>>> vendor = 'Intel Corporation' >>>>> device = 'Lynx Point USB xHCI Host Controller' >>>>> class = serial bus >>>>> subclass = USB >>>>> >>>>> ppt0@pci0:1:0:0: class=0x010601 card=0x91721849 chip=0x91721b4b >>>>> rev=0x11 hdr=0x00 >>>>> >>>>> >>>>> Only the 1:0:0 disk controler is hidden. The two USB controllers, one >>>>> ehci and one xhci are not. >>>>> >>>>> Why don't the controllers get hidden? >>>>> Is the blackhole_load="YES" still relevant? I tried with and without >>>>> that line to no avail. >>>>> Is my STABLE version too old? >>>>> >>>> >>>> The blackhole driver is not needed anymore since that functionality >>>> was moved into vmm.ko. >>>> >>>> Can you replace the line blackhole_load="YES" to vmm_load="YES" in loader.conf? >>> >>> The vmm_load="YES" line was already present. >>> The full contents of the file are: >>> >>> % cat /boot/loader.conf >>> net.fibs=4 >>> >>> radeonkmsfw_CAICOS_pfp_load="YES" >>> radeonkmsfw_CAICOS_me_load="YES" >>> radeonkmsfw_BTC_rlc_load="YES" >>> radeonkmsfw_CAICOS_mc_load="YES" >>> radeonkms_load="YES" >>> >>> vmm_load="YES" >>> nmdm_load="YES" >>> if_bridge_load="YES" >>> if_tap_load="YES" >>> >>> pptdevs="1/0/0 0/20/0 0/26/0" >>> >>> >>> >>> Thanks, >>> >>> >>> Luis From owner-freebsd-virtualization@FreeBSD.ORG Tue Apr 14 14:30:51 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67256A2A for ; Tue, 14 Apr 2015 14:30:51 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 42F729E3 for ; Tue, 14 Apr 2015 14:30:51 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t3EEUpA2014026 for ; Tue, 14 Apr 2015 14:30:51 GMT (envelope-from root@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t3EEUptB014025; Tue, 14 Apr 2015 14:30:51 GMT (envelope-from root) Date: Tue, 14 Apr 2015 14:30:50 +0000 To: freebsd-virtualization@freebsd.org From: "gnn (George Neville-Neil)" Subject: [Differential] [Updated] D1944: PF and VIMAGE fixes Message-ID: X-Priority: 3 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-Cc: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: NDc2NzM0MzY4OTdiYThiNTU1MjY2ZDZmMTJiIFUtJJo= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , 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 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, 14 Apr 2015 14:30:51 -0000 gnn added a comment. Any update on this? REVISION DETAIL https://reviews.freebsd.org/D1944 To: nvass-gmx.com, bz, zec, trociny, glebius, rodrigc, kristof, gnn Cc: freebsd-virtualization, freebsd-pf, freebsd-net From owner-freebsd-virtualization@FreeBSD.ORG Thu Apr 16 20:13:40 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F0AD285; Thu, 16 Apr 2015 20:13:40 +0000 (UTC) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (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 D96A71062; Thu, 16 Apr 2015 20:01:14 +0000 (UTC) Received: by igblo3 with SMTP id lo3so122788699igb.1; Thu, 16 Apr 2015 13:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wxXFPjEvn8FWWXxeLtzb10k31No8BDPOIUww6F67HhQ=; b=YFetCoubawa4H9/qXcrmbtS1y/NDpDvBb7gMsBEE9y/Qj+ZNxSraVnaIpiJk3wM3rQ G8p4m1n0UXyv+cxqdQVlz9XiqTg47kBZVfrlj9PHXd1Ar99LrWQ5O1RurECk+p8VZzy+ fOTgjTzWAlKLmTAPQsmFms9rDn/Tlw5fiLkMx9q8pgDdt56LLMwedDlFl37IOPD8G4G/ QrcTFQC1tHlXmC3HdRuLNLAcS25ZWywhhZZvyrNGk2ZybDvWtNl39FVbfpgYF2axbcin jpEEjJqZ0tLDn1va0ahhLpP9vQZS8AU6dCOH/zp/0NfeZ3w5XaPl0hQkyl/8NP7e/dck r8EQ== MIME-Version: 1.0 X-Received: by 10.50.221.98 with SMTP id qd2mr8038478igc.37.1429214472175; Thu, 16 Apr 2015 13:01:12 -0700 (PDT) Received: by 10.36.53.199 with HTTP; Thu, 16 Apr 2015 13:01:12 -0700 (PDT) Date: Thu, 16 Apr 2015 23:01:12 +0300 Message-ID: Subject: Panic on 11.0-CURRENT when trying "kldload vmm" From: Markiyan Kushnir To: freebsd-current@freebsd.org, freebsd-virtualization@freebsd.org Content-Type: multipart/mixed; boundary=001a11347f20ec4da30513dcec6c 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: Thu, 16 Apr 2015 20:13:40 -0000 --001a11347f20ec4da30513dcec6c Content-Type: text/plain; charset=UTF-8 22:13:~$ uname -a FreeBSD mkushnir.mooo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #3 r281432: Sun Apr 12 01:35:34 EEST 2015 root@:/work/obj/work/src.svn/sys/MAREK amd64 Went kernel panic twice today when trying to load vmm. Never seen this before (the previous kernel was built out of r278973, Feb 19 2015, was doing well). The panic is not reliable in the sense I could not reproduce it at will just loading/unloading vmm. I regularly work in my bhyve guests, sometimes swap between vmm and vboxdrv, all my scenarios haven't changed from the previous Feb kernel. Except that I re-built my today panicking kernel extending the MINIMAL config (including what I need) as opposed to the previous one "reducing" GENERIC (excluding what I don't need). Both today panic's back traces look identical. Attaching core.txt.1 (the latter one) and the output of "sysctl kern.conftxt". Let me know if someone wants to debug it. Thanks, Markiyan. --001a11347f20ec4da30513dcec6c Content-Type: application/octet-stream; name=conftxt Content-Disposition: attachment; filename=conftxt Content-Transfer-Encoding: base64 X-Attachment-Id: f_i8kkxsez0 a2Vybi5jb25mdHh0OiBvcHRpb25zCUNPTkZJR19BVVRPR0VORVJBVEVECmlkZW50CU1BUkVLCm1h Y2hpbmUJYW1kNjQKY3B1CUhBTU1FUgptYWtlb3B0aW9ucwlXSVRIX0NURj0xCm1ha2VvcHRpb25z CURFQlVHPS1nCm9wdGlvbnMJRU5BQkxFX0FMQVJUCm9wdGlvbnMJVEVSTUlOQUxfS0VSTl9BVFRS PShGR19ZRUxMT1d8QkdfQkxBQ0spCm9wdGlvbnMJVEVSTUlOQUxfTk9STV9BVFRSPShGR19HUkVF TnxCR19CTEFDSykKb3B0aW9ucwlNU0dCVUZfU0laRT02NTUzNgpvcHRpb25zCURVTU1ZTkVUCm9w dGlvbnMJSVBESVZFUlQKb3B0aW9ucwlJUEZJUkVXQUxMCm9wdGlvbnMJQUxUX0JSRUFLX1RPX0RF QlVHR0VSCm9wdGlvbnMJS0RCX1VOQVRURU5ERUQKb3B0aW9ucwlHRU9NX0xBQkVMCm9wdGlvbnMJ R0VPTV9QQVJUX0dQVApvcHRpb25zCUxJTlNZU0ZTCm9wdGlvbnMJTElOUFJPQ0ZTCm9wdGlvbnMJ Q09NUEFUX0xJTlVYMzIKb3B0aW9ucwlQU0VVRE9GUwpvcHRpb25zCVBST0NGUwpvcHRpb25zCU1T RE9TRlMKb3B0aW9ucw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ZQl2aXJ0aW9fcGNpCmRldmljZQl2dG5ldApkZXZpY2UJdmlydGlv X2JsawpkZXZpY2UJdmlydGlvX3Njc2kKZGV2aWNlCXZpcnRpb19iYWxsb29uCmRldmljZQlzcGVh a2VyCmRldmljZQlzbWJpb3MKZGV2aWNlCWNvcmV0ZW1wCmRldmljZQljcHVjdGwKZGV2aWNlCXNt YgpkZXZpY2UJc21idXMKZGV2aWNlCWljaHNtYgpkZXZpY2UJaWNod2QKZGV2aWNlCWZpcmV3aXJl CmRldmljZQluZXRtYXAKCg== --001a11347f20ec4da30513dcec6c-- From owner-freebsd-virtualization@FreeBSD.ORG Thu Apr 16 20:20:31 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47CFE786; Thu, 16 Apr 2015 20:20:31 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (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 D029A1202; Thu, 16 Apr 2015 20:20:30 +0000 (UTC) Received: by wgyo15 with SMTP id o15so93209547wgy.2; Thu, 16 Apr 2015 13:20:29 -0700 (PDT) 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=Oxl/MrIsy1L90k28iwBKmBaq+fg0bSjqEVLQ/CV3DdU=; b=n3KYsTSNWxYwFyg8MkRb+guRDX8ZXsGRz7S4b7IEBlt3fQ4LTzOrKGGu4jVC+u5fZQ eZKiZiVsKNpMn0yHz+kYXvvTbNmiDh7HFenJDiZ84Pdb6gfJs9LZ5In/9mUfCFcBbigK KsPjeFRH8F42OBYpHOb+oU2zNOG2S51UknhWecNPnPzwuENh5HuCQw2qy4kKpSByumZq b7RHekeT7z5pgi7I8pVvlg16itSj2PQ63Sed3kDjRn88mbd0NtPeeYeKR/T3SKaAEuvb GII8Laehw043IArIXop30G3mKhNPJ7h1Bz8wdL5CgrSoy0Ym91h4UxF4MnoUI6caRD9N D7SQ== MIME-Version: 1.0 X-Received: by 10.194.6.228 with SMTP id e4mr62975551wja.63.1429215629283; Thu, 16 Apr 2015 13:20:29 -0700 (PDT) Received: by 10.27.52.18 with HTTP; Thu, 16 Apr 2015 13:20:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Apr 2015 13:20:29 -0700 Message-ID: Subject: Re: Panic on 11.0-CURRENT when trying "kldload vmm" From: Neel Natu To: Markiyan Kushnir Cc: FreeBSD current , "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: Thu, 16 Apr 2015 20:20:31 -0000 Hi Markiyan, On Thu, Apr 16, 2015 at 1:01 PM, Markiyan Kushnir wrote: > 22:13:~$ uname -a > FreeBSD mkushnir.mooo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #3 > r281432: Sun Apr 12 01:35:34 EEST 2015 > root@:/work/obj/work/src.svn/sys/MAREK amd64 > > > Went kernel panic twice today when trying to load vmm. Never seen > this before (the previous kernel was built out of r278973, Feb 19 > 2015, was doing well). The panic is not reliable in the sense I could > not reproduce it at will just loading/unloading vmm. > > I regularly work in my bhyve guests, sometimes swap between vmm and > vboxdrv, all my scenarios haven't changed from the previous Feb > kernel. Except that I re-built my today panicking kernel extending > the MINIMAL config (including what I need) as opposed to the previous > one "reducing" GENERIC (excluding what I don't need). > > Both today panic's back traces look identical. Attaching core.txt.1 > (the latter one) and the output of "sysctl kern.conftxt". Let me know > if someone wants to debug it. > I don't think that 'core.txt.1' made it through. Regardless, can you try to reproduce after applying r281559. I think it should fix the panic. https://svnweb.freebsd.org/changeset/base/281559 best Neel > Thanks, > Markiyan. > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://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 Apr 16 20:30:39 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFF08BBC; Thu, 16 Apr 2015 20:30:39 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (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 942B212FB; Thu, 16 Apr 2015 20:30:39 +0000 (UTC) Received: by igblo3 with SMTP id lo3so123432405igb.1; Thu, 16 Apr 2015 13:30:39 -0700 (PDT) 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=jy7nVzrMa8hWHkaahNYLTUZHkgFUoogheajHmnJeO3g=; b=Lw9nC0/noNnjos5a4MsIv+QTEciZrMjjSPoKw9knsbO2udVnQF2fOsApSYte7Mm+GY Z1LOXUMMtOrX6x3dh0MKHIGiPHChLkZnQ9Q1GbWTbNBxZc1bd7ctvkZBqQfUaFG5tKUz q/jI99BMItIJ+VUvNVgKIoDk2sNQz5z0E1BFbCF6WebJWzHojjVslETfUv5gUsmPUunH WgzI/kxuLRn8pJ3w0sBjgOIDckNp+i8y7WeNkQDOKa7zIvXFiRdM6i6SqGA4pIRr37dA 06aJBZF9TNwD8psQP0BjYwZfSxF3JbjUnfw5VUHrwqbbNKJWYgLS4C0zzRZx00rdtOEA eGvQ== MIME-Version: 1.0 X-Received: by 10.107.155.13 with SMTP id d13mr45042968ioe.29.1429216238930; Thu, 16 Apr 2015 13:30:38 -0700 (PDT) Received: by 10.36.53.199 with HTTP; Thu, 16 Apr 2015 13:30:38 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Apr 2015 23:30:38 +0300 Message-ID: Subject: Re: Panic on 11.0-CURRENT when trying "kldload vmm" From: Markiyan Kushnir To: Neel Natu Cc: FreeBSD current , "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: Thu, 16 Apr 2015 20:30:39 -0000 2015-04-16 23:20 GMT+03:00 Neel Natu : > Hi Markiyan, > > On Thu, Apr 16, 2015 at 1:01 PM, Markiyan Kushnir > wrote: >> 22:13:~$ uname -a >> FreeBSD mkushnir.mooo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #3 >> r281432: Sun Apr 12 01:35:34 EEST 2015 >> root@:/work/obj/work/src.svn/sys/MAREK amd64 >> >> >> Went kernel panic twice today when trying to load vmm. Never seen >> this before (the previous kernel was built out of r278973, Feb 19 >> 2015, was doing well). The panic is not reliable in the sense I could >> not reproduce it at will just loading/unloading vmm. >> >> I regularly work in my bhyve guests, sometimes swap between vmm and >> vboxdrv, all my scenarios haven't changed from the previous Feb >> kernel. Except that I re-built my today panicking kernel extending >> the MINIMAL config (including what I need) as opposed to the previous >> one "reducing" GENERIC (excluding what I don't need). >> >> Both today panic's back traces look identical. Attaching core.txt.1 >> (the latter one) and the output of "sysctl kern.conftxt". Let me know >> if someone wants to debug it. >> > > I don't think that 'core.txt.1' made it through. > > Regardless, can you try to reproduce after applying r281559. I think > it should fix the panic. > > https://svnweb.freebsd.org/changeset/base/281559 > ah ok. Saved on google drive: https://drive.google.com/file/d/0B9Q-zpUXxqCnam0zNjFRcF9XMHc/view?usp=sharing and yes, will shift to r281559, and see if it's ok. Thanks, Markiyan. > best > Neel > >> Thanks, >> Markiyan. >> >> _______________________________________________ >> freebsd-virtualization@freebsd.org mailing list >> http://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 Apr 16 21:43:34 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92205AEA; Thu, 16 Apr 2015 21:43:34 +0000 (UTC) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (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 3647C1B11; Thu, 16 Apr 2015 21:43:34 +0000 (UTC) Received: by wizk4 with SMTP id k4so205608wiz.1; Thu, 16 Apr 2015 14:43:32 -0700 (PDT) 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=I++R2H63xivg9uiu1ECIdRpHjlJ8qJmGnEDGnIaT/v0=; b=M/TO8sY097xeEkS/OQ/86HFpA0O1oLVpVHcYIm1Wt0P5HDepmbPNMgllJq2vtnPKEE uaSDcNIaDCXF/Ikij3Zpj5LTU+btL5Lc0q6cIcRMKcchi2QJ/zLkw3M+veHn4z2iGiFi 4DvN7ADqavlOb67KT6lF+G5XWT3XBlIwt6iVQ39kuwcD5JLbYSBeZYdNCZbSHWJuPUzU 3ZfODwrvbpAs+DzYuM0hd90Q+uloXpcB3mhRozAI8wud1JUQdQNnMc0jTqSlDZ4UR0H/ MDGef6rY7WBSWzJqdgD3ZrodFKXVz89EhWB2v/Hn2dVZJNIp3mp/XoQGy6Q2VJut9ZhL R48w== MIME-Version: 1.0 X-Received: by 10.180.78.136 with SMTP id b8mr8679163wix.76.1429220612567; Thu, 16 Apr 2015 14:43:32 -0700 (PDT) Received: by 10.27.52.18 with HTTP; Thu, 16 Apr 2015 14:43:32 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Apr 2015 14:43:32 -0700 Message-ID: Subject: Re: Panic on 11.0-CURRENT when trying "kldload vmm" From: Neel Natu To: Markiyan Kushnir Cc: FreeBSD current , "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: Thu, 16 Apr 2015 21:43:34 -0000 Hi Markiyan, On Thu, Apr 16, 2015 at 1:30 PM, Markiyan Kushnir wrote: > 2015-04-16 23:20 GMT+03:00 Neel Natu : >> Hi Markiyan, >> >> On Thu, Apr 16, 2015 at 1:01 PM, Markiyan Kushnir >> wrote: >>> 22:13:~$ uname -a >>> FreeBSD mkushnir.mooo.com 11.0-CURRENT FreeBSD 11.0-CURRENT #3 >>> r281432: Sun Apr 12 01:35:34 EEST 2015 >>> root@:/work/obj/work/src.svn/sys/MAREK amd64 >>> >>> >>> Went kernel panic twice today when trying to load vmm. Never seen >>> this before (the previous kernel was built out of r278973, Feb 19 >>> 2015, was doing well). The panic is not reliable in the sense I could >>> not reproduce it at will just loading/unloading vmm. >>> >>> I regularly work in my bhyve guests, sometimes swap between vmm and >>> vboxdrv, all my scenarios haven't changed from the previous Feb >>> kernel. Except that I re-built my today panicking kernel extending >>> the MINIMAL config (including what I need) as opposed to the previous >>> one "reducing" GENERIC (excluding what I don't need). >>> >>> Both today panic's back traces look identical. Attaching core.txt.1 >>> (the latter one) and the output of "sysctl kern.conftxt". Let me know >>> if someone wants to debug it. >>> >> >> I don't think that 'core.txt.1' made it through. >> >> Regardless, can you try to reproduce after applying r281559. I think >> it should fix the panic. >> >> https://svnweb.freebsd.org/changeset/base/281559 >> > > ah ok. Saved on google drive: > https://drive.google.com/file/d/0B9Q-zpUXxqCnam0zNjFRcF9XMHc/view?usp=sharing > Yup, its the one that is fixed in r281559. best Neel > and yes, will shift to r281559, and see if it's ok. > > Thanks, > Markiyan. > >> best >> Neel >> >>> Thanks, >>> Markiyan. >>> >>> _______________________________________________ >>> freebsd-virtualization@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" From owner-freebsd-virtualization@FreeBSD.ORG Sat Apr 18 20:12:17 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A04D3CA0 for ; Sat, 18 Apr 2015 20:12:17 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (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 24A2FC4B for ; Sat, 18 Apr 2015 20:12:17 +0000 (UTC) Received: by lagv1 with SMTP id v1so102059979lag.3 for ; Sat, 18 Apr 2015 13:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0RBrklDHTmD2fvLx+t+bXV+k7DU6ij7sXUan+QWX+nA=; b=l2XRGUiDfE81XaDsMSoUZwPSnM/PkmoYBbxtUltM0494V2WCOvhJ1OEvrPizBQJ7tw J9YPCe17V6sPBlOewpQN71R5zazKA/P6xhQ8LdtJNLftXf01uEzQKdzP/cz24ZEK6UFJ j9vsk9FBWJPIK+1l2V2n0EkovHo6kGeQlILyZwxVdvtJnuFADqKX/azCf4QVgZ3tS0wX G1gfEbwGiLVjRRS9d7KHbGdaZG9zPIbVrxiPdQdWYps4OTGT8nz01HpAfIr5swmtJb8E QLK5yO1xOus+GUrFhBdTzI4275rRP0hvRmUHhgKTJI26GFDdqAkPhuyGCQXM4CbBlS3i k7hQ== X-Received: by 10.112.134.202 with SMTP id pm10mr9638274lbb.34.1429387935196; Sat, 18 Apr 2015 13:12:15 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([134.249.139.101]) by mx.google.com with ESMTPSA id i3sm1143181lbs.21.2015.04.18.13.12.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Apr 2015 13:12:14 -0700 (PDT) Sender: Alexander Motin Message-ID: <5532BA9B.80600@FreeBSD.org> Date: Sat, 18 Apr 2015 23:12:11 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Julian Hsiao , "freebsd-virtualization@freebsd.org" Subject: Re: Bhyve storage improvements (was: Several bhyve quirks) References: <5522EEE0.5010807@FreeBSD.org> In-Reply-To: <5522EEE0.5010807@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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, 18 Apr 2015 20:12:17 -0000 On 06.04.2015 23:38, Alexander Motin wrote: >> I had some time to try it out today, but I'm still having issues: > > I've just made experiment alike to your with making bhyve to work on top > of GEOM device instead of preferable "dev" mode of ZVOL. And I indeed > reproduced the problem. But the problem that I see is not related to the > block size. The block size is reported to the guest correctly as 4K, and > as I can see it works as such at least in FreeBSD guest. > > The problem is in the way how bhyve inter-operates with block/GEOM > devices. bhyve sends requests to the kernel with preadv()/pwritev() > calls, specifying scatter/gather lists of buffer addresses provided by > the guest. But GEOM code can not handle scatter/gather lists, only > sequential buffer, and so single request is split into several. The > problem is that splitting happens according to scatter/gather elements, > and those elements in general case may not be multiple to the block > size, that is fatal for GEOM and any block device. > > I am not yet sure how to fix this problem. The most straightforward way > is to copy the data at some point to collect elements of scatter/gather > list into something sequential to pass to GEOM, but that requires > additional memory allocation, and the copying is not free. May be some > cases could be optimized to work without copying but with some clever > page mapping, but that seems absolutely not trivial. I've committed the workaround to FreeBSD head at r281700. -- Alexander Motin