vhost: support PACKED when setting-getting vring_base
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 24 Apr 2023 22:50:30 +0000 (15:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:15:33 +0000 (11:15 +0200)
commitb839b65456f56958eec6c053e4aff49d64556189
treec3c4b228547a6905fb8e583cbe501b6ba28b0933
parent6c5a69c5dd53d7624b3eee45702c5c901c4bc785
vhost: support PACKED when setting-getting vring_base

[ Upstream commit 55d8122f5cd62d5aaa225d7167dcd14a44c850b9 ]

Use the right structs for PACKED or split vqs when setting and
getting the vring base.

Fixes: 4c8cf31885f6 ("vhost: introduce vDPA-based backend")
Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Message-Id: <20230424225031.18947-3-shannon.nelson@amd.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vhost/vhost.c
drivers/vhost/vhost.h