From owner-freebsd-virtualization@freebsd.org Thu Aug 17 03:28:23 2017 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 C6978DC3A82 for ; Thu, 17 Aug 2017 03:28:23 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: from mail-pg0-x22d.google.com (mail-pg0-x22d.google.com [IPv6:2607:f8b0:400e: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 9250382AA7 for ; Thu, 17 Aug 2017 03:28:23 +0000 (UTC) (envelope-from rajil.s@gmail.com) Received: by mail-pg0-x22d.google.com with SMTP id u185so33641113pgb.1 for ; Wed, 16 Aug 2017 20:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=dsj/MytgcxulVv8jzKv2Yy3AoF72JRCXsOYDUmSNz8Y=; b=dwCphQRfPXQ0KI5kzRpcDpUmxxg0GatMUvaxSc/lU1KvT5vcPNvDIqIEN4tZ3QKo/E lIwHN1LySbJTT8qMpHrLxKR5OzH8B0kcMUfUfBcLrPSltinVFcS+LRS0lcjrklmthnXh OnBGsAoTAuT0RWo5oCns0R/4wNwE6O7u5MI3kGw+ZmzfK/CZuGTnQFLyUFaEa9z5p8xg WYfSRK7PaS4b6N8RcWvVXlfp7cgtjBp1EGpJajrKzBhmOMP8scAxa5bRx98uuYs1KZM0 bZ67B2Pnz6Eak+ZaUuqf74pwokkd0JdmPLYKWIYhXjQFXvui3JSgZKccTQkPTPVp1Ake pp7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=dsj/MytgcxulVv8jzKv2Yy3AoF72JRCXsOYDUmSNz8Y=; b=thqfmIbM/YhLcC1o/NaWpgeGJJuNJ4glrfCDls27aKM49m2y+Zj2LA2gY0+WFGayW/ a7uzL3arDo017q9rJ6jgemR7YyVuaWfDvkyBNkY7pene2zAA8I9k2Ny//7B7hXl6FnY3 2Ou4p7z3YjT1THwhxgUhQEP+Em5hUXZ/gGygxgOpRuBJ+Ju+wjDt9Uu3fKlCTPKiiRl1 hp1fVHRkOKIVgmP4wj+QmHnTXoDdxDVQCXNRWmfsYaORq13F2SSzVk1jr7iU4LgPsU5x aYdscTNQSJ/SJzqOLpr+2sGr2xhRkomJoWB2/lE1UB80HL3M+ssIRTDIvkJe1xVpb0fA K8fw== X-Gm-Message-State: AHYfb5i0FpJvBSfx0s/Q6HQIu/t2dVZhhMZAuJNu1zUHB0QmcRNpaZ3Q tAhPf3j8T5XKMXo6OD8= X-Received: by 10.84.167.2 with SMTP id c2mr4056725plb.367.1502940502908; Wed, 16 Aug 2017 20:28:22 -0700 (PDT) Received: from [172.16.1.28] (c-73-232-201-213.hsd1.tx.comcast.net. [73.232.201.213]) by smtp.gmail.com with ESMTPSA id c80sm3761497pfb.141.2017.08.16.20.28.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 20:28:22 -0700 (PDT) Subject: Re: My USB card is a bhyve killer To: freebsd-virtualization References: <131a715e-67bd-e9fc-b5ce-755259c00b79@freebsd.org> From: Rajil Saraswat Message-ID: Date: Wed, 16 Aug 2017 22:28:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <131a715e-67bd-e9fc-b5ce-755259c00b79@freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 17 Aug 2017 03:28:23 -0000 Setting -w flag (https://forums.freebsd.org/threads/47951/) using "ignore_bad_msr=1" also doesnt help, Aug 17 03:25:39: /usr/local/sbin/grub-bhyve -S -m /tank/vm/openhab1/device.map -M 512M -r hd0,msdos1 openhab1 Aug 17 03:25:42: [bhyve options: -c 1 -m 512M -AHPw -U 09a84879-8156-11e7-b407-0cc47adeccc0 -S] Aug 17 03:25:42: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/dev/zvol/vmpool/os9 -s 5:0,virtio-net,tap2,mac=58:9c:fc:07:cc:2d -s 6:0,passthru,129/0/0] Aug 17 03:25:42: [bhyve console: -l com1,stdio] Aug 17 03:25:42: starting bhyve (run 1) Aug 17 03:25:45: bhyve exited with status 139 Aug 17 03:25:45: destroying network device tap2 Aug 17 03:25:45: stopped On 08/16/2017 09:38 PM, Peter Grehan wrote: > Hi, > >> I have a PCIe USB card which is exported to the bhyve vm using >> passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos >> 7. Each time the OS has given a segmentation fault on bootup and killed >> the bhyve session. This is what i get in the bhyve-log: > > Is stderr logged anywhere ? That may have additional error output > from the bhyve passthru code. > >> The USB card works fine on the host and is detected by the xhci driver. >> The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card >> - Interface USB 3.0 4-Port" >> (https://www.amazon.com/gp/product/B00B6ZCNGM) >> >> ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 >> rev=0x10 hdr=0x00 >> vendor = 'Fresco Logic' >> device = 'FL1100 USB 3.0 Host Controller' >> class = serial bus >> subclass = USB > > Would you be able to post the output of > > pciconf -l -BbcV pci0:129:0:0 > > later, > > Peter.