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
2015-03-19 11:30:37 +03:00
2015-04-30 13:21:42 +02: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
2015-04-04 09:45:59 +03:00
2015-04-28 15:36:09 +02:00
2015-04-26 16:49:24 +01:00
2015-04-30 16:05:48 +03:00
2015-04-30 15:18:30 +01:00
2015-04-28 22:14:15 +02:00
2015-04-26 16:49:24 +01:00
2015-04-25 22:05:07 +01:00

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

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%