return info;
}
-
-bool vfio_arch_wants_loading_config_after_iter(void)
-{
- /*
- * Starting the config load only after all iterables were loaded (during
- * non-iterables loading phase) is required for ARM64 due to this platform
- * VFIO dependency on interrupt controller being loaded first.
- *
- * See commit d329f5032e17 ("vfio: Move the saving of the config space to
- * the right place in VFIO migration").
- */
-#if defined(TARGET_ARM)
- return true;
-#else
- return false;
-#endif
-}
#include "qemu/error-report.h"
#include "qemu/lockable.h"
#include "qemu/main-loop.h"
+#include "qemu/target-info.h"
#include "qemu/thread.h"
#include "io/channel-buffer.h"
#include "migration/qemu-file.h"
}
assert(vbasedev->migration_load_config_after_iter == ON_OFF_AUTO_AUTO);
- return vfio_arch_wants_loading_config_after_iter();
+
+ /*
+ * Starting the config load only after all iterables were loaded (during
+ * non-iterables loading phase) is required for ARM64 due to this platform
+ * VFIO dependency on interrupt controller being loaded first.
+ *
+ * See commit d329f5032e17 ("vfio: Move the saving of the config space to
+ * the right place in VFIO migration").
+ */
+ return target_base_arm();
}
/* type safety */
int vfio_kvm_device_add_fd(int fd, Error **errp);
int vfio_kvm_device_del_fd(int fd, Error **errp);
-bool vfio_arch_wants_loading_config_after_iter(void);
-
#endif /* HW_VFIO_VFIO_HELPERS_H */