summaryrefslogtreecommitdiff
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorOrit Wasserman <owasserm@redhat.com>2012-08-06 21:42:56 +0300
committerJuan Quintela <quintela@redhat.com>2012-08-08 13:51:12 +0200
commit004d4c10aee9d64869ca3a8ef21f56c0045bf31b (patch)
tree343419704493551998e21f5a54142cea310f297b /qmp-commands.hx
parent62d4e3fe31844ee76bf2314bf1c22d25bad37589 (diff)
Add migration accounting for normal and duplicate pages
Signed-off-by: Benoit Hudzia <benoit.hudzia@sap.com> Signed-off-by: Petter Svard <petters@cs.umu.se> Signed-off-by: Aidan Shribman <aidan.shribman@sap.com> Signed-off-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx27
1 files changed, 24 insertions, 3 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index d426e567c3..c3368f3809 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -2125,6 +2125,9 @@ The main json-object contains the following:
- "total-time": total amount of ms since migration started. If
migration has ended, it returns the total migration time
(json-int)
+ - "duplicate": number of duplicated pages (json-int)
+ - "normal" : number of normal pages transferred (json-int)
+ - "normal-bytes" : number of normal bytes transferred (json-int)
- "disk": only present if "status" is "active" and it is a block migration,
it is a json-object with the following disk information (in bytes):
- "transferred": amount transferred (json-int)
@@ -2141,7 +2144,19 @@ Examples:
2. Migration is done and has succeeded
-> { "execute": "query-migrate" }
-<- { "return": { "status": "completed" } }
+<- { "return": {
+ "status": "completed",
+ "ram":{
+ "transferred":123,
+ "remaining":123,
+ "total":246,
+ "total-time":12345,
+ "duplicate":123,
+ "normal":123,
+ "normal-bytes":123456
+ }
+ }
+ }
3. Migration is done and has failed
@@ -2158,7 +2173,10 @@ Examples:
"transferred":123,
"remaining":123,
"total":246,
- "total-time":12345
+ "total-time":12345,
+ "duplicate":123,
+ "normal":123,
+ "normal-bytes":123456
}
}
}
@@ -2173,7 +2191,10 @@ Examples:
"total":1057024,
"remaining":1053304,
"transferred":3720,
- "total-time":12345
+ "total-time":12345,
+ "duplicate":123,
+ "normal":123,
+ "normal-bytes":123456
},
"disk":{
"total":20971520,