diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-08 17:53:27 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-04-18 11:17:27 +0200 |
commit | 857f504cf279a063e375c32e88d5cf3312d6b30c (patch) | |
tree | 70f66c3b884dc10d720ab872369a611cb003e50b /stubs | |
parent | 2c888febdfa0290a9e1d1f2133b2a24de47f6120 (diff) |
colo: move stubs out of stubs/
Since the colo stubs are needed exactly when the build options are not
enabled, move them together with the code they stub.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240408155330.522792-16-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/colo-compare.c | 7 | ||||
-rw-r--r-- | stubs/colo.c | 36 | ||||
-rw-r--r-- | stubs/meson.build | 2 |
3 files changed, 0 insertions, 45 deletions
diff --git a/stubs/colo-compare.c b/stubs/colo-compare.c deleted file mode 100644 index ec726665be..0000000000 --- a/stubs/colo-compare.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "qemu/osdep.h" -#include "qemu/notify.h" -#include "net/colo-compare.h" - -void colo_compare_cleanup(void) -{ -} diff --git a/stubs/colo.c b/stubs/colo.c deleted file mode 100644 index f8c069b739..0000000000 --- a/stubs/colo.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "qemu/osdep.h" -#include "qemu/notify.h" -#include "net/colo-compare.h" -#include "migration/colo.h" -#include "qemu/error-report.h" -#include "qapi/qapi-commands-migration.h" - -void colo_shutdown(void) -{ -} - -int coroutine_fn colo_incoming_co(void) -{ - return 0; -} - -void colo_checkpoint_delay_set(void) -{ -} - -void migrate_start_colo_process(MigrationState *s) -{ - error_report("Impossible happened: trying to start COLO when COLO " - "module is not built in"); - abort(); -} - -bool migration_in_colo_state(void) -{ - return false; -} - -bool migration_incoming_in_colo_state(void) -{ - return false; -} diff --git a/stubs/meson.build b/stubs/meson.build index a4404e765a..a252bffad0 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -42,8 +42,6 @@ stub_ss.add(files('target-get-monitor-def.c')) stub_ss.add(files('target-monitor-defs.c')) stub_ss.add(files('trace-control.c')) stub_ss.add(files('uuid.c')) -stub_ss.add(files('colo.c')) -stub_ss.add(files('colo-compare.c')) stub_ss.add(files('vmstate.c')) stub_ss.add(files('vm-stop.c')) stub_ss.add(files('win32-kbd-hook.c')) |