From owner-freebsd-virtualization@freebsd.org Sun Feb 28 05:28:33 2016 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 01860AB7FB8 for ; Sun, 28 Feb 2016 05:28:32 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 8FCE2197C for ; Sun, 28 Feb 2016 05:28:32 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id p65so30311867wmp.1 for ; Sat, 27 Feb 2016 21:28:32 -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; bh=fwbslW3/H9lwPiNEYmhthvnpG6ixQ22UjjHBnFNXmXQ=; b=eUVzXvyV8Q6GjcFcSoCJZ15nd3J2ckNAYMQtKOY/X68OqDSrLYbzPm4pTxAumQ4Gb5 Sm9Xy00891wi5YEq4LKdzFcKh6NcU2y0du6aJma51kvaQwgv0hHj2IZ0ewrIVRb+ZKcC T+1og82RNKz/4ldGz1Q7vanlf2wIUZl5D160kFRV784cz9tN/zcNo9tY1jL8VPXPaXOb b4tuV6lBb5TwVxp69hc6g/1qWl7vb3YhrPs5++J/wHeTt1SX/HP7H7Kdwps8wL2tsEQi gxbSQ5rRktrm5x9EGvx2peijIZhw+kfTcN9pLbu64zTep8DgRqptPDpRgRhUemH+NOHk PRZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=fwbslW3/H9lwPiNEYmhthvnpG6ixQ22UjjHBnFNXmXQ=; b=lOQpNtddKHmcaST0j/MOKjnV2QAmODpwl32K8Xxf66o3I9bhaQvb+pO29GybWlJDTe RhhYy0k1KTib0w0DIfZNq9vGApOny2uS10+EMBvPWsiD2G7cvuhR/q6f9CnMjqmuy/mY tYbShIH6mvaKvNM49o1N0S71o9YiBqNxw4eAdyfvW5TIInP+Tu2RHFSaSukQUBl9shaN yOdPFv7NeXy/8TK6IJSCNGU7uc/QZR69pH87aK402j3dtBHyD35K4btiy3qwwzscM+md aJ6RtTVBd9G7PBzB0HIBRt4qhlWhvuD29IjGRvGlq/hwhjbBcDdlJt32Tygz4+sqz2OB hPYg== X-Gm-Message-State: AD7BkJImQD+n2knC5ubg8odM/MEgcS/ZiTcXnH64ZoDTN2Z6Owb5awTjA50E5tg5TM2eCWJN3ajYibPcxYTFbQ== MIME-Version: 1.0 X-Received: by 10.194.9.34 with SMTP id w2mr3523378wja.170.1456637310294; Sat, 27 Feb 2016 21:28:30 -0800 (PST) Received: by 10.27.81.70 with HTTP; Sat, 27 Feb 2016 21:28:30 -0800 (PST) In-Reply-To: <56D173DC.9040805@bader-muenchen.de> References: <56D173DC.9040805@bader-muenchen.de> Date: Sat, 27 Feb 2016 21:28:30 -0800 Message-ID: Subject: Re: ath0 (wlan0) not working in virtulised guest with bhyve From: Neel Natu To: richard bader 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: Sun, 28 Feb 2016 05:28:33 -0000 Hi Richard, On Sat, Feb 27, 2016 at 2:01 AM, richard bader wrote: > Hello, > > using ath0 (and wlan) on the host is working fine. But trying the same on > the guest does not work. > > on the host freebsd 10.2 ist running > on the guest freebsd 10.3 (10.3-BETA2 FreeBSD 10.3-BETA2 #0) is running > > the guest was started with: > /usr/sbin/bhyve -c 2 -m 2048M -A -H -P -g 0 -s 0:0,hostbridge -s > 1:0,lpc -s 2:0,virtio-net,tap0 -s 3:0,virtio-net,tap1 -s > 4:0,virtio-blk,wlan.bader.loc.img -s 5,passthru,5/0/0 -l com1,stdio wlan > > As simple experiment I try to scan for wlans using: > root@wlan:~ #ifconfig wlan0 create wlandev ath0 && ifconfig wlan0 up scan > but no wlan appears. > > > As adrian chadd (freebsd-wireless@freebsd.org) noticed, the irq16 is not > working: > > root@wlan:~ # vmstat -i > interrupt total rate > irq4: uart0 224 0 > cpu0:timer 10956 25 > irq265: virtio_pci0 295 0 > irq271: virtio_pci2 1267 2 > cpu1:timer 2982 7 > Total 15724 36 > > > root@wlan:~ # dmesg | grep irq > ioapic0 irqs 0-23 on motherboard > atrtc0: port 0x70-0x71 irq 8 on acpi0 > attimer0: port 0x40-0x43 irq 0 on acpi0 > virtio_pci0: port 0x2000-0x201f mem > 0xc0000000-0xc0001fff irq 16 at device 2.0 on pci0 > virtio_pci1: port 0x2020-0x203f mem > 0xc0002000-0xc0003fff irq 17 at device 3.0 on pci0 > virtio_pci2: port 0x2040-0x207f mem > 0xc0004000-0xc0005fff irq 18 at device 4.0 on pci0 > ath0: mem 0xc0010000-0xc001ffff irq 16 at device 7.0 on pci0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 > atkbd0: irq 1 on atkbdc0 > > > > the output of 'ifconfig wlan0' is the same as on the working host: > > > root@wlan:~ # dmesg | grep ath0 > ath0: mem 0xc0010000-0xc001ffff irq 16 at device 5.0 on pci0 > ath0: [HT] enabling HT modes > ath0: [HT] enabling short-GI in 20MHz mode > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR9287 mac 384.2 RF5133 phy 15.15 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > > > any hints to get it working? > I suspect that the ath0 controller does not support MSI/MSI-x interrupts. The output of 'pciconf -lvbc' on the host will confirm if this is the case. best Neel > thanks > > richard > _______________________________________________ > 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"