public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Malone <michael.malone@tait.co.nz>
To: kvm mailing list <kvm@vger.kernel.org>
Subject: Re: serial/ rs232 and qemu /kvm?
Date: Wed, 20 Aug 2008 09:18:30 +1200	[thread overview]
Message-ID: <48AB38A6.9010505@tait.co.nz> (raw)

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 <irrelevant options> -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 <marco-oweber@gmx.de> 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.
=======================================================================


             reply	other threads:[~2008-08-19 21:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 21:18 Michael Malone [this message]
2008-08-19 22:37 ` serial/ rs232 and qemu /kvm? Charles Duffy
2008-08-19 22:55   ` Michael Malone
  -- strict thread matches above, loose matches on Subject: below --
2008-08-19 14:24 Marc Weber
2008-08-19 15:32 ` Glauber Costa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48AB38A6.9010505@tait.co.nz \
    --to=michael.malone@tait.co.nz \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox