hw/remote: move stub vfu_object_set_bus_irq out of stubs/
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 08:58:23 +0000 (10:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Oct 2023 08:01:01 +0000 (10:01 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/remote/meson.build
hw/remote/vfio-user-obj-stub.c [new file with mode: 0644]
stubs/meson.build
stubs/vfio-user-obj.c [deleted file]

index a1e8708c7326ecbdc11d2dc978de23a96e125137..a3aa29aaf173f7f7e610c19b3bffd445609d095a 100644 (file)
@@ -7,9 +7,11 @@ remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('remote-obj.c'))
 remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('proxy.c'))
 remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('iohub.c'))
 remote_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('iommu.c'))
-remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: files('vfio-user-obj.c'))
 
 remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: libvfio_user_dep)
+remote_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_true: files('vfio-user-obj.c'),
+              if_false: files('vfio-user-obj-stub.c'))
+remote_ss.add(when: 'CONFIG_ALL', if_true: files('vfio-user-obj-stub.c'))
 
 specific_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('memory.c'))
 specific_ss.add(when: 'CONFIG_MULTIPROCESS', if_true: files('proxy-memory-listener.c'))
diff --git a/hw/remote/vfio-user-obj-stub.c b/hw/remote/vfio-user-obj-stub.c
new file mode 100644 (file)
index 0000000..79100d7
--- /dev/null
@@ -0,0 +1,6 @@
+#include "qemu/osdep.h"
+#include "hw/remote/vfio-user-obj.h"
+
+void vfu_object_set_bus_irq(PCIBus *pci_bus)
+{
+}
index cde44972bf852bc4a5e97bf55504c35f5a1e0d01..0bf25e6ca539583c8921c30b702952190f63670b 100644 (file)
@@ -65,4 +65,3 @@ else
   stub_ss.add(files('qdev.c'))
 endif
 stub_ss.add(files('semihost-all.c'))
-stub_ss.add(when: 'CONFIG_VFIO_USER_SERVER', if_false: files('vfio-user-obj.c'))
diff --git a/stubs/vfio-user-obj.c b/stubs/vfio-user-obj.c
deleted file mode 100644 (file)
index 79100d7..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "qemu/osdep.h"
-#include "hw/remote/vfio-user-obj.h"
-
-void vfu_object_set_bus_irq(PCIBus *pci_bus)
-{
-}