[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/15] add option to disable wmware devices
From: |
quintela |
Subject: |
[Qemu-devel] [PATCH 08/15] add option to disable wmware devices |
Date: |
Tue, 23 Jun 2009 16:14:06 +0200 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
Makefile.target | 6 ++++--
configure | 15 +++++++++++++++
hw/pc.c | 4 ++++
hw/pckbd.c | 4 ++--
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index 878294d..55575a1 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -588,8 +588,10 @@ OBJS+= cirrus_vga.o apic.o ioapic.o parallel.o acpi.o
piix_pci.o
ifdef CONFIG_USB
OBJS+= usb-uhci.o
endif
-OBJS+= vmmouse.o vmport.o vmware_vga.o hpet.o
-OBJS += device-hotplug.o pci-hotplug.o smbios.o
+ifdef CONFIG_VMWARE
+OBJS+= vmmouse.o vmport.o vmware_vga.o
+endif
+OBJS+= device-hotplug.o pci-hotplug.o smbios.o hpet.o
CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
endif
ifeq ($(TARGET_BASE_ARCH), ppc)
diff --git a/configure b/configure
index 4a1fb45..5554934 100755
--- a/configure
+++ b/configure
@@ -194,6 +194,7 @@ kvm="no"
usb="yes"
smb="yes"
scsi="yes"
+vmware="no"
kerneldir=""
aix="no"
blobs="yes"
@@ -340,6 +341,12 @@ fi
;;
esac
+case $cpu in
+i386|x86_64)
+vmware="yes"
+;;
+esac
+
if [ "$bsd" = "yes" ] ; then
if [ "$darwin" != "yes" ] ; then
make="gmake"
@@ -445,6 +452,8 @@ for opt do
;;
--disable-scsi) scsi="no"
;;
+ --disable-vmware) vmware="no"
+ ;;
--disable-kvm) kvm="no"
;;
--enable-profiler) profiler="yes"
@@ -639,6 +648,7 @@ echo " --disable-bluez disable bluez stack
connectivity"
echo " --disable-usb disable usb stack connectivity"
echo " --disable-smb disable smb directories support"
echo " --disable-scsi disable scsi support"
+echo " --disable-vmware disable vmware devices"
echo " --disable-kvm disable KVM acceleration support"
echo " --disable-nptl disable usermode NPTL support"
echo " --enable-system enable all system emulation targets"
@@ -1465,6 +1475,7 @@ echo "bluetooth support $bluez"
echo "usb support $usb"
echo "smb directories $smb"
echo "scsi support $scsi"
+echo "vwmare devices $vmware"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -1794,6 +1805,10 @@ if test "$scsi" = "yes" ; then
echo "#define CONFIG_SCSI 1" >> $config_h
echo "CONFIG_SCSI=yes" >> $config_mak
fi
+if test "$vmware" = "yes" ; then
+ echo "#define CONFIG_VMWARE 1" >> $config_h
+ echo "CONFIG_VMWARE=yes" >> $config_mak
+fi
if test "$aio" = "yes" ; then
echo "#define CONFIG_AIO 1" >> $config_h
echo "CONFIG_AIO=yes" >> $config_mak
diff --git a/hw/pc.c b/hw/pc.c
index ee0e07f..91d7a45 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -885,7 +885,9 @@ static void pc_init1(ram_addr_t ram_size,
}
}
+#ifdef CONFIG_VMWARE
vmport_init();
+#endif
/* allocate RAM */
ram_addr = qemu_ram_alloc(0xa0000);
@@ -1021,11 +1023,13 @@ static void pc_init1(ram_addr_t ram_size,
} else {
isa_cirrus_vga_init();
}
+#ifdef CONFIG_VMWARE
} else if (vmsvga_enabled) {
if (pci_enabled)
pci_vmsvga_init(pci_bus);
else
fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __FUNCTION__);
+#endif
} else if (std_vga_enabled) {
if (pci_enabled) {
pci_vga_init(pci_bus, 0, 0);
diff --git a/hw/pckbd.c b/hw/pckbd.c
index 092d1ba..14f5f61 100644
--- a/hw/pckbd.c
+++ b/hw/pckbd.c
@@ -378,7 +378,7 @@ void i8042_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
uint32_t io_base)
s->kbd = ps2_kbd_init(kbd_update_kbd_irq, s);
s->mouse = ps2_mouse_init(kbd_update_aux_irq, s);
-#ifdef TARGET_I386
+#if defined(TARGET_i386) && defined(CONFIG_VMWARE)
vmmouse_init(s->mouse);
#endif
qemu_register_reset(kbd_reset, 0, s);
@@ -435,7 +435,7 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq,
s->kbd = ps2_kbd_init(kbd_update_kbd_irq, s);
s->mouse = ps2_mouse_init(kbd_update_aux_irq, s);
-#ifdef TARGET_I386
+#if defined(TARGET_I386) && defined(CONFIG_VMWARE)
vmmouse_init(s->mouse);
#endif
qemu_register_reset(kbd_reset, 0, s);
--
1.6.2.2
- [Qemu-devel] [PATCH 01/15] Only compile-in selected audio drivers, (continued)
- [Qemu-devel] [PATCH 01/15] Only compile-in selected audio drivers, quintela, 2009/06/23
- [Qemu-devel] [PATCH 03/15] rename usb variable to usb host, quintela, 2009/06/23
- [Qemu-devel] [PATCH 04/15] protect with CONFIG_BRLAPI, quintela, 2009/06/23
- [Qemu-devel] [PATCH 02/15] Make --disable-bluez to really remove bluetooth support, quintela, 2009/06/23
- [Qemu-devel] [PATCH 05/15] Make --disable-usb to really remove usb support, quintela, 2009/06/23
- [Qemu-devel] [PATCH 07/15] add option to remove scsi support, quintela, 2009/06/23
- [Qemu-devel] [PATCH 06/15] Add --disable-smb to remove smb directories support, quintela, 2009/06/23
- [Qemu-devel] [PATCH 08/15] add option to disable wmware devices,
quintela <=
- [Qemu-devel] [PATCH 09/15] ssi bus is only used on the arm platform, quintela, 2009/06/23
- [Qemu-devel] [PATCH 11/15] sd flash is only used in arm devices, quintela, 2009/06/23
- [Qemu-devel] [PATCH 10/15] move i2c devices only used in arm devices to arm target, quintela, 2009/06/23
- [Qemu-devel] [PATCH 12/15] move m48t59 and ecc driver to ppc and sparc, that are the targets that use it, quintela, 2009/06/23