From: "Christoph Egger" Subject: Re: [PATCH][HVM] Fix guest hang producing "PIT: bad access"messages Date: Mon, 14 Jan 2008 11:38:15 +0100 Message-ID: <200801141138.16047.Christoph.Egger@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Saturday 12 January 2008 12:10:58 Keir Fraser wrote: > Fixed by c/s 16709. I tested with the ISO you sent me and NetBSD boots mu= ch > further, I can confirm that. I tested with c/s 16712. Thanks for fixing this. > to a reasonable point (failure to init a console).=20 It launches "sysinst", the install application. Press CTRL+Z get back on console. Christoph > > -- Keir > > On 11/1/08 11:08, "Christoph Egger" wrote: > > Hi > > > > When the HVM guest atomically reads two bytes from the PIT via "rep > > insb" and the two bytes crosses pages, then in xen/arch/x86/hvm/i8254.c, > > handle_pit_io(), p->data_is_ptr is 1 which leads to an unhandled read. > > > > Since reading the first byte does not change the guest rip, an endless > > loop of VMEXIT_IOIO happens. This leads to an endless stream of "PIT: b= ad > > access" xen messages =3D> Guest hangs. > > > > This has been accurately reproduced on NetBSD/amd64 as HVM guest > > and this also been seen on 64bit Windows guests. > > > > The attached patch handles the page-crossing access in the PIT emulatio= n. > > > > Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy