diff options
author | John Levon <john.levon@nutanix.com> | 2021-06-02 15:04:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 15:04:10 +0100 |
commit | b8234a75d9ec2c95cb889c0cef27927f34ad9cbc (patch) | |
tree | a2cd490a958e3b3c08595451c62f7e62108bebe2 /test | |
parent | 8ac2360a8aefbd2dd11c65f2b2e21565c36c0ee6 (diff) | |
download | libvfio-user-b8234a75d9ec2c95cb889c0cef27927f34ad9cbc.zip libvfio-user-b8234a75d9ec2c95cb889c0cef27927f34ad9cbc.tar.gz libvfio-user-b8234a75d9ec2c95cb889c0cef27927f34ad9cbc.tar.bz2 |
clean up migration register definitions (#550)
We should explicitly define the expected migration register contents for API
users who aren't using the callbacks. Clean up some related lint.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/unit-tests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c index d334244..9e3fe00 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -541,7 +541,8 @@ setup_test_setup_migration_region(void **state) if (p->v == NULL) { return -1; } - p->rs = ROUND_UP(sizeof(struct vfio_device_migration_info), sysconf(_SC_PAGE_SIZE)); + p->rs = ROUND_UP(sizeof(struct vfio_user_migration_info), + sysconf(_SC_PAGE_SIZE)); p->ds = sysconf(_SC_PAGE_SIZE); p->s = p->rs + p->ds; *state = p; |