bhyve/e1000: sigbus if using renamed interface
Fedorov, Aleksandr
aleksandr.fedorov at itglobal.com
Tue Aug 18 06:29:54 UTC 2020
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 at freebsd.org <owner-freebsd-virtualization at freebsd.org> On Behalf Of moridin at mm.st
Sent: Thursday, August 13, 2020 12:52 PM
To: virtualization at 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 at freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe at freebsd.org"
More information about the freebsd-virtualization
mailing list