Avi Kivity <[EMAIL PROTECTED]> writes:
> (qemu) info kvm
> enabled (kvm-123)
>
> or
>
> (qemu) info kvm
> enabled
> version kvm-123
>
> May be easier to parse, and more backwards compatible.
Something like this then?
The attached patch adds KVM version to the monitor command "info kvm":
(qemu) info kvm
kvm support: enabled
kvm version: kvm-80
Signed-off-by: Bjørn Mork <[EMAIL PROTECTED]>
diff --git a/qemu/monitor.c b/qemu/monitor.c
index 3948aae..3831789 100644
--- a/qemu/monitor.c
+++ b/qemu/monitor.c
@@ -1297,6 +1297,7 @@ static void do_info_kvm(void)
term_printf("enabled\n");
else
term_printf("disabled\n");
+ term_printf("kvm version: " KVM_VERSION "\n");
#else
term_printf("kvm support: not compiled\n");
#endif
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html