From 9e1ba4cc4e2536d9650e84e2614c5691ed45938f Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Mon, 6 Aug 2012 21:42:54 +0300 Subject: Add migrate_set_cache_size command Change XBZRLE cache size in bytes (the size should be a power of 2, it will be rounded down to the nearest power of 2). If XBZRLE cache size is too small there will be many cache miss. New query-migrate-cache-size QMP command and 'info migrate_cache_size' HMP command to query cache value. Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman Reviewed-by: Luiz Capitulino Reviewed-by: Eric Blake --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 13b681ab48..5227cf15e3 100644 --- a/monitor.c +++ b/monitor.c @@ -2661,6 +2661,13 @@ static mon_cmd_t info_cmds[] = { .help = "show current migration capabilities", .mhandler.info = hmp_info_migrate_capabilities, }, + { + .name = "migrate_cache_size", + .args_type = "", + .params = "", + .help = "show current migration xbzrle cache size", + .mhandler.info = hmp_info_migrate_cache_size, + }, { .name = "balloon", .args_type = "", -- cgit v1.2.1