Date: Thu, 20 Jun 2019 13:53:17 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Message-ID: <bug-205549-27103-emALaxWkxy@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205549-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-205549-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 --- Comment #12 from arkadyi <ark@dudevich.dn.ua> --- Maybe I misunderstood you. 1. First I patched pci_passthru.c < diff from 348779 < < D20623.diff 2. Second I patched pci_emul.c < diff from 348778 But bhyve can't build. Please see log bellow: cc -O2 -pipe -march=3Dcore2 -I/usr/src/sys -DINET -DINET6 -I/usr/src/sys/dev/e1000 -I/usr/src/sys/dev/mii -I/usr/src/sys/dev/usb/controller -g -O0 -MD -MF.depend.pci_passthru.o -MTpci_passthru.o -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers -W= error -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-argument= s=20 -c /usr/src/usr.sbin/bhyve/pci_passthru.c -o pci_passthru.o /usr/src/usr.sbin/bhyve/pci_passthru.c:700:6: error: implicit declaration of function 'caph_rights_limit' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (caph_rights_limit(pcifd, &rights) =3D=3D -1) ^ /usr/src/usr.sbin/bhyve/pci_passthru.c:700:6: note: did you mean 'cap_rights_limit'? /usr/src/sys/sys/capsicum.h:509:5: note: 'cap_rights_limit' declared here int cap_rights_limit(int fd, const cap_rights_t *rights); ^ /usr/src/usr.sbin/bhyve/pci_passthru.c:702:6: error: implicit declaration of function 'caph_ioctls_limit' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (caph_ioctls_limit(pcifd, pci_ioctls, nitems(pci_ioctls)) =3D=3D= -1) ^ /usr/src/usr.sbin/bhyve/pci_passthru.c:702:6: note: did you mean 'cap_ioctls_limit'? /usr/src/sys/sys/capsicum.h:519:5: note: 'cap_ioctls_limit' declared here int cap_ioctls_limit(int fd, const cap_ioctl_t *cmds, size_t ncmds); ^ /usr/src/usr.sbin/bhyve/pci_passthru.c:901:3: error: implicit declaration of function 'pci_emul_cmd_changed' is invalid in C99 [-Werror,-Wimplicit-function-declaration] pci_emul_cmd_changed(pi, cmd_old); ^ 3 errors generated. *** Error code 1 Stop. make: stopped in /usr/src/usr.sbin/bhyve --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205549-27103-emALaxWkxy>