From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38753 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onnk5-0003JJ-5n for qemu-devel@nongnu.org; Tue, 24 Aug 2010 03:16:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Onnk3-0000Bv-Nn for qemu-devel@nongnu.org; Tue, 24 Aug 2010 03:16:21 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:41906) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onnk3-0000Bn-Le for qemu-devel@nongnu.org; Tue, 24 Aug 2010 03:16:19 -0400 Received: by vws19 with SMTP id 19so194973vws.4 for ; Tue, 24 Aug 2010 00:16:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 24 Aug 2010 08:16:18 +0100 Message-ID: Subject: Re: [Qemu-devel] Emulate character device From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thisara Rupasinghe Cc: qemu-devel@nongnu.org On Tue, Aug 24, 2010 at 6:04 AM, Thisara Rupasinghe wrote: > There I need to use machines > character device "dev/vedio0" and stream that to the qemu environment. > Therefore on the emulator that web cam stream will be available as the > emulators character device "dev/video0". So how can I able to do that? I'm > quite new to Qemu and please can anyone help me to do this? QEMU hardware emulation usually doesn't work at the Linux character device passthrough. In the source tree, look at hw/ which contains the emulated guest devices. These are emulated hardware devices that sit on busses like PCI, not Linux character device passthrough. For example, a real RTL8139 PCI network card is emulated. There is some support for USB device passthrough. If you have a USB webcam (even "internal" webcams are often USB) and Android supports USB webcams, then that might work. It really depends on what webcam devices the Android guest knows how to drive. QEMU either needs to pass through one of those devices or it needs hardware emulation so the guest thinks it is talking to a supported device. Stefan