From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbxJ9-0003W6-Qf for qemu-devel@nongnu.org; Sat, 28 Mar 2015 16:26:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbxJ6-0003SX-M8 for qemu-devel@nongnu.org; Sat, 28 Mar 2015 16:26:15 -0400 Received: from s16892447.onlinehome-server.info ([82.165.15.123]:48417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbxJ6-0003SP-FM for qemu-devel@nongnu.org; Sat, 28 Mar 2015 16:26:12 -0400 Message-ID: <55170E56.50602@ilande.co.uk> Date: Sat, 28 Mar 2015 20:25:58 +0000 From: Mark Cave-Ayland MIME-Version: 1.0 References: <6C5ABA02-5765-47C0-B9C6-72C8F461F469@gmail.com> <55146CBB.2050406@ilande.co.uk> <5514736F.3040605@redhat.com> In-Reply-To: <5514736F.3040605@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-discuss] error - Guest has not initialized the display yet. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: Programmingkid , Peter Crosthwaite , anandk1386@gmail.com, qemu-devel qemu-devel On 26/03/15 21:00, Paolo Bonzini wrote: > On 26/03/2015 21:55, Peter Maydell wrote: >> I feel like we're recapitulating history here -- is >> c3c1bb99d undoing the fix that a87f39543a made for when we >> tried this a year ago in 360e607, or is there something >> more subtle going on ? > > It's more subtle. The patch should only make a difference when > address_space_translate_internal modifies *plen. > > The crux of the change is the first operand of this MIN: > > - len = MIN(len, (addr | iotlb.addr_mask) - addr + 1); > + *plen = MIN(*plen, (addr | iotlb.addr_mask) - addr + 1); > > changing from len to *plen. Ah so it's related to the VGA VBE register accesses again? Given that this seems to be a bit of a corner case, is there any way of writing a regression test to catch this? ATB, Mark.