All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC v6 0/2] virtio: introduce `info virtio' hmp command
@ 2017-12-17 20:25 Jan Dakinevich
  2017-12-17 20:25 ` [Qemu-devel] [RFC v6 1/2] virtio: introduce `query-virtio' QMP command Jan Dakinevich
  2017-12-17 20:25 ` [Qemu-devel] [RFC v6 2/2] virtio: add `info virtio' HMP command Jan Dakinevich
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Dakinevich @ 2017-12-17 20:25 UTC (permalink / raw)
  To: qemu-devel
  Cc: Jan Dakinevich, Amit Shah, Cornelia Huck, Denis V. Lunev,
	Dr. David Alan Gilbert, Eric Blake, Jason Wang, Kevin Wolf,
	Markus Armbruster, Max Reitz, Michael S. Tsirkin, Paolo Bonzini,
	qemu-block, Stefan Hajnoczi

From: Jan Dakinevich <jan.dakinevich@gmail.com>

After some discussion, I am going to suggest reworked QMP/HMP for
gathering virtio info. It would provide the following monitor output.

(qemu) info virtio
virtio-blk-device at 0000:00:02.0
  QOM path: /machine/peripheral-anon/device[0]/virtio-backend
  status: 0x0f
    VIRTIO_CONFIG_S_ACKNOWLEDGE
    VIRTIO_CONFIG_S_DRIVER
    VIRTIO_CONFIG_S_DRIVER_OK
    VIRTIO_CONFIG_S_FEATURES_OK
  host features:  0x0000000179000e54
  guest features: 0x0000000130000e54
  common features:
    VIRTIO_F_NOTIFY_ON_EMPTY
    VIRTIO_F_ANY_LAYOUT
    VIRTIO_RING_F_INDIRECT_DESC              acked
    VIRTIO_RING_F_EVENT_IDX                  acked
    VIRTIO_F_BAD_FEATURE
    VIRTIO_F_VERSION_1                       acked
  device features:
    VIRTIO_BLK_F_SEG_MAX                     acked
    VIRTIO_BLK_F_BLK_SIZE                    acked
    VIRTIO_BLK_F_FLUSH                       acked
    VIRTIO_BLK_F_TOPOLOGY                    acked

v5: http://lists.nongnu.org/archive/html/qemu-devel/2017-10/msg05667.html
v4: http://lists.nongnu.org/archive/html/qemu-devel/2017-10/msg00393.html
v3: http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg07565.html
v2: http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg07527.html
v1: http://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg07247.html

Jan Dakinevich (2):
  virtio: introduce `query-virtio' QMP command
  virtio: add `info virtio' HMP command

 hmp-commands-info.hx        |  14 +++++
 hmp.c                       |  74 ++++++++++++++++++++++++
 hmp.h                       |   1 +
 hw/block/virtio-blk.c       |  20 +++++++
 hw/char/virtio-serial-bus.c |  14 +++++
 hw/display/virtio-gpu.c     |  12 ++++
 hw/net/virtio-net.c         |  34 +++++++++++
 hw/scsi/virtio-scsi.c       |  15 +++++
 hw/virtio/Makefile.objs     |   3 +
 hw/virtio/virtio-balloon.c  |  14 +++++
 hw/virtio/virtio-qmp.c      | 134 ++++++++++++++++++++++++++++++++++++++++++++
 hw/virtio/virtio-stub.c     |   9 +++
 hw/virtio/virtio.c          |  41 ++++++++++++++
 include/hw/virtio/virtio.h  |   6 ++
 qapi-schema.json            |  70 +++++++++++++++++++++++
 15 files changed, 461 insertions(+)
 create mode 100644 hw/virtio/virtio-qmp.c
 create mode 100644 hw/virtio/virtio-stub.c

--
2.1.4

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

end of thread, other threads:[~2017-12-20 13:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-17 20:25 [Qemu-devel] [RFC v6 0/2] virtio: introduce `info virtio' hmp command Jan Dakinevich
2017-12-17 20:25 ` [Qemu-devel] [RFC v6 1/2] virtio: introduce `query-virtio' QMP command Jan Dakinevich
2017-12-19 14:57   ` Markus Armbruster
2017-12-20  0:47     ` Jan Dakinevich
2017-12-20 10:16       ` Markus Armbruster
2017-12-20 12:47         ` Cornelia Huck
2017-12-20 13:05         ` Dr. David Alan Gilbert
2017-12-17 20:25 ` [Qemu-devel] [RFC v6 2/2] virtio: add `info virtio' HMP command Jan Dakinevich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.