From: Nitin A Kamble Subject: Re: Question about EMULATE_DO_MMIO Date: Tue, 16 Oct 2007 13:28:09 -0700 Message-ID: <1192566489.2488.10.camel@lnitindesktop.sc.intel.com> References: <1192559057.2488.5.camel@lnitindesktop.sc.intel.com> <47151B38.1070402@qumranet.com> Reply-To: nitin.a.kamble-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1578990202==" Cc: kvm-devel To: Avi Kivity Return-path: In-Reply-To: <47151B38.1070402-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --===============1578990202== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vGBZzL4zDDwUCpNttfwd" --=-vGBZzL4zDDwUCpNttfwd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-10-16 at 13:12 -0700, Avi Kivity wrote: > Why do you think it is better? I would have thought that vm86 is much > faster. >=20 I am seeing execution going to strange places in vm86 mode. That issue is not coming in the emulation. > I thought of doing it this way: >=20 > - try to run normally > - if vm entry failed due to invalid guest state (the famous > 0x80000021), > then emulate 50 instructions > - repeat This may be better, I will give it a try. > That will also handle the few cases where VT can't handle protected > mode. >=20 > It should exit to userspace, same as the non-emulating case. However > it > shouldn't happen for normal writes. >=20 Only thing is if it in the real mode, then returning back to user mode will setup the cpu state as real mode, and because of that vmenter will fail. >=20 > -- > Do not meddle in the internals of kernels, for they are subtle and > quick to panic. >=20 >=20 Thanks a lot for your input. --=20 Thanks & Regards, Nitin Open Source Technology Center, Intel Corporation ----------------------------------------------------------------- The mind is like a parachute; it works much better when it's open --=-vGBZzL4zDDwUCpNttfwd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHFR7ZEA5Hv97Fde4RAubkAKCEVmj6RA+grYFYe94kuutSK+w6sACfTkz8 CCZNjNVJH5lwS/coCDjPJnE= =bJau -----END PGP SIGNATURE----- --=-vGBZzL4zDDwUCpNttfwd-- --===============1578990202== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --===============1578990202== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============1578990202==--