qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

usb: build usb-redir as module

Drops libusbredirparser.so dependency from core qemu.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200624131045.14512-7-kraxel@redhat.com

+7 -3
+6 -3
hw/usb/Makefile.objs
··· 43 43 44 44 # usb redirection 45 45 ifeq ($(CONFIG_USB),y) 46 - common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o 47 - redirect.o-cflags = $(USB_REDIR_CFLAGS) 48 - redirect.o-libs = $(USB_REDIR_LIBS) 46 + ifeq ($(CONFIG_USB_REDIR),y) 47 + common-obj-m += redirect.mo 48 + redirect.mo-objs = redirect.o quirks.o 49 + redirect.mo-cflags = $(USB_REDIR_CFLAGS) 50 + redirect.mo-libs = $(USB_REDIR_LIBS) 51 + endif 49 52 endif 50 53 51 54 # usb pass-through
+1
util/module.c
··· 263 263 } const qom_modules[] = { 264 264 { "ccid-card-passthru", "hw-", "usb-smartcard" }, 265 265 { "ccid-card-emulated", "hw-", "usb-smartcard" }, 266 + { "usb-redir", "hw-", "usb-redirect" }, 266 267 }; 267 268 268 269 static bool module_loaded_qom_all;