public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Kent <mkent-rTVjrLRGJfNWk0Htik3J/w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: Matthew Kent <mkent-rTVjrLRGJfNWk0Htik3J/w@public.gmane.org>
Subject: [PATCH] hint your using kvm
Date: Wed, 15 Aug 2007 10:30:41 -0700	[thread overview]
Message-ID: <11871990412364-git-send-email-mkent@magoazul.com> (raw)
In-Reply-To: 46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org

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/

                 reply	other threads:[~2007-08-15 17:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11871990412364-git-send-email-mkent@magoazul.com \
    --to=mkent-rtvjrlrgjfnwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox