Re: [RFC v2 06/13] vhost: Route host->guest notification through shadow virtqueue

2021-03-16 Thread Jason Wang
在 2021/3/16 上午3:48, Eugenio Pérez 写道: On one hand it uses a mutex to synchronize guest masking with SVQ start and stop, because otherwise guest mask could race with the SVQ stop code, sending an incorrect call notifier to vhost device. This would prevent further communication. Is this

[RFC v2 06/13] vhost: Route host->guest notification through shadow virtqueue

2021-03-15 Thread Eugenio Pérez
On one hand it uses a mutex to synchronize guest masking with SVQ start and stop, because otherwise guest mask could race with the SVQ stop code, sending an incorrect call notifier to vhost device. This would prevent further communication. On the other hand it needs to add an event to synchronize