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

ccid: build smartcard as module

Drops libcacard.so dependency from core qemu.

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

+7 -1
+1
Makefile.objs
··· 59 59 common-obj-y += audio/ 60 60 common-obj-m += audio/ 61 61 common-obj-y += hw/ 62 + common-obj-m += hw/ 62 63 63 64 common-obj-y += replay/ 64 65
+1
hw/Makefile.objs
··· 43 43 endif 44 44 45 45 common-obj-y += $(devices-dirs-y) 46 + common-obj-m += usb/ 46 47 obj-y += $(devices-dirs-y)
+3 -1
hw/usb/Makefile.objs
··· 29 29 30 30 ifeq ($(CONFIG_USB_SMARTCARD),y) 31 31 common-obj-y += dev-smartcard-reader.o 32 - common-obj-$(CONFIG_SMARTCARD) += smartcard.mo 32 + ifeq ($(CONFIG_SMARTCARD),y) 33 + common-obj-m += smartcard.mo 33 34 smartcard.mo-objs := ccid-card-passthru.o ccid-card-emulated.o 34 35 smartcard.mo-cflags := $(SMARTCARD_CFLAGS) 35 36 smartcard.mo-libs := $(SMARTCARD_LIBS) 37 + endif 36 38 endif 37 39 38 40 ifeq ($(CONFIG_POSIX),y)
+2
util/module.c
··· 261 261 const char *prefix; 262 262 const char *module; 263 263 } const qom_modules[] = { 264 + { "ccid-card-passthru", "hw-", "usb-smartcard" }, 265 + { "ccid-card-emulated", "hw-", "usb-smartcard" }, 264 266 }; 265 267 266 268 static bool module_loaded_qom_all;