diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-01-25 17:07:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 17:07:47 +0000 |
commit | 04f4aff07d715b5df23223a6c920a5a50c7af5dd (patch) | |
tree | f1c51e65404315e476ba922b167aa32ba9186e94 /lib/migration.c | |
parent | 9dcc46fee15f11724e3e3d7ccef2619f48501f41 (diff) | |
download | libvfio-user-04f4aff07d715b5df23223a6c920a5a50c7af5dd.zip libvfio-user-04f4aff07d715b5df23223a6c920a5a50c7af5dd.tar.gz libvfio-user-04f4aff07d715b5df23223a6c920a5a50c7af5dd.tar.bz2 |
rename _migr_state_transition_is_valid to vfio_migr_state_transition_is_valid for clarity (#260)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/migration.c')
-rw-r--r-- | lib/migration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/migration.c b/lib/migration.c index 02d6141..5768ede 100644 --- a/lib/migration.c +++ b/lib/migration.c @@ -118,7 +118,7 @@ init_migration(const vfu_migration_t * const vfu_migr, int *err) } static bool -_migr_state_transition_is_valid(__u32 from, __u32 to) +vfio_migr_state_transition_is_valid(__u32 from, __u32 to) { return migr_states[from] & (1 << to); } @@ -142,7 +142,7 @@ handle_device_state(vfu_ctx_t *vfu_ctx, struct migration *migr, return -EINVAL; } - if (!_migr_state_transition_is_valid(migr->info.device_state, + if (!vfio_migr_state_transition_is_valid(migr->info.device_state, *device_state)) { /* TODO print descriptive device state names instead of raw value */ vfu_log(vfu_ctx, LOG_ERR, "bad transition from state %d to state %d", |