From patchwork Wed Feb 5 22:39:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin O'Connor X-Patchwork-Id: 317288 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 742892C00A4 for ; Thu, 6 Feb 2014 09:40:58 +1100 (EST) Received: from localhost ([::1]:33525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBB9L-00075c-21 for incoming@patchwork.ozlabs.org; Wed, 05 Feb 2014 17:40:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBB8h-00073s-Sv for qemu-devel@nongnu.org; Wed, 05 Feb 2014 17:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBB8Y-0006TJ-MH for qemu-devel@nongnu.org; Wed, 05 Feb 2014 17:40:15 -0500 Received: from mail-qc0-f175.google.com ([209.85.216.175]:36386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBB8Y-0006RO-Ix for qemu-devel@nongnu.org; Wed, 05 Feb 2014 17:40:06 -0500 Received: by mail-qc0-f175.google.com with SMTP id x13so1828713qcv.34 for ; Wed, 05 Feb 2014 14:40:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=RVwTrGAymZu5ACrvEDghZB19Gjy8leP8LFVImp4GlNM=; b=CE9ECYCZolRdgtRbPLiedBdXq4IJYyHr4i3zUtYOE5IodGMkdEPVvjz2LlkDrb/rDY ba5U2HCU64b8pNyvp3KIzWCnPeXh/lPn+xig3L1fJvFKhX8GaTmcG53UF0Cj7N+n9zxG iYOR0x/HEDmWPoBfDw7yDP2o7yiM+2ky+1sUGxkqqGIXUjZodbJh0ik2O8jySZee+O92 sBA4EJtfqPF+5KmAhU69luCx9PEFBrMTSn5wI0n1NmpoyjGRHxQR5BJE7Dp+ZkX9Uv+k DbJ97KUVXynpVcFuzg5eIaXU6VlXSDeh2Zg8i9H15y24iqMOsxUtMPL13g/QZdCLTmhI u/dQ== X-Gm-Message-State: ALoCoQlj7raWvHVbmnkVcM7sNYle6kBH4iGUJMepQQHiXgj+iB+WL1oo+XzGInfORrS4wR9CdxpQ X-Received: by 10.140.94.214 with SMTP id g80mr6726844qge.19.1391640005658; Wed, 05 Feb 2014 14:40:05 -0800 (PST) Received: from localhost (207-172-170-53.c3-0.avec-ubr1.nyr-avec.ny.cable.rcn.com. [207.172.170.53]) by mx.google.com with ESMTPSA id v3sm81133610qap.4.2014.02.05.14.40.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2014 14:40:05 -0800 (PST) Date: Wed, 5 Feb 2014 17:39:52 -0500 From: Kevin O'Connor To: Sebastian Message-ID: <20140205223951.GA4309@morn.localdomain> References: <52CDDD2D.3050300@sraa.de> <20140204194704.GA2680@dhcp-200-207.str.redhat.com> <1391606398.17309.10.camel@nilsson.home.kraxel.org> <20140205183419.GA3779@morn.localdomain> <20140205190804.GB3779@morn.localdomain> <52F2A5A2.4030904@sraa.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <52F2A5A2.4030904@sraa.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.175 Cc: Kevin Wolf , seabios , Gerd Hoffmann , qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [SeaBIOS] WfW setup and DOS display.sys hanging X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org On Wed, Feb 05, 2014 at 09:57:06PM +0100, Sebastian wrote: > >>I can't reproduce the hang with the dosidle program linked by > >>Sebastian. (I ran the program on freedos and on an msdos floppy and > >>both times it said it install succesfully.) Can someone walk through > >>the steps needed to reproduce the problem? > > > >I found some old Win3.1 images, and I do see the failure running setup > >on that (when run from dos 6). I'll look into it. > > > >Sebastian, can you document the steps to reproduce the dosidle and > >display.sys failure? (I tried putting display.sys into a dos6 > >config.sys, but it doesn't like my parameters so I don't think it's > >doing anything.) > > I cloned the git repository, and built with: > $ ./configure --target-list=i386-softmmu > $ make -j2 > > I then installed MS-DOS onto a virtual 50 MB disk, all default settings: > $ /tmp/qemu/i386-softmmu/qemu-system-i386 -m 4 -hda msdos.img -fda > MS-DOS_1.IMG > > After rebooting, qemu hangs with 100% cpu usage when loading > DISPLAY.SYS. It is loaded by the following line in CONFIG.SYS: > > DEVICE=C:\DOS\DISPLAY.SYS CON=(EGA,,1) Thanks. That DEVICE line causes a failure for me as well and the call trace is much easier to understand. The SeaVGABIOS patch below fixes both the DISPLAY.SYS and Win3 setup issue for me. (I can't reproduce the dosidle problem.) -Kevin --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -1114,7 +1114,7 @@ struct funcInfo { u8 save_flags; u8 disp_info; u8 reserved_34[12]; -}; +} PACKED; static void handle_101b(struct bregs *regs)