[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v18 QEMU 18/18] qapi: Add VFIO devices migration stats in Mig
From: |
Eric Blake |
Subject: |
Re: [PATCH v18 QEMU 18/18] qapi: Add VFIO devices migration stats in Migration stats |
Date: |
Tue, 5 May 2020 09:13:29 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/4/20 5:44 PM, Kirti Wankhede wrote:
Added amount of bytes transferred to the target VM by all VFIO devices
Signed-off-by: Kirti Wankhede <address@hidden>
---
Reviewing just the UI:
+++ b/qapi/migration.json
@@ -144,6 +144,18 @@
'active', 'postcopy-active', 'postcopy-paused',
'postcopy-recover', 'completed', 'failed', 'colo',
'pre-switchover', 'device', 'wait-unplug' ] }
+##
+# @VfioStats:
+#
+# Detailed VFIO devices migration statistics
+#
+# @bytes: amount of bytes transferred to the target VM by VFIO devices
+#
+# Since: 5.0
s/5.0/5.1/
+#
+##
+{ 'struct': 'VfioStats',
+ 'data': {'bytes': 'int' } }
##
# @MigrationInfo:
@@ -205,6 +217,10 @@
#
# @socket-address: Only used for tcp, to know what the real port is (Since
4.0)
#
+# @vfio: @VfioStats containing detailed VFIO devices migration statistics,
+# only returned if VFIO device is present, migration is supported by all
+# VFIO devices and status is 'active' or 'completed' (since 5.0)
here too
+#
# Since: 0.14.0
##
{ 'struct': 'MigrationInfo',
@@ -220,7 +236,8 @@
'*postcopy-blocktime' : 'uint32',
'*postcopy-vcpu-blocktime': ['uint32'],
'*compression': 'CompressionStats',
- '*socket-address': ['SocketAddress'] } }
+ '*socket-address': ['SocketAddress'],
+ '*vfio': 'VfioStats' } }
##
# @query-migrate:
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [PATCH v18 QEMU 11/18] iommu: add callback to get address limit IOMMU supports, (continued)
- [PATCH v18 QEMU 11/18] iommu: add callback to get address limit IOMMU supports, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 09/18] vfio: Add save state functions to SaveVMHandlers, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 12/18] memory: Set DIRTY_MEMORY_MIGRATION when IOMMU is enabled, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 13/18] vfio: Add function to start and stop dirty pages tracking, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 14/18] vfio: Add vfio_listener_log_sync to mark dirty pages, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 15/18] vfio: Get migration capability flags for container, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 16/18] vfio: Add ioctl to get dirty pages bitmap during dma unmap., Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 17/18] vfio: Make vfio-pci device migration capable, Kirti Wankhede, 2020/05/04
- [PATCH v18 QEMU 18/18] qapi: Add VFIO devices migration stats in Migration stats, Kirti Wankhede, 2020/05/04
- Re: [PATCH v18 QEMU 18/18] qapi: Add VFIO devices migration stats in Migration stats,
Eric Blake <=