Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Information regarding the host and VCA nodes configuration #1

@rodolfoams

Description

@rodolfoams

Hi there,

I downloaded this repository today and was trying to build the memory sharing library, but I obtained several errors when trying to run ./build_and_install.sh as indicated in step 2 of the installation guide. Below you can see the output displayed here:

❯ sudo ./build_and_install.sh make -j -C /lib/modules/4.14.20-1.2.3.26.VCA/build M=/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver modules \ INSTALL_MOD_PATH= make[1]: Entering directory /usr/src/kernels/4.14.20-1.2.3.26.VCA'
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_main.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_debugfs.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_procfs.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_alm.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_blockio.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_mgr.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_mgr_extd.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_csa.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_csm.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vop.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c: At top level:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:33:41: error: ‘struct dma_attrs’ declared inside parameter list [-Werror]
enum dma_data_direction dir, struct dma_attrs *attrs)
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:33:41: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:45:14: error: ‘struct dma_attrs’ declared inside parameter list [-Werror]
struct dma_attrs *attrs)
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:54:2: error: initialization from incompatible pointer type [-Werror]
.map_page = _plx_dma_map_page,
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:54:2: error: (near initialization for ‘_plx_dma_ops.map_page’) [-Werror]
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:55:2: error: initialization from incompatible pointer type [-Werror]
.unmap_page = _plx_dma_unmap_page,
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.c:55:2: error: (near initialization for ‘_plx_dma_ops.unmap_page’) [-Werror]
cc1: all warnings being treated as errors
make[2]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_boot.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw.c:30:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csm/vca_csm_main.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/vca_mgr_main.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/plx_pci.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vop_bus.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_main.c:34:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/vca_mgr_extd_main.o
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/vca_csa_main.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_common.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_debugfs.c:31:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/plx_dma.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/vca_csa_sysfs.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vca_csm_bus.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.c:24:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csm/vca_csm_sysfs.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_vringh.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_kvec_buff.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/hal_pci/vcablk_hal_pci.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.c:29:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_blockio.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_mgr.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.c: In function ‘plx_lbp_send_ramdisk’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.c:507:3: error: implicit declaration of function ‘copy_from_user’ [-Werror=implicit-function-declaration]
if(copy_from_user(temp_buff, img + offset, temp_buff_size)) {
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/plx_debugfs.o
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.c: In function ‘plx_lbp_copy_bios_info’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.c:1454:9: note: #pragma message: Need to remove this in future
#pragma message "Need to remove this in future"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vca_mgr_bus.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_csa.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
cc1: all warnings being treated as errors
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_ring.o
make[2]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_lbp.o] Error 1
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_main.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_csm.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk_bcknd/vcablk_bcknd.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vop.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vca_csa_bus.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/../plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/vca_mgr_extd_main.c:31:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/../plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/../plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_debugfs.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_hw_ops_vca_mgr_extd.c:22:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/../plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/vca_csa_main.c:29:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/../plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c: In function ‘vcablk_disk_bio_end’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c:168:7: error: ‘struct bio’ has no member named ‘bi_error’
bio->bi_error = ret;
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c: In function ‘vcablk_disk_xfer_bio_async’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/../plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c:379:9: error: ‘struct bio’ has no member named ‘bi_rw’
if (bio->bi_rw & REQ_FLUSH) {
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c:379:19: error: ‘REQ_FLUSH’ undeclared (first use in this function)
if (bio->bi_rw & REQ_FLUSH) {
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c:379:19: note: each undeclared identifier is reported only once for each function it appears in
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.c:402:9: error: ‘struct bio’ has no member named ‘bi_rw’
if (bio->bi_rw & REQ_FLUSH) {
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk_bcknd/vcablk_bcknd_disk.o
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vca_mgr_extd_bus.o
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vop_bus.c: In function ‘vop_register_device’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vop_bus.c:181:20: error: ‘struct dev_archdata’ has no member named ‘dma_ops’
vdev->dev.archdata.dma_ops = dma_ops;
^
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/../plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/vca_mgr_main.c:31:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/../plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/../plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
CC [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_vringh.o
make[3]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus/vop_bus.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/../plx87xx/plx_device.h:41:0,
from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop_common.c:46:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/../plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/../plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
make[3]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio/vcablk/vcablk_disk.o] Error 1
make[3]: *** Waiting for unfinished jobs....
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr_extd/vca_mgr_extd.o
In file included from /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/plx_dma.c:29:0:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/../plx87xx/plx_intr.h: In function ‘plx_irq_set_affinity_node_hint’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/../plx87xx/plx_intr.h:108:9: note: #pragma message: FIXME pcibus to node mapping
#pragma message "FIXME pcibus to node mapping"
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c: In function ‘virtnet_cpu_callback’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1254:7: error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function)
case CPU_DOWN_FAILED:
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1254:7: note: each undeclared identifier is reported only once for each function it appears in
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1258:7: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function)
case CPU_DOWN_PREPARE:
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c: At top level:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1362:2: error: initialization from incompatible pointer type [-Werror]
.ndo_get_stats64 = virtnet_stats,
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1362:2: error: (near initialization for ‘virtnet_netdev.ndo_get_stats64’) [-Werror]
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c: In function ‘virtnet_probe’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1657:38: error: ‘NETIF_F_UFO’ undeclared (first use in this function)
dev->hw_features |= NETIF_F_TSO | NETIF_F_UFO
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1776:2: error: implicit declaration of function ‘register_hotcpu_notifier’ [-Werror=implicit-function-declaration]
err = register_hotcpu_notifier(&vi->nb);
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c: In function ‘virtnet_remove’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:1835:2: error: implicit declaration of function ‘unregister_hotcpu_notifier’ [-Werror=implicit-function-declaration]
unregister_hotcpu_notifier(&vi->nb);
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio.c:281:2: error: unknown field ‘dev_attrs’ specified in initializer
.dev_attrs = virtio_dev_attrs,
^
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio.c:281:2: error: initialization from incompatible pointer type [-Werror]
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio.c:281:2: error: (near initialization for ‘virtio_bus.uevent’) [-Werror]
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c: In function ‘add_recvbuf_small’:
/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.c:546:14: error: ignoring return value of ‘skb_to_sgvec’, declared with attribute warn_unused_result [-Werror=unused-result]
skb_to_sgvec(skb, rq->sg + 1, 0, skb->len);
^
cc1: all warnings being treated as errors
make[3]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[3]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio/vca_virtio_net.o] Error 1
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_mgr/vca_mgr.o
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csa/vca_csa.o
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_csm/vca_csm.o
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/plx87xx_dma/plx87xx_dma.o
make[2]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/bus] Error 2
make[3]: *** wait: No child processes. Stop.
make[2]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/blockio] Error 2
make[2]: *** [/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vca_virtio] Error 2
LD [M] /home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver/vca/vop/vop.o
make[1]: *** [module/home/rodolfomarinho/Downloads/memsharing-sgxcard/host-drivers/base-driver] Error 2
make[1]: Leaving directory /usr/src/kernels/4.14.20-1.2.3.26.VCA' make: *** [modules] Error 2 cp: cannot stat ‘mods/plx87xx.ko’: No such file or directory cp: cannot stat ‘mods/*.ko’: No such file or directory cp: cannot stat ‘mods/*.ko’: No such file or directory cp: cannot stat ‘mods/plx87xx_dma.ko’: No such file or directory cp: cannot stat ‘mods/vca_csa.ko’: No such file or directory cp: cannot stat ‘mods/vca_csm.ko’: No such file or directory cp: cannot stat ‘mods/*.ko’: No such file or directory cp: cannot stat ‘mods/vop.ko’: No such file or directory cp: cannot stat ‘mods/vca_mgr_extd.ko’: No such file or directory cp: cannot stat ‘mods/vca_mgr.ko’: No such file or directory

I have installed kernel 4.14.20-1.2.3.26.VCA on my host machine (using CentOS 7.4), as well as the kernel development tools and the elfutils-libelf-devel package.

Should this code work using this kernel, or is it tied to an older kernel version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions