From patchwork Tue Feb 1 16:53:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 81342 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 40804B70EC for ; Wed, 2 Feb 2011 05:02:43 +1100 (EST) Received: from localhost ([127.0.0.1]:57754 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkK0y-0007jK-8x for incoming@patchwork.ozlabs.org; Tue, 01 Feb 2011 12:27:40 -0500 Received: from [140.186.70.92] (port=60049 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkJmn-0000Se-Lt for qemu-devel@nongnu.org; Tue, 01 Feb 2011 12:13:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkJTu-00005x-9A for qemu-devel@nongnu.org; Tue, 01 Feb 2011 11:53:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkJTt-0008Vj-Va for qemu-devel@nongnu.org; Tue, 01 Feb 2011 11:53:30 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p11GrPB7002311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Feb 2011 11:53:25 -0500 Received: from blackpad.lan.raisama.net (ovpn-113-113.phx2.redhat.com [10.3.113.113]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p11GrOaE025512; Tue, 1 Feb 2011 11:53:24 -0500 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id B6A29209D30; Tue, 1 Feb 2011 14:53:23 -0200 (BRST) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Tue, 1 Feb 2011 14:53:22 -0200 Message-Id: <1296579203-21083-4-git-send-email-ehabkost@redhat.com> In-Reply-To: <1296579203-21083-1-git-send-email-ehabkost@redhat.com> References: <1296579203-21083-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Juan Quintela Subject: [Qemu-devel] [PATCH 3/4] add CONFIG_VMMOUSE option X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This will allow vmmouse to be disabled at build time if necessary. Signed-off-by: Eduardo Habkost --- Makefile.target | 5 ++++- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/pc.c | 2 ++ 4 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index 03fc486..c184af6 100644 --- a/Makefile.target +++ b/Makefile.target @@ -220,11 +220,14 @@ obj-$(CONFIG_KVM) += ivshmem.o obj-i386-y += vga.o obj-i386-y += mc146818rtc.o i8259.o pc.o obj-i386-y += cirrus_vga.o apic.o ioapic.o piix_pci.o -obj-i386-y += vmmouse.o vmport.o hpet.o applesmc.o +obj-i386-y += vmport.o hpet.o applesmc.o obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o obj-i386-y += debugcon.o multiboot.o obj-i386-y += pc_piix.o +obj-i386-$(CONFIG_VMMOUSE) += vmmouse.o + + # shared objects obj-ppc-y = ppc.o obj-ppc-y += vga.o diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak index ed00471..a4450bc 100644 --- a/default-configs/i386-softmmu.mak +++ b/default-configs/i386-softmmu.mak @@ -23,3 +23,4 @@ CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y CONFIG_VIRTIO_PCI=y +CONFIG_VMMOUSE=y diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak index 5183203..658b249 100644 --- a/default-configs/x86_64-softmmu.mak +++ b/default-configs/x86_64-softmmu.mak @@ -23,3 +23,4 @@ CONFIG_NE2000_ISA=y CONFIG_PIIX_PCI=y CONFIG_SOUND=y CONFIG_VIRTIO_PCI=y +CONFIG_VMMOUSE=y diff --git a/hw/pc.c b/hw/pc.c index e872a7b..31ac075 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1059,7 +1059,9 @@ void pc_basic_device_init(qemu_irq *isa_irq, a20_line = qemu_allocate_irqs(handle_a20_line_change, first_cpu, 1); i8042 = isa_create_simple("i8042"); i8042_setup_a20_line(i8042, a20_line); +#ifdef CONFIG_VMMOUSE vmmouse_init(i8042); +#endif cpu_exit_irq = qemu_allocate_irqs(cpu_request_exit, NULL, 1); DMA_init(0, cpu_exit_irq);