Re: [RFC PATCH] virtio: Change order of appling runstate to device and bus

2020-01-06 Thread Michael S. Tsirkin
On Fri, Dec 20, 2019 at 03:52:45PM +0300, Anton Kuchin wrote: > On transition to running first apply state to bus and then to device > so device can access bus functions correctly. When going to stopped > notify device first and then the bus. > > Signed-off-by: Anton Kuchin I kind of like this b

[RFC PATCH] virtio: Change order of appling runstate to device and bus

2019-12-20 Thread Anton Kuchin
On transition to running first apply state to bus and then to device so device can access bus functions correctly. When going to stopped notify device first and then the bus. Signed-off-by: Anton Kuchin --- hw/virtio/virtio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git