vringh: define the stride used for translation
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 4 Apr 2023 13:13:21 +0000 (15:13 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:33 +0000 (03:02 -0400)
commitf609d6cbb36ab1c9c7434f67d555c57a2f7d3dde
treebdb0f24ba2b00a3dd6587f65b498ff139bdb0304
parentc0371782500c5314741da9ccbfbf0375a0d379fc
vringh: define the stride used for translation

Define a macro to be reused in the different parts of the code.

Useful for the next patches where we add more arrays to manage also
translations with user VA.

Suggested-by: Eugenio Perez Martin <eperezma@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20230404131326.44403-5-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vringh.c