From: Bastian Blank Subject: Re: [RFC][PATCH] Emulate instructions in vm86 mode Date: Thu, 7 Sep 2006 15:59:51 +0200 Message-ID: <20060907135951.GA9616@wavehammer.waldi.eu.org> References: <20060907130908.GA6165@wavehammer.waldi.eu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0705336874==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0705336874== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 07, 2006 at 02:24:33PM +0100, Keir Fraser wrote: > On 7/9/06 14:09, "Bastian Blank" wrote: > >> (INS/OUTS). What happens if you just bail to the guest's GPF handler i= f in > >> vm86 mode? > > I don't know how to do that. > Just add 'if (vm86_mode(regs)) goto fail' to the top of > emulate_privileged_op(). This will cause Xen to fall back to propagating = the > fault to the guest's GPF handler. Seems to work partialy. The i810 driver can init the hardware but I get weird artefacts. It seems that some of the memory which is used for the cursor is overwriten by the real video output or so. Therefor I think that one of the segment registers which the bios uses is overwriten somewhere in this gpf handling. Hmm, the trap bounce code clears ds and es. Bastian --=20 Schshschshchsch. -- The Gorn, "Arena", stardate 3046.2 --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iEYEARECAAYFAkUAJdcACgkQnw66O/MvCNGK9ACbBsefEV6WXh3N1k7WuDIVpU3a HZMAoKr+qutDCKDzHsIwC3vFwYyx9ZXC =8d8p -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- --===============0705336874== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0705336874==--