From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLhzY-0006zc-BB for qemu-devel@nongnu.org; Sun, 03 Feb 2008 11:46:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLhzW-0006zP-FR for qemu-devel@nongnu.org; Sun, 03 Feb 2008 11:46:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLhzW-0006zM-9w for qemu-devel@nongnu.org; Sun, 03 Feb 2008 11:46:50 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLhzW-00084U-7C for qemu-devel@nongnu.org; Sun, 03 Feb 2008 11:46:50 -0500 Received: by ug-out-1314.google.com with SMTP id m2so917528uge.4 for ; Sun, 03 Feb 2008 08:46:49 -0800 (PST) Message-ID: Date: Sun, 3 Feb 2008 17:46:49 +0100 From: "andrzej zaborowski" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1750_31342510.1202057209051" Subject: [Qemu-devel] [kqemu] gpf in memory access Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu mailing list ------=_Part_1750_31342510.1202057209051 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline I was playing with gpm (mouse daemon) in Linux guest and apparently my gpm binary is broken and with the "ps2" plugin it segfaults because of a general protection fault when trying to load a quadword from the address 0xff00000000000000. Under qemu as well as on the my physical amd64 it just segfaults, but under kqemu if makes kqemu panic and qemu aborts. Attached is a patch to make kqemu pass the gpf to qemu. It's probably wrong but it gives identical behaviour as with -no-kqemu or as on physical cpu, in this case. Regards ------=_Part_1750_31342510.1202057209051 Content-Type: text/x-patch; name=kqemu-mem-gpf.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fc7vub5u Content-Disposition: attachment; filename=kqemu-mem-gpf.patch ZGlmZiAtLWdpdCBhL2NvbW1vbi9rcWVtdV9pbnQuaCBiL2NvbW1vbi9rcWVtdV9pbnQuaAppbmRl eCBkODgxZDg1Li5jZGIzYTczIDEwMDY0NAotLS0gYS9jb21tb24va3FlbXVfaW50LmgKKysrIGIv Y29tbW9uL2txZW11X2ludC5oCkBAIC0xMDY1LDExICsxMDY1LDE3IEBAIHN0YXRpYyBpbmxpbmUg dm9pZCBzdHFfZmFzdChzdHJ1Y3Qga3FlbXVfc3RhdGUgKnMsIHVuc2lnbmVkIGxvbmcgYWRkciwK ICNkZWZpbmUgTU1VX0VYQ0VQVElPTihsYWJlbCkgXAogICAgICIuc2VjdGlvbiBcIm1tdV9leF90 YWJsZVwiLCBcImFcIlxuIlwKICAgICAiLnF1YWQgIiAjbGFiZWwgIlxuIlwKKyAgICAiLnByZXZp b3VzXG4iXAorICAgICIuc2VjdGlvbiBcInNlZ19leF90YWJsZVwiLCBcImFcIlxuIlwKKyAgICAi LnF1YWQgIiAjbGFiZWwgIlxuIlwKICAgICAiLnByZXZpb3VzXG4iCiAjZWxzZQogI2RlZmluZSBN TVVfRVhDRVBUSU9OKGxhYmVsKSBcCiAgICAgIi5zZWN0aW9uIFwibW11X2V4X3RhYmxlXCIsIFwi YVwiXG4iXAogICAgICIubG9uZyAiICNsYWJlbCAiXG4iXAorICAgICIucHJldmlvdXNcbiJcCisg ICAgIi5zZWN0aW9uIFwic2VnX2V4X3RhYmxlXCIsIFwiYVwiXG4iXAorICAgICIubG9uZyAiICNs YWJlbCAiXG4iXAogICAgICIucHJldmlvdXNcbiIKICNlbmRpZgogCg== ------=_Part_1750_31342510.1202057209051--