From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Malone Subject: Re: serial/ rs232 and qemu /kvm? Date: Wed, 20 Aug 2008 09:18:30 +1200 Message-ID: <48AB38A6.9010505@tait.co.nz> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT To: kvm mailing list Return-path: Received: from gatekeeper.tait.co.nz ([202.37.96.11]:38348 "EHLO gatekeeper.tait.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbYHSVSd (ORCPT ); Tue, 19 Aug 2008 17:18:33 -0400 Received: from gatekeeper.tait.co.nz (localhost.localdomain [127.0.0.1]) by localhost.tait.co.nz (Postfix) with ESMTP id 9068946752 for ; Wed, 20 Aug 2008 09:18:31 +1200 (NZST) Received: from sunstrike.tait.co.nz (sunstrike [172.25.40.92])by gatekeeper.tait.co.nz (Postfix) with ESMTP id 7E02346749for ; Wed, 20 Aug 2008 09:18:30 +1200 (NZST) Received: from conversion-daemon.sunstrike.tait.co.nz by sunstrike.tait.co.nz(Sun Java System Messaging Server 6.1 (built Apr 28 2004))id <0K5V00E019E72A00@sunstrike.tait.co.nz>(original mail from michael.malone@tait.co.nz) for kvm@vger.kernel.org; Wed,20 Aug 2008 09:18:30 +1200 (NZST) Received: from [172.25.143.6] by sunstrike.tait.co.nz(Sun Java System Messaging Server 6.1 (built Apr 28 2004))with ESMTP id <0K5V00L5P9UU56F0@sunstrike.tait.co.nz> for kvm@vger.kernel.org;Wed, 20 Aug 2008 09:18:30 +1200 (NZST) Sender: kvm-owner@vger.kernel.org List-ID: I have been trying to use kvm to do some microcontroller programming, mostly with success - until I want to send an ascii NULL down the port. (I don't know what's going on there, but if you have any ideas, that would be fantastic)Our communication protocol is very touchy about speeds, so the baud rate was being passed on correctly when I used qemu/kvm like this: kvm -serial /dev/ttyUSB0 (I'm using a usb-serial converter). You can have up to 4 COM ports by repeating the -serial "device" option. See the qemu man page for more details (yes, it works just the same when you're invoking it with kvm). If you're trying to use virt-manager, then don't. Virt-manager stops you from having access to a bunch of the underlying features of kvm/qemu such as serial ports. I'm told they're working on it, but it's only useful for a basic setup at the moment. Michael Glauber Costa wrote: > On Tue, Aug 19, 2008 at 11:24 AM, Marc Weber wrote: > >> First of all, is this the mailinglist to ask this question? Or should I >> ask it on the qemu lists? >> >> I'd like to run WinXP/ Vista within kvm and do microcontroller >> programming. My host is linux of course. I had some success using the >> qemu pre 0.8 way using slsnif. Setting baud rate to 115200 made some of >> the operations work, but most don't. >> >> So is there a way to connect COM1 within the guest to /dev/ttyS0 so that >> baud rate settings within the guest will be forwarded to /dev/ttyS0 on >> the host? >> > > check out for qemu's "-serial" option > > >> Marc Weber >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> > > > > ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================