From: Ian Jackson Subject: Re: make serial port com2 Date: Mon, 20 Sep 2010 15:41:01 +0100 Message-ID: <19607.29309.689379.401763@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org James Harper writes ("[Xen-devel] make serial port com2"): > Is there an easy way to make the serial port in a hvm domain as > specified by "serial=pty" be com2 instead of com1? I don't know of an easy way, but this can almost certainly done by appropriate manipulation of the parameters to the device model qemu. You can probably use extra="-serial pty" or something to generate a 2nd serial port. > In the absence of an easy way, any pointers as to where to start looking > in the code? If you're using xl, take a look at libxl.c: if (info->serial) { flexarray_set(dm_args, num++, "-serial"); flexarray_set(dm_args, num++, info->serial); } See also the manpage qemu.1 in the qemu-xen tree (man -l qemu.1). Ian.