From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60861 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXoar-0004nX-JF for qemu-devel@nongnu.org; Wed, 29 Dec 2010 00:29:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXoad-0004GB-PV for qemu-devel@nongnu.org; Wed, 29 Dec 2010 00:29:01 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:57038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXoad-0004Fj-Km for qemu-devel@nongnu.org; Wed, 29 Dec 2010 00:28:47 -0500 Received: by wyg36 with SMTP id 36so10884392wyg.4 for ; Tue, 28 Dec 2010 21:28:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <035B2B8A-3932-4B90-8EA5-D95D3E2F4467@dlh.net> References: <035B2B8A-3932-4B90-8EA5-D95D3E2F4467@dlh.net> Date: Wed, 29 Dec 2010 05:28:46 +0000 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH] pc: move port 92 stuff back to pc.c from pckbd.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: Blue Swirl , qemu-devel On Tue, Dec 28, 2010 at 9:45 PM, Peter Lieven wrote: > What happens if I set the A20 Gate via the keyboard controller and then r= ead its status via ioport 0x92? This doesn't work, or does it? > What was wrong reading the A20 via > > int ioport_get_a20(void) > { > =A0 =A0return ((first_cpu->a20_mask >> 20) & 1); > } > > every time ioport 0x92 or the keyobard outport is read? I wonder the same thing. Also, stashing the uint8_t output value away is not migration-friendly at the moment? Stefan