Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2020 06:29:47 +0000
From:      "Fedorov, Aleksandr" <aleksandr.fedorov@itglobal.com>
To:        "moridin@mm.st" <moridin@mm.st>, "virtualization@freebsd.org" <virtualization@freebsd.org>
Subject:   RE: bhyve/e1000: sigbus if using renamed interface
Message-ID:  <89001bc656eb463cb40566a63f3bea82@itglobal.com>
In-Reply-To: <862bb8c6-5c6a-8ced-d9c3-0302336a9816@mm.st>
References:  <862bb8c6-5c6a-8ced-d9c3-0302336a9816@mm.st>

next in thread | previous in thread | raw e-mail | index | archive | help
What is the FreeBSD version?

The main problem is that bhyve supports various network backends: tap, netm=
ap / vale, netgraph.
And the tap backend is selected using the "tap" prefix. So, it is currently=
 not possible to use the renamed tap interface.

Maybe we should thinking about introducing an additional parameter:
bhyve ... -s2,e1000,tap,dev=3Dvm1

-----Original Message-----
From: owner-freebsd-virtualization@freebsd.org <owner-freebsd-virtualizatio=
n@freebsd.org> On Behalf Of moridin@mm.st
Sent: Thursday, August 13, 2020 12:52 PM
To: virtualization@freebsd.org
Subject: bhyve/e1000: sigbus if using renamed interface

Steps to reproduce:

# ifconfig create tap1 name vm1
# bhyve -s0,hostbridge -s1,lpc -s2,e1000,vm1 -lbootrom,/usr/local/share/uef=
i-firmware/BHYVE_UEFI.fd test
zsh: bus error (core dumped)

Getting this in 2 different places in code, though the reason must be the s=
ame?

Program terminated with signal SIGBUS, Bus error.
#0  cond_signal_common (cond=3D0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:444
444             if (pshared || cvp->__has_user_waiters =3D=3D 0)
[Current thread is 1 (LWP 101895)]
(gdb) bt
#0  cond_signal_common (cond=3D0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:444
#1  _thr_cond_signal (cond=3D0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:551
#2  0x0000000000237dff in e82545_tx_thread (param=3D0x800e47000) at
/usr/src/usr.sbin/bhyve/pci_e82545.c:1493
#3  0x000000080062207b in thread_start (curthread=3D0x800e12500) at
/usr/src/lib/libthr/thread/thr_create.c:292
#4  0x0000000000000000 in ?? ()

Program terminated with signal SIGBUS, Bus error.
#0  _mutex_owned (curthread=3D0x800e12500, mp=3D0x5a5a5a5a5a5a5a5a) at
/usr/src/lib/libthr/thread/thr_mutex.c:1169
1169            if (PMUTEX_OWNER_ID(mp) !=3D TID(curthread))
[Current thread is 1 (LWP 101809)]
(gdb) bt
#0  _mutex_owned (curthread=3D0x800e12500, mp=3D0x5a5a5a5a5a5a5a5a) at
/usr/src/lib/libthr/thread/thr_mutex.c:1169
#1  0x000000080062d848 in cond_wait_common (cond=3D<optimized out>, mutex=
=3D0x800e47018, abstime=3D0x0, cancel=3D1)
     at /usr/src/lib/libthr/thread/thr_cond.c:372
#2  0x000000080062dc61 in __thr_cond_wait (cond=3D0x800e12500,
mutex=3D0x5a5a5a5a5a5a5a5a)
     at /usr/src/lib/libthr/thread/thr_cond.c:395
#3  0x0000000000237e39 in e82545_tx_thread (param=3D0x800e47000) at
/usr/src/usr.sbin/bhyve/pci_e82545.c:1494
#4  0x000000080062207b in thread_start (curthread=3D0x800e12500) at
/usr/src/lib/libthr/thread/thr_create.c:292
#5  0x0000000000000000 in ?? ()

_______________________________________________
freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/m=
ailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs=
d.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89001bc656eb463cb40566a63f3bea82>