* [PATCH] hint your using kvm
@ 2007-08-15 17:30 Matthew Kent
0 siblings, 0 replies; only message in thread
From: Matthew Kent @ 2007-08-15 17:30 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Matthew Kent
Signed-off-by: Matthew Kent <mkent-rTVjrLRGJfNWk0Htik3J/w@public.gmane.org>
---
qemu/vnc.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/qemu/vnc.c b/qemu/vnc.c
index 37d5e35..4430651 100644
--- a/qemu/vnc.c
+++ b/qemu/vnc.c
@@ -1109,8 +1109,16 @@ static int protocol_client_init(VncState *vs, char *data, size_t len)
vnc_write(vs, pad, 3); /* padding */
- vnc_write_u32(vs, 4);
- vnc_write(vs, "QEMU", 4);
+#if USE_KVM
+ if (kvm_allowed) {
+ vnc_write_u32(vs, 8);
+ vnc_write(vs, "QEMU/KVM", 8);
+ } else
+#endif
+ {
+ vnc_write_u32(vs, 4);
+ vnc_write(vs, "QEMU", 4);
+ }
vnc_flush(vs);
vnc_read_when(vs, protocol_client_msg, 1);
--
1.5.2.2
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-15 17:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 17:30 [PATCH] hint your using kvm Matthew Kent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox