From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwVzS-00057k-8p for qemu-devel@nongnu.org; Tue, 09 Jul 2013 07:21:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwVzQ-0005mA-Ma for qemu-devel@nongnu.org; Tue, 09 Jul 2013 07:21:50 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39653 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwVzQ-0005lw-Ct for qemu-devel@nongnu.org; Tue, 09 Jul 2013 07:21:48 -0400 Message-ID: <51DBF248.4050102@suse.de> Date: Tue, 09 Jul 2013 13:21:44 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1372868986-25988-1-git-send-email-mjt@msgid.tls.msk.ru> <51DBBE41.3090004@msgid.tls.msk.ru> <51DBCD0F.80908@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 1/2] trap signals for "-serial mon:stdio" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: Peter Maydell , Anthony Liguori , Michael Tokarev , qemu-devel@nongnu.org, Blue Swirl , Paolo Bonzini Hi Max, Am 09.07.2013 13:00, schrieb Max Filippov: > On Tue, Jul 9, 2013 at 12:42 PM, Andreas F=E4rber wr= ote: >> Am 09.07.2013 09:39, schrieb Michael Tokarev: >>> Ping? >> >> Have you tested -semihosting? The xtensa test image on the Wiki uses >> -nographic, but semihosting content always seems to go to stdout witho= ut >> going through a chardev IIUC... >=20 > xtensa semihosting allows guest privileged code to work with host's fil= e > descriptors doing open/read/write/lseek/close. Linux sim machine uses i= t > to implement console (with standard 0/1 file descriptors), simulated di= sks > and networking. Do you think it's worth tying these descriptors with a > chardev? If so, I'm probably the right person to do it (: Paolo's/Michael's patches are relying on -serial stdio,signal=3Don as a replacement implementation for -nographic, so I raised the question of whether that would work as expected for -semihosting in general. I do not have test images for arm or m68k semihosting, so I cannot tell whether xtensa should be doing something differently. Peter and me seemed to agree that unicore32 instructions shouldn't mess with the host's ncurses directly, but Blue apparently didn't agree and applied it (and I guess neither of us has access to a test image to see it in action). stdio seems less intrusive compared to that, but I did have issues with input at the xtensa login prompt going to the monitor instead (I use -qmp for all my test machines to inspect the QOM tree, so I needed to specify -monitor mon:stdio manually); -display none -monitor none -qmp unix:... worked better for me. Cheers, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg