Hello to everyone.
I'm trying to apply the corvin's patches related to the passthrough of a gvt-d intel GPU. Corvin some sime ago gave me some scripts that I have always used to apply the patches needed to passthru of my nvidia GPU to a linux vm. But today I've realized that inside his repository there are the patches necessary to passthru also my Intel GPU. So,I tried to apply those patches,that you can find here :
and this is what I did :
everything went good until this point :
I don't know the reason of this error. I don't know if I've used a wrong procedure to apply those patches. I don't know if there is some error inside the code. Someone more experienced than me,can help me to understand what to do ? Below I have added all the scripts that Corvin gave to me and that I have always used to patch bhyve to allow the passthru of the NVidia GPU,not of the intel GPU. If you want to give a look at the code,you could understand where is the error. Very thanks.
build.sh : https://pastebin.ubuntu.com/p/H4fCTQk5Zd/
build_branch.sh : https://pastebin.ubuntu.com/p/zMNSdqDBbQ/
setup_git.sh : https://pastebin.ubuntu.com/p/gNtbK7Qfzz/
I'm trying to apply the corvin's patches related to the passthrough of a gvt-d intel GPU. Corvin some sime ago gave me some scripts that I have always used to apply the patches needed to passthru of my nvidia GPU to a linux vm. But today I've realized that inside his repository there are the patches necessary to passthru also my Intel GPU. So,I tried to apply those patches,that you can find here :
Code:
https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/gvt-d
and this is what I did :
Code:
# ./build_branch.sh origin/phab/corvink/gvt-d --without-bhf --verbose
everything went good until this point :
Code:
# ./build_branch.sh origin/phab/corvink/gvt-d --without-bhf --verbose
cc -O2 -pipe -fno-common -I/usr/src/usr.sbin/bhyve/../../contrib/lib9p -I/usr/src/sys -DINET -DINET6
-DNETGRAPH -I/usr/src/sys/dev/e1000 -I/usr/src/sys/dev/mii -I/usr/src/sys/dev/usb/controller -fPIE
-g -gz=zlib -std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers -Werror -Wa
ll -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-un
used-const-variable -Wno-error=unused-but-set-variable -Wno-tautological-compare -Wno-unused-value -
Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-ad
dress-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments
-pie -o bhyve.full acpi_device.o atkbdc.o acpi.o audio.o bhyvegc.o bhyverun.o block_if.o bootrom.o
config.o console.o ctl_util.o ctl_scsi_all.o e820.o fwctl.o gdb.o hda_codec.o inout.o ioapic.o kern
emu_dev.o mem.o mevent.o mptbl.o net_backends.o net_utils.o pci_ahci.o pci_e82545.o pci_emul.o pci_h
da.o pci_fbuf.o pci_gvt-d.o pci_hostbridge.o pci_irq.o pci_lpc.o pci_nvme.o pci_passthru.o pci_virti
o_9p.o pci_virtio_block.o pci_virtio_console.o pci_virtio_input.o pci_virtio_net.o pci_virtio_rnd.o
pci_virtio_scsi.o pci_uart.o pci_xhci.o pctestdev.o pm.o post.o ps2kbd.o ps2mouse.o qemu_fwcfg.o rfb
.o rtc.o smbiostbl.o sockstream.o task_switch.o uart_emul.o usb_emul.o usb_mouse.o virtio.o vga.o vm
genc.o xmsr.o spinup_ap.o iov.o vmm_instruction_emul.o -L/usr/obj/usr/src/amd64.amd64/lib/libvmmapi
-lvmmapi -L/usr/obj/usr/src/amd64.amd64/lib/libmd -lmd -L/usr/obj/usr/src/amd64.amd64/lib/libnv -ln
v -L/usr/obj/usr/src/amd64.amd64/lib/libthr -L/usr/obj/usr/src/amd64.amd64/lib/libz -lz -L/usr/obj/u
sr/src/amd64.amd64/lib/libutil -lutil -L/usr/obj/usr/src/amd64.amd64/lib/libsbuf -lsbuf -L/usr/obj/u
sr/src/amd64.amd64/lib/libcam -lcam -L/usr/obj/usr/src/amd64.amd64/lib/lib9p -l9p -L/usr/obj/usr/src
/amd64.amd64/lib/libcasper/libcasper -lcasper -L/usr/obj/usr/src/amd64.amd64/lib/libcasper/services/
cap_pwd -lcap_pwd -L/usr/obj/usr/src/amd64.amd64/lib/libcasper/services/cap_grp -lcap_grp -L/usr/obj
/usr/src/amd64.amd64/lib/libnetgraph -lnetgraph -L/usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto
-lcrypto -lpthread
ld: error: undefined symbol: fspacectl
>>> referenced by block_if.c:345 (/usr/src/usr.sbin/bhyve/block_if.c:345)
>>> block_if.o:(blockif_thr)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
I don't know the reason of this error. I don't know if I've used a wrong procedure to apply those patches. I don't know if there is some error inside the code. Someone more experienced than me,can help me to understand what to do ? Below I have added all the scripts that Corvin gave to me and that I have always used to patch bhyve to allow the passthru of the NVidia GPU,not of the intel GPU. If you want to give a look at the code,you could understand where is the error. Very thanks.
build.sh : https://pastebin.ubuntu.com/p/H4fCTQk5Zd/
build_branch.sh : https://pastebin.ubuntu.com/p/zMNSdqDBbQ/
setup_git.sh : https://pastebin.ubuntu.com/p/gNtbK7Qfzz/