From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Kent Subject: [PATCH] hint your using kvm Date: Wed, 15 Aug 2007 10:30:41 -0700 Message-ID: <11871990412364-git-send-email-mkent@magoazul.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Matthew Kent To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: 46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org References: 46C2688D.80505-atKUWr5tajBWk0Htik3J/w@public.gmane.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Signed-off-by: Matthew Kent --- 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/