From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=53926 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pke6O-0003Bs-K0 for qemu-devel@nongnu.org; Wed, 02 Feb 2011 09:54:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkXYf-0004rI-Ay for qemu-devel@nongnu.org; Wed, 02 Feb 2011 02:55:22 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:36010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkXYf-0004r3-6c for qemu-devel@nongnu.org; Wed, 02 Feb 2011 02:55:21 -0500 Received: by wyg36 with SMTP id 36so7803150wyg.4 for ; Tue, 01 Feb 2011 23:55:20 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4D490DE2.6070806@redhat.com> Date: Wed, 02 Feb 2011 08:55:14 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1296579203-21083-1-git-send-email-ehabkost@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 0/4] fix/add CONFIG_* options for VMWare device emulation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Juan Quintela , Eduardo Habkost , qemu-devel@nongnu.org On 02/01/2011 07:10 PM, Blue Swirl wrote: > One way to solve this which would preserve the device model would be > to add stub devices. For example, hw/vmmouse-stub.c would be: > void *vmmouse_init(void *m) > { > return NULL; > } This is the wrong direction, unless you can somehow automatically generate the stub file. The only other solution I can think of is weak symbols. There are subtle differences between Windows and Linux weak symbols, but luckily we do not care about it. See http://cygwin.com/ml/cygwin/2010-04/msg00281.html Paolo