2 Commits
Author SHA1 Message Date
Lai Jiangshan 1edf423a1d kvm tools: mark usages functions as NORETURN
It will help for simplifying codes like this:

{
	if (cond == NULL)
		NORETURN_func();

	/* use cond safely, it is not NULL and don't need to check it again */
}

It also helps for readability.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:50 +01:00
Sasha Levin bc10d2c1c8 kvm tools: Add 'kvm stat' command
This patch adds 'kvm stat' command that allows retrieving statistics out of
a running guest.

Currently the only supported statistics are memory statistics, available using the
'--memory' parameter.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:47 +01:00