diff --git a/lib/virtio/Makefile b/lib/virtio/Makefile index cc5052177..15fcc46f7 100644 --- a/lib/virtio/Makefile +++ b/lib/virtio/Makefile @@ -43,4 +43,6 @@ C_SRCS = virtio.c virtio_user.c virtio_pci.c C_SRCS += virtio_user/vhost_user.c LIBNAME = virtio +SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_virtio.map) + include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk diff --git a/lib/virtio/spdk_virtio.map b/lib/virtio/spdk_virtio.map new file mode 100644 index 000000000..76e02cff8 --- /dev/null +++ b/lib/virtio/spdk_virtio.map @@ -0,0 +1,33 @@ +{ + global: + + # internal functions in spdk_internal/virtio.h + virtio_recv_pkts; + virtqueue_req_start; + virtqueue_req_flush; + virtqueue_req_abort; + virtqueue_req_add_iovs; + virtio_dev_construct; + virtio_dev_reset; + virtio_dev_start; + virtio_dev_stop; + virtio_dev_destruct; + virtio_dev_acquire_queue; + virtio_dev_find_and_acquire_queue; + virtio_dev_queue_get_thread; + virtio_dev_queue_is_acquired; + virtio_dev_release_queue; + virtio_dev_get_status; + virtio_dev_set_status; + virtio_dev_write_dev_config; + virtio_dev_read_dev_config; + virtio_dev_backend_ops; + virtio_dev_has_feature; + virtio_dev_dump_json_info; + virtio_pci_dev_enumerate; + virtio_pci_dev_attach; + virtio_user_dev_init; + virtio_pci_dev_init; + + local: *; +}; diff --git a/test/make/check_so_deps.sh b/test/make/check_so_deps.sh index 37a8f719a..bc5b537c9 100755 --- a/test/make/check_so_deps.sh +++ b/test/make/check_so_deps.sh @@ -118,6 +118,12 @@ function confirm_abi_deps() { name = spdk_crc32_table_init [suppress_function] name = spdk_crc32_update +[suppress_variable] + name = SPDK_LOG_VIRTIO_DEV +[suppress_variable] + name = SPDK_LOG_VIRTIO_PCI +[suppress_variable] + name = SPDK_LOG_VIRTIO_USER EOF for object in "$libdir"/libspdk_*.so; do