summaryrefslogtreecommitdiff
path: root/drivers/vdpa/vdpa_sim/vdpa_sim.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2022-12-23 08:55:46 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-02-21 03:26:57 +0300
commitbb105d514a25ad3f822da285bc7b6370e20d6353 (patch)
treed44fa470d36fa0cf3ce7015bfa124537c1961643 /drivers/vdpa/vdpa_sim/vdpa_sim.h
parent0497f23e73ec2211eff3921ed33026dea93482a5 (diff)
downloadlinux-bb105d514a25ad3f822da285bc7b6370e20d6353.tar.xz
vdpasim: customize allocation size
Allow individual simulator to customize the allocation size. Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Acked-by: Eugenio PĂ©rez <eperezma@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20221223055548.27810-3-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/vdpa_sim/vdpa_sim.h')
-rw-r--r--drivers/vdpa/vdpa_sim/vdpa_sim.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.h b/drivers/vdpa/vdpa_sim/vdpa_sim.h
index a745605589e2..8a379ef4196c 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim.h
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim.h
@@ -37,6 +37,7 @@ struct vdpasim_dev_attr {
struct vdpa_mgmt_dev *mgmt_dev;
const char *name;
u64 supported_features;
+ size_t alloc_size;
size_t config_size;
size_t buffer_size;
int nvqs;