From: "Kamble, Nitin A" Subject: [PATCH] Handle #SS(0), caused by address size override in vm86 mode Date: Wed, 16 May 2007 18:11:38 -0700 Message-ID: <1179364298.21228.6.camel@lnitindesktop.sc.intel.com> References: <20070515032704.GH31709@ifa.hawaii.edu> <4649671D.5000705@qumranet.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0418195412==" To: "kvm-devel" Return-path: Content-Class: urn:content-classes:message In-Reply-To: <4649671D.5000705-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 --===============0418195412== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="=-mBfieXsR+VflQzEPT8Oq" Content-Class: urn:content-classes:message --=-mBfieXsR+VflQzEPT8Oq Content-Type: multipart/mixed; boundary="=-dFsLwIVOKWmKN1BLJfUf" --=-dFsLwIVOKWmKN1BLJfUf Content-Type: multipart/alternative; boundary="=-/vQ3sHcl0amO8mtvr8bd" --=-/vQ3sHcl0amO8mtvr8bd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Avi, I was playing with KVM while booting SuSE Linux 10.1 on it. And I found it was bailing out with #SS fault. I root caused it to the address size override opcode (0x67) from a mov instruction from the boot loader. The attached patch handles the #SS(0) fault with emulation, letting guest can proceed further. Thanks & Regards, Nitin=20 Open Source Technology Center, Intel Corporation. ------------------------------------------------------------------------- The mind is like a parachute; it works much better when it's open.=20 --=-/vQ3sHcl0amO8mtvr8bd Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Re: [kvm-devel] SDL problem with 2.6.21/kvm-17 on x86_64? Hi Avi,

I was playing with KVM while booting SuSE Linux 10.1 on it. And I found it = was bailing out with #SS fault. I root caused it to the address size overri= de opcode (0x67) from a mov instruction from the boot loader.
  The attached patch handles the #SS(0) fault with emulation, letting = guest can proceed further.

Thanks & Regards,
Nitin
Open Source Technology Center, Int= el Corporation.
----------------------------------= ---------------------------------------
The mind is like a parachute; it w= orks much better when it's open.=20
--=-/vQ3sHcl0amO8mtvr8bd-- --=-dFsLwIVOKWmKN1BLJfUf Content-Disposition: attachment; filename=ss_fault_handling_in_vm86mode.patch Content-Type: text/x-patch; name=ss_fault_handling_in_vm86mode.patch; charset=UTF-8 Content-Transfer-Encoding: base64 Y29tbWl0IGU3YWUwNDBhMzRhZTk5YWM0ZWIwODcwMWIxYTU0YTdlNDMxNTIzOGENCkF1dGhvcjog Tml0aW4gQSBLYW1ibGUgPG5pdGluLmEua2FtYmxlQGludGVsLmNvbT4NCkRhdGU6ICAgV2VkIE1h eSAxNiAyMTowNTo1OCAyMDA3IC0wNzAwDQoNCiAgICAgSW5zdHJ1Y3Rpb24gd2l0aCBhZGRyZXNz IHNpemUgb3ZlcnJpZGUgcHJlZml4IG9wY29kZSAweDY3DQogICAgIENhdXNlIHRoZSAjU1MgZmF1 bHQgd2l0aCAwIGVycm9yIGNvZGUgaW4gVk04NiBtb2RlLg0KICAgICA8U2lnbmVkLU9mZi1CeTog Tml0aW4gQSBLYW1ibGUgPG5pdGluLmEua2FtYmxlQGludGVsLmNvbT4NCg0KZGlmZiAtLWdpdCBh L2RyaXZlcnMva3ZtL3ZteC5jIGIvZHJpdmVycy9rdm0vdm14LmMNCmluZGV4IGIxNDMwZTEuLjdk N2VkYjcgMTAwNjQ0DQotLS0gYS9kcml2ZXJzL2t2bS92bXguYw0KKysrIGIvZHJpdmVycy9rdm0v dm14LmMNCkBAIC0xNDg3LDcgKzE0ODcsOSBAQCBzdGF0aWMgaW50IGhhbmRsZV9ybW9kZV9leGNl cHRpb24oc3RydWN0IGt2bV92Y3B1ICp2Y3B1LA0KIAlpZiAoIXZjcHUtPnJtb2RlLmFjdGl2ZSkN CiAJCXJldHVybiAwOw0KIA0KLQlpZiAodmVjID09IEdQX1ZFQ1RPUiAmJiBlcnJfY29kZSA9PSAw KQ0KKyAgICAvKiBJbnN0cnVjdGlvbiB3aXRoIGFkZHJlc3Mgc2l6ZSBvdmVycmlkZSBwcmVmaXgg b3Bjb2RlIDB4NjcNCisgICAgICAgQ2F1c2UgdGhlICNTUyBmYXVsdCB3aXRoIDAgZXJyb3IgY29k ZSBpbiBWTTg2IG1vZGUuICAqLw0KKwlpZiAoKCh2ZWMgPT0gR1BfVkVDVE9SKSB8fCAodmVjID09 IFNTX1ZFQ1RPUikpICYmIGVycl9jb2RlID09IDApDQogCQlpZiAoZW11bGF0ZV9pbnN0cnVjdGlv bih2Y3B1LCBOVUxMLCAwLCAwKSA9PSBFTVVMQVRFX0RPTkUpDQogCQkJcmV0dXJuIDE7DQogCXJl dHVybiAwOw0K --=-dFsLwIVOKWmKN1BLJfUf-- --=-mBfieXsR+VflQzEPT8Oq 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) iD8DBQBGS6vEZ1sfU7kTCR8RAsLnAJ4kO2UEsiiMtpOnHQZwfZecAcCyTQCdH8aC N/oKYtXj1rOOYorirZ/N4hA= =99To -----END PGP SIGNATURE----- --=-mBfieXsR+VflQzEPT8Oq-- --===============0418195412== 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0418195412== 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 --===============0418195412==--