Re: [PATCH vhost v4 06/15] vdpa: Track device suspended state

2023-12-24 Thread Jason Wang
On Fri, Dec 22, 2023 at 7:22 PM Dragos Tatulea wrote: > > On Wed, 2023-12-20 at 13:55 +0100, Dragos Tatulea wrote: > > On Wed, 2023-12-20 at 11:46 +0800, Jason Wang wrote: > > > On Wed, Dec 20, 2023 at 2:09 AM Dragos Tatulea > > > wrote: > > > > > > > > Set vdpa device suspended state on

Re: [PATCH vhost v4 06/15] vdpa: Track device suspended state

2023-12-22 Thread Dragos Tatulea
On Wed, 2023-12-20 at 13:55 +0100, Dragos Tatulea wrote: > On Wed, 2023-12-20 at 11:46 +0800, Jason Wang wrote: > > On Wed, Dec 20, 2023 at 2:09 AM Dragos Tatulea wrote: > > > > > > Set vdpa device suspended state on successful suspend. Clear it on > > > successful resume and reset. > > > > > >

Re: [PATCH vhost v4 06/15] vdpa: Track device suspended state

2023-12-20 Thread Dragos Tatulea
On Wed, 2023-12-20 at 11:46 +0800, Jason Wang wrote: > On Wed, Dec 20, 2023 at 2:09 AM Dragos Tatulea wrote: > > > > Set vdpa device suspended state on successful suspend. Clear it on > > successful resume and reset. > > > > The state will be locked by the vhost_vdpa mutex. The mutex is taken >

Re: [PATCH vhost v4 06/15] vdpa: Track device suspended state

2023-12-19 Thread Jason Wang
On Wed, Dec 20, 2023 at 2:09 AM Dragos Tatulea wrote: > > Set vdpa device suspended state on successful suspend. Clear it on > successful resume and reset. > > The state will be locked by the vhost_vdpa mutex. The mutex is taken > during suspend, resume and reset in vhost_vdpa_unlocked_ioctl. The

[PATCH vhost v4 06/15] vdpa: Track device suspended state

2023-12-19 Thread Dragos Tatulea
Set vdpa device suspended state on successful suspend. Clear it on successful resume and reset. The state will be locked by the vhost_vdpa mutex. The mutex is taken during suspend, resume and reset in vhost_vdpa_unlocked_ioctl. The exception is vhost_vdpa_open which does a device reset but that