qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] virtio: fix some issues of "started" and "start_on_kick" flag
@ 2019-06-04  7:34 elohimes
  2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 1/5] virtio: Set "start_on_kick" on virtio_set_features() elohimes
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: elohimes @ 2019-06-04  7:34 UTC (permalink / raw)
  To: mst, groug; +Cc: Xie Yongji, dgilbert, qemu-devel

From: Xie Yongji <xieyongji@baidu.com>

We introduced two flags "started" and "start_on_kick" to indicate virtio
device's state before. But there still are some problems with them. So
we try to fixup them in this patchset.

The patch 1 fixes a regression bug that old guest is not able to boot with
vhost-user-blk device.

The patch 2 set "start_on_kick" flag for legacy devices.

The patch 3,4 fix some problems with "started" and "start_on_kick" flag.

The patch 5 introduces a "use-started" property to avoid a migration
issue under Greg Kurz's suggestion [1].

[1] https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg06247.html

v2:
- Recalculate "start_on_kick" flag after migration instead of migrating
  it
- Set "start_on_kick" flag for legacy devices
- Avoid setting "started" flag when "use_started" property is true
- Set "use_started" to false by hw_compat_4_0_1 instead of hw_compat_4_0

Xie Yongji (5):
  virtio: Set "start_on_kick" on virtio_set_features()
  virtio: Set "start_on_kick" for legacy devices
  virtio: Make sure we get correct state of device on
    handle_aio_output()
  virtio: Don't change "started" flag on virtio_vmstate_change()
  virtio: add "use-started" property

 hw/block/vhost-user-blk.c  |  4 +--
 hw/core/machine.c          |  4 ++-
 hw/virtio/virtio.c         | 53 ++++++++++++++++++++++----------------
 include/hw/virtio/virtio.h | 23 ++++++++++++++++-
 4 files changed, 58 insertions(+), 26 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-06-05  9:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-04  7:34 [Qemu-devel] [PATCH v2 0/5] virtio: fix some issues of "started" and "start_on_kick" flag elohimes
2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 1/5] virtio: Set "start_on_kick" on virtio_set_features() elohimes
2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 2/5] virtio: Set "start_on_kick" for legacy devices elohimes
2019-06-05  6:42   ` Greg Kurz
2019-06-05  6:49     ` Yongji Xie
2019-06-05  7:14       ` Greg Kurz
2019-06-05  7:16         ` Yongji Xie
2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 3/5] virtio: Make sure we get correct state of device on handle_aio_output() elohimes
2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 4/5] virtio: Don't change "started" flag on virtio_vmstate_change() elohimes
2019-06-04  7:34 ` [Qemu-devel] [PATCH v2 5/5] virtio: add "use-started" property elohimes
2019-06-05  8:59   ` Greg Kurz
2019-06-05  9:14     ` Yongji Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).