Received: from eggs.gnu.org ([2001:4830:134:3::10]:38548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkvfb-0000zM-By for qemu-devel@nongnu.org; Thu, 15 May 2014 09:26:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkvfR-0000Ct-UY for qemu-devel@nongnu.org; Thu, 15 May 2014 09:25:59 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:53148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvfR-0000CM-KY for qemu-devel@nongnu.org; Thu, 15 May 2014 09:25:49 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5M00I28AMXJ120@mailout4.samsung.com> for qemu-devel@nongnu.org; Thu, 15 May 2014 22:25:45 +0900 (KST) From: Jaeyong Yoo References: <98.08.11443.AD612735@epcpsbgx3.samsung.com> <5372241E.8090309@redhat.com> <007f01cf6f29$1eebdcf0$5cc396d0$%yoo@samsung.com> <53734BA7.3060008@redhat.com> <00f601cf6f69$7c131bb0$74395310$%yoo@samsung.com> <5373597A.5090004@redhat.com> In-reply-to: <5373597A.5090004@redhat.com> Date: Thu, 15 May 2014 22:25:48 +0900 Message-id: <011a01cf7041$2f22aae0$8d6800a0$%yoo@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable Content-language: ko Subject: Re: [Qemu-devel] Where is vga-rom mapped in guest system memory? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Laszlo Ersek' , qemu-devel@nongnu.org > I rely on the qemu debug port rather than on serial: >=20 > -debugcon file:debug.log -global isa-debugcon.iobase=3D0x402 >=20 > Check the DEBUG_IO and DEBUG_LEVEL settings in the SeaBIOS config as = well. Thanks Laszlo! Now I can see the log message in VirtualBox vgabios with = qemu debug port. By the way, I've got one more question, which is very strange for me. I tried to print a string and the values read by the string address do = not look correct. More specifically, I wrote the following code in VirtualBox = vga-bios: char *msg =3D "Start Vgabios\n"; for (i =3D msg; ++i; *i !=3D 0) { outb(0x402, *i); } And, I expect to see the message "Start Vgabios" in the debug port, but = it doesn't work. If I object-dump the related parts in VirtualBox vga-bios, I can = see that the msg (msg =3D 0x7eea) properly contains "Start Vgabios". And, if I print = the value of i in vga-bios, it gives 0x7eea (which is correct address). Then I expect = that *i should be 'S' but *I gives zero. I checked the vga-rom size field and it = properly covers the actual size of vgarom. Then, I think qemu properly map the entire vgarom = in the proper, so it won't be an issue. Is there some issues with memory addressing that I'm missing? Best regards, Jaeyong