Re: [virtio-comment] [RFC PATCH] virtio-pci: introduce device state capability

From
Stefan Hajnoczi <>
Date
2020-12-18T17:29:00+00:00
ID
Thread
Re: [virtio-comment] [RFC PATCH] virtio-pci: introduce device state capability
On Fri, Dec 18, 2020 at 12:58:21PM +0800, Jason Wang wrote:
> 
> On 2020/12/18 äå11:16, Jason Wang wrote:
> > > > 
> > > A per-virtqueue stopped state is not enough to stop a device because
> > > some devices have global behavior like config change events. It must be
> > > possible to completely stop the device to prevent further activity
> > > (VIRTIO config space changes, interrupts, etc).
> > > 
> > > Maybe a Device Status register bit can be added for that?
> > 
> > 
> > I've considered such case, one of the idea is to introduce a new device
> > status to achieve which seems more generic. Then we need to define a
> > state machine carefully.
> 
> 
> So I post another RFC to introduce a new device status bit. Please review.

Thanks, that sounds good. I will be offline until January 4th and will
try to catch up then.

Stefan