OSDN Git Service

migration: Move populate_vfio_info() into a separate file
authorThomas Huth <thuth@redhat.com>
Wed, 14 Apr 2021 11:20:02 +0000 (13:20 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 14 May 2021 10:31:51 +0000 (12:31 +0200)
commit43bd0bf30fcee4170e137ecd0929053454f7d295
treedf1c5bc512429dbcd1d893818443cd97961827e1
parent13b48fb00e61dc7662da27c020c3263b74374acc
migration: Move populate_vfio_info() into a separate file

The CONFIG_VFIO switch only works in target specific code. Since
migration/migration.c is common code, the #ifdef does not have
the intended behavior here. Move the related code to a separate
file now which gets compiled via specific_ss instead.

Fixes: 3710586caa ("qapi: Add VFIO devices migration stats in Migration stats")
Message-Id: <20210414112004.943383-3-thuth@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
migration/meson.build
migration/migration.c
migration/migration.h
migration/target.c [new file with mode: 0644]