Michael Chapman 27ff42e29a migration: avoid divide by zero in xbzrle cache miss rate
This bug manifested itself as a VM that could not be resumed by libvirt
following a migration:

  # virsh resume example
  error: Failed to resume domain example
  error: internal error: cannot parse json {"return":
    {"xbzrle-cache":
      {..., "cache-miss-rate": -nan, ...},
      ...
    }
  }: lexical error: malformed number, a digit is required after the minus sign.

This patch also ensures xbzrle_cache_miss_prev and iterations_prev are
cleared at the start of the migration.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
2015-05-07 18:31:54 +02:00
2013-04-18 13:50:53 +02:00
2015-02-06 16:11:38 +00:00
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02:00
2015-03-09 09:14:28 +00:00
2015-04-28 12:22:20 +01:00
2015-05-05 10:48:26 +02:00
2015-04-30 16:05:48 +03:00
2012-09-07 09:02:44 +03:00
2015-04-04 09:45:59 +03:00
2014-06-16 13:24:35 +02:00
2013-09-05 09:40:31 -05:00
2015-04-28 15:36:09 +02:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
2013-07-23 02:41:31 +02:00
2015-04-30 15:18:30 +01:00
2015-02-05 17:16:14 +01:00
2015-04-28 22:14:15 +02:00
2015-02-16 15:07:19 +00:00
2014-05-24 00:07:29 +04:00
2013-10-11 09:34:56 -07:00
2015-01-14 10:38:57 +01:00
2015-04-26 16:49:24 +01:00
2015-02-12 21:21:38 -08:00
2015-03-10 09:26:22 +01:00
2015-04-25 22:05:07 +01:00
2013-10-11 09:34:56 -07:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
A fork of QEMU-Nyx which is better suited for my bachelors thesis
Readme 154 MiB