Merge pull request #3220 from liubin/fix/3219-stop-virtiofsd-when-needed

runtime: only call stopVirtiofsd when shared_fs is virtio-fs
This commit is contained in:
Julio Montes
2021-12-07 07:51:08 -06:00
committed by GitHub

View File

@@ -984,8 +984,10 @@ func (q *qemu) StopVM(ctx context.Context, waitOnly bool) error {
}
}
if err := q.stopVirtiofsd(ctx); err != nil {
return err
if q.config.SharedFS == config.VirtioFS {
if err := q.stopVirtiofsd(ctx); err != nil {
return err
}
}
return nil