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>
index | next in thread | previous in thread | raw e-mail
What is the FreeBSD version?
The main problem is that bhyve supports various network backends: tap, netmap / 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=vm1
-----Original Message-----
From: owner-freebsd-virtualization@freebsd.org <owner-freebsd-virtualization@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/uefi-firmware/BHYVE_UEFI.fd test
zsh: bus error (core dumped)
Getting this in 2 different places in code, though the reason must be the same?
Program terminated with signal SIGBUS, Bus error.
#0 cond_signal_common (cond=0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:444
444 if (pshared || cvp->__has_user_waiters == 0)
[Current thread is 1 (LWP 101895)]
(gdb) bt
#0 cond_signal_common (cond=0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:444
#1 _thr_cond_signal (cond=0x800e47088) at
/usr/src/lib/libthr/thread/thr_cond.c:551
#2 0x0000000000237dff in e82545_tx_thread (param=0x800e47000) at
/usr/src/usr.sbin/bhyve/pci_e82545.c:1493
#3 0x000000080062207b in thread_start (curthread=0x800e12500) at
/usr/src/lib/libthr/thread/thr_create.c:292
#4 0x0000000000000000 in ?? ()
Program terminated with signal SIGBUS, Bus error.
#0 _mutex_owned (curthread=0x800e12500, mp=0x5a5a5a5a5a5a5a5a) at
/usr/src/lib/libthr/thread/thr_mutex.c:1169
1169 if (PMUTEX_OWNER_ID(mp) != TID(curthread))
[Current thread is 1 (LWP 101809)]
(gdb) bt
#0 _mutex_owned (curthread=0x800e12500, mp=0x5a5a5a5a5a5a5a5a) at
/usr/src/lib/libthr/thread/thr_mutex.c:1169
#1 0x000000080062d848 in cond_wait_common (cond=<optimized out>, mutex=0x800e47018, abstime=0x0, cancel=1)
at /usr/src/lib/libthr/thread/thr_cond.c:372
#2 0x000000080062dc61 in __thr_cond_wait (cond=0x800e12500,
mutex=0x5a5a5a5a5a5a5a5a)
at /usr/src/lib/libthr/thread/thr_cond.c:395
#3 0x0000000000237e39 in e82545_tx_thread (param=0x800e47000) at
/usr/src/usr.sbin/bhyve/pci_e82545.c:1494
#4 0x000000080062207b in thread_start (curthread=0x800e12500) at
/usr/src/lib/libthr/thread/thr_create.c:292
#5 0x0000000000000000 in ?? ()
_______________________________________________
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"
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89001bc656eb463cb40566a63f3bea82>
