From: Sasha Levin Subject: [PATCH v2 2/2] kvm tools: Don't use i8042 AUX port Date: Wed, 14 Sep 2011 10:24:53 +0300 Message-ID: <1315985093-5916-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-ey0-f174.google.com ([209.85.215.174]:62333 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755989Ab1INH0R (ORCPT ); Wed, 14 Sep 2011 03:26:17 -0400 Received: by eyx24 with SMTP id 24so793217eyx.19 for ; Wed, 14 Sep 2011 00:26:16 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: We are enabling i8042 even without VNC or SDL so that we could use it's reset method to reboot the guest. AUX port might cause delays during boot. Disable it if the user didn't ask for VNC or SDL. Signed-off-by: Sasha Levin --- tools/kvm/builtin-run.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 465bbe7..b2f17ea 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -736,11 +736,12 @@ 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 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=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 - strcat(real_cmdline, " console=ttyS0 earlyprintk=serial"); + strcat(real_cmdline, " console=ttyS0 earlyprintk=serial i8042.noaux=1"); strcat(real_cmdline, " "); if (kernel_cmdline) strlcat(real_cmdline, kernel_cmdline, sizeof(real_cmdline)); -- 1.7.6.1