From: Kevin O'Connor Subject: Re: [RFC PATCH v3 0/3] Add segment limit checks to emulator Date: Sun, 25 Jul 2010 12:23:28 -0400 Message-ID: <20100725162328.GA18995@morn.localdomain> References: <1278888970-2936-1-git-send-email-m.gamal005@gmail.com> <4C3AB59B.60705@redhat.com> <4C3B14E2.8050404@redhat.com> <20100724154522.GA13246@morn.localdomain> <4C4BFBBC.9060203@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Mohammed Gamal , mtosatti@redhat.com, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:62053 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150Ab0GYQXc (ORCPT ); Sun, 25 Jul 2010 12:23:32 -0400 Received: by vws3 with SMTP id 3so1726798vws.19 for ; Sun, 25 Jul 2010 09:23:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: <4C4BFBBC.9060203@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jul 25, 2010 at 11:54:20AM +0300, Avi Kivity wrote: > On 07/24/2010 06:45 PM, Kevin O'Connor wrote: > >On Mon, Jul 12, 2010 at 04:13:06PM +0300, Avi Kivity wrote: > >>Does SeaBIOS use big real mode now? > >SeaBIOS calls option roms in big real mode. This is required by the > >relevant specs. > > Can you provide a pointer? See the PMM spec section 2.2 and section 3.2.4. (Sadly, I can't find a link to the PMM spec on the web anymore - hopefully you have a copy.) Also see the PCI Firmware Specification v3.0 - section 5.2.1.9. The specs don't require any code addresses to be >64K, but it does require data access over 64K. I doubt there are many systems that use a code address >64K, because an interrupt in big real mode still only stores a 16bit return address - thus an irq (or nmi) in that mode will basically cause a crash. -Kevin