From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: [PATCH 1/2] kvm tools: Speed up PS/2 mouse detection Date: Thu, 11 Aug 2011 23:41:50 +0300 Message-ID: <1313095311-7413-1-git-send-email-levinsasha928@gmail.com> Cc: kvm@vger.kernel.org, mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:39440 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753734Ab1HKUm6 (ORCPT ); Thu, 11 Aug 2011 16:42:58 -0400 Received: by wyg24 with SMTP id 24so1693324wyg.19 for ; Thu, 11 Aug 2011 13:42:57 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: This patch speeds up PS/2 mouse detection by switching to the fastest probing method compatible with kvm tools i8042 emulation. The result is detection taking < 0.5 sec instead of >5 sec. Tested-by: Asias He Signed-off-by: Sasha Levin --- tools/kvm/builtin-run.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index be61304..2816774 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -587,7 +587,7 @@ int kvm_cmd_run(int argc, const char **argv, const char *prefix) vidmode = 0; memset(real_cmdline, 0, sizeof(real_cmdline)); - strcpy(real_cmdline, "notsc noapic noacpi pci=conf1 reboot=k panic=1"); + strcpy(real_cmdline, "notsc noapic noacpi pci=conf1 reboot=k panic=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1"); if (vnc || sdl) { strcat(real_cmdline, " video=vesafb console=tty0"); } else -- 1.7.6