2019-07-22 22:47:50 +03:00
|
|
|
softmmu_ss.add(files(
|
|
|
|
'announce.c',
|
|
|
|
'checksum.c',
|
|
|
|
'colo-compare.c',
|
|
|
|
'colo.c',
|
|
|
|
'dump.c',
|
|
|
|
'eth.c',
|
|
|
|
'filter-buffer.c',
|
|
|
|
'filter-mirror.c',
|
|
|
|
'filter-rewriter.c',
|
|
|
|
'filter.c',
|
|
|
|
'hub.c',
|
|
|
|
'net.c',
|
|
|
|
'queue.c',
|
|
|
|
'socket.c',
|
|
|
|
'util.c',
|
|
|
|
))
|
|
|
|
|
replay: do not build if TCG is not available
this fixes non-TCG builds broken recently by replay reverse debugging.
Stub the needed functions in stub/, splitting roughly between functions
needed only by system emulation, by system emulation and tools,
and by everyone. This includes duplicating some code in replay/, and
puts the logic for non-replay related events in the replay/ module (+
the stubs), so this should be revisited in the future.
Surprisingly, only _one_ qtest was affected by this, ide-test.c, which
resulted in a buzz as the bh events were never delivered, and the bh
never executed.
Many other subsystems _should_ have been affected.
This fixes the immediate issue, however a better way to group replay
functionality to TCG-only code could be developed in the long term.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Message-Id: <20201013192123.22632-4-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-13 22:21:23 +03:00
|
|
|
softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
|
|
|
|
|
2021-10-28 21:59:08 +03:00
|
|
|
if have_l2tpv3
|
|
|
|
softmmu_ss.add(files('l2tpv3.c'))
|
|
|
|
endif
|
2020-10-05 12:31:15 +03:00
|
|
|
softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
|
2021-10-07 16:08:21 +03:00
|
|
|
softmmu_ss.add(when: vde, if_true: files('vde.c'))
|
2021-10-07 16:08:22 +03:00
|
|
|
if have_netmap
|
|
|
|
softmmu_ss.add(files('netmap.c'))
|
|
|
|
endif
|
2022-04-20 18:34:06 +03:00
|
|
|
if have_vhost_net_user
|
|
|
|
softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
|
|
|
|
endif
|
2019-07-22 22:47:50 +03:00
|
|
|
|
|
|
|
softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
|
|
|
|
tap_posix = ['tap.c']
|
|
|
|
if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
|
|
|
|
tap_posix += 'tap-stub.c'
|
|
|
|
endif
|
|
|
|
softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
|
2022-04-20 18:34:06 +03:00
|
|
|
if have_vhost_net_vdpa
|
2022-07-20 09:59:41 +03:00
|
|
|
softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
|
2022-04-20 18:34:06 +03:00
|
|
|
endif
|
2019-07-22 22:47:50 +03:00
|
|
|
|
2022-03-17 20:28:34 +03:00
|
|
|
vmnet_files = files(
|
|
|
|
'vmnet-common.m',
|
|
|
|
'vmnet-bridged.m',
|
|
|
|
'vmnet-host.c',
|
|
|
|
'vmnet-shared.c'
|
|
|
|
)
|
|
|
|
softmmu_ss.add(when: vmnet, if_true: vmnet_files)
|
2019-07-22 22:47:50 +03:00
|
|
|
subdir('can')
|