File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1685,7 +1685,12 @@ int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev)
1685
1685
goto fail_log ;
1686
1686
}
1687
1687
}
1688
-
1688
+ if (hdev -> vhost_ops -> vhost_dev_start ) {
1689
+ r = hdev -> vhost_ops -> vhost_dev_start (hdev , true);
1690
+ if (r ) {
1691
+ goto fail_log ;
1692
+ }
1693
+ }
1689
1694
if (vhost_dev_has_iommu (hdev ) &&
1690
1695
hdev -> vhost_ops -> vhost_set_iotlb_callback ) {
1691
1696
hdev -> vhost_ops -> vhost_set_iotlb_callback (hdev , true);
@@ -1723,6 +1728,9 @@ void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev)
1723
1728
/* should only be called after backend is connected */
1724
1729
assert (hdev -> vhost_ops );
1725
1730
1731
+ if (hdev -> vhost_ops -> vhost_dev_start ) {
1732
+ hdev -> vhost_ops -> vhost_dev_start (hdev , false);
1733
+ }
1726
1734
for (i = 0 ; i < hdev -> nvqs ; ++ i ) {
1727
1735
vhost_virtqueue_stop (hdev ,
1728
1736
vdev ,
You can’t perform that action at this time.
0 commit comments