Received: from eggs.gnu.org ([2001:4830:134:3::10]:48540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpFuR-0008K5-5o for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:46:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpFuQ-0008V5-2I for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:46:39 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:46411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpFuP-0008S9-Ke for qemu-devel@nongnu.org; Wed, 19 Jun 2013 06:46:37 -0400 Message-ID: <51C18C0B.1030305@msgid.tls.msk.ru> Date: Wed, 19 Jun 2013 14:46:35 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <20130312164246.GA3771@fries.net> <51A9D1F7.2060601@msgid.tls.msk.ru> In-Reply-To: <51A9D1F7.2060601@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] -nographic and -daemonize wrt qemu-system-sparc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: todd@fries.net Cc: Anthony Liguori , qemu-devel 01.06.2013 14:50, Michael Tokarev wrote: > [Replying to a very old email which I missed initially] > > Todd, do you still have the issue you describe? > > I mean, not that we changed lots in that area (I guess we > changed nothing there), but i'm not sure I understand what > is going on there, and why the behavour changed the way you > describe. I guess there's some other bug somewhere which > you see now. Hm. So I finally see the issue here, after I started messing with displays in qemu. > 12.03.2013 20:42, Todd T. Fries wrote: >> So I'm having problems that I believe I've traced back to the commit >> ab51b1d568e02c80b1abf9016bda3a86dc1db389 on qemu-system-sparc. >> >> Specifically, the commit states that: >> >> -nographic >> >> is equivalent to (replacing the 'null' with 'none'): >> >> -serial none -parallel none -monitor none -display none -vga none >> >> However on qemu-system-sparc this is not the case. >> >> Something about '-nographic -daemonize' works on qemu 1.3.1 to permit >> further specifying the serial port elsewhere (unix: or tcp: for example). This is because of the following code: hw/sparc/sun4m.c:sun4m_hw_init(): slavio_serial_ms_kbd_init(hwdef->ms_kb_base, slavio_irq[14], display_type == DT_NOGRAPHIC, ESCC_CLOCK, 1); where 3rd arg for slavio_serial_ms_kbd_init() is `disabled'. So without -nographic, the sun serial port becomes disabled and obviously does not work. So apparently we have other uses of -nographic in the code. Another are 2 referenses in qemu-char.c: qemu-char.c: stdio_allow_signal = display_type != DT_NOGRAPHIC; qemu-char.c- backend->stdio->signal = qemu-char.c: qemu_opt_get_bool(opts, "signal", display_type != DT_NOGRAPHIC); So we need to fix these too. Should it be switched to display=none? Or alternatively, we have this in qemu-char.c already: qemu-char.c: if (is_daemonized()) { qemu-char.c: error_report("cannot use stdio with -daemonize"); so maybe tie it to is_daemonized() ? If -nographic is legacy, what are the alternatives to the above usages of it? Thanks, /mjt