vdpa_sim: switch to use __vdpa_alloc_device()
authorJason Wang <jasowang@redhat.com>
Fri, 23 Dec 2022 05:55:45 +0000 (13:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:57 +0000 (19:26 -0500)
commit0497f23e73ec2211eff3921ed33026dea93482a5
tree628ce82e6f7fcae60976cc7e4bd295511fdb6d05
parent2f8200efe7300190ad88d8238b119c098b6544bd
vdpa_sim: switch to use __vdpa_alloc_device()

This allows us to control the allocation size of the structure.

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-2-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c