vdpa_sim: support vendor statistics
authorJason Wang <jasowang@redhat.com>
Fri, 23 Dec 2022 05:55:47 +0000 (13:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:57 +0000 (19:26 -0500)
commit5dbb063a3ebfd19a91d7812783fd49d5d829a0d4
tree691f2b140c000bf87ff0c8ae4fa4197b3c5f6461
parentbb105d514a25ad3f822da285bc7b6370e20d6353
vdpa_sim: support vendor statistics

This patch adds a new config ops callback to allow individual
simulator to implement the vendor stats callback.

Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221223055548.27810-4-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vdpa/vdpa_sim/vdpa_sim.h